GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_line.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  *****************************************************************************/
22 
23 #ifndef GLC_LINE_H_
24 #define GLC_LINE_H_
25 
26 #include "glc_polylines.h"
27 
28 #include "../glc_config.h"
29 
32 
35 
36 
38 {
40 
42 
43 public:
45  GLC_Line(const GLC_Point3d &, const GLC_Point3d &);
46 
48  GLC_Line(const GLC_Line&);
49 
51  virtual ~GLC_Line();
52 
54 
56 
58 
59 public:
60 
62  inline GLC_Point3d point1(void) const
63  {return m_Point1;}
64 
66  inline GLC_Point3d point2(void) const
67  {return m_Point2;}
68 
70  virtual const GLC_BoundingBox& boundingBox(void);
71 
73  virtual GLC_Geometry* clone() const;
74 
76 
78 
80 
81 public:
83  void setCoordinate(const GLC_Point3d &point1, const GLC_Point3d &point2);
84 
86  inline void clear()
88 
90  GLC_Line& operator=(const GLC_Line& line);
91 
93 
95 
97 
98 
99 private:
101 
102  virtual void glDraw(const GLC_RenderProperties&);
103 
105 
107 
109 
110 private:
112  void createWire();
113 
115 
117 // Private Member
119 
120 private:
123 
126 
127 };
128 
129 #endif /* GLC_LINE_H_ */

©2005-2013 Laurent Ribon