glc_line.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the GLC-lib library.
00004  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
00005  Version 2.0.0, packaged on July 2010.
00006 
00007  http://glc-lib.sourceforge.net
00008 
00009  GLC-lib is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU Lesser General Public License as published by
00011  the Free Software Foundation; either version 3 of the License, or
00012  (at your option) any later version.
00013 
00014  GLC-lib is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU Lesser General Public License for more details.
00018 
00019  You should have received a copy of the GNU Lesser General Public License
00020  along with GLC-lib; if not, write to the Free Software
00021  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023  *****************************************************************************/
00024 
00025 #ifndef GLC_LINE_H_
00026 #define GLC_LINE_H_
00027 
00028 #include "glc_geometry.h"
00029 
00030 #include "../glc_config.h"
00031 
00034 
00037 
00038 
00039 class GLC_LIB_EXPORT GLC_Line : public GLC_Geometry
00040 {
00042 
00044 
00045 public:
00047         GLC_Line(const GLC_Point3d &, const GLC_Point3d &);
00048 
00050         GLC_Line(const GLC_Line&);
00051 
00053         virtual ~GLC_Line();
00054 
00056 
00058 
00060 
00061 public:
00062 
00064         inline GLC_Point3d point1(void) const
00065         {return m_Point1;}
00066 
00068         inline GLC_Point3d point2(void) const
00069         {return m_Point2;}
00070 
00072         virtual const GLC_BoundingBox& boundingBox(void);
00073 
00075         virtual GLC_Geometry* clone() const;
00076 
00078 
00080 
00082 
00083 public:
00085         void setCoordinate(const GLC_Point3d &, const GLC_Point3d &);
00086 
00088         inline void setColor(const QColor& color);
00089 
00090 
00092 
00094 
00096 
00097 
00098 private:
00100 
00101         virtual void glDraw(const GLC_RenderProperties&);
00102 
00104 
00106 // Private Member
00108 
00109 private:
00111         GLC_Point3d m_Point1;
00112 
00114         GLC_Point3d m_Point2;
00115 
00116 };
00117 
00118 #endif /* GLC_LINE_H_ */

SourceForge.net Logo

©2005-2010 Laurent Ribon