GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_box.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 
24 
25 #ifndef GLC_BOX_H_
26 #define GLC_BOX_H_
27 
28 
29 #include "glc_mesh.h"
30 
31 #include "../glc_config.h"
32 
35 
41 
42 
44 {
46 
48 
49 public:
51 
52  GLC_Box(double, double, double);
53 
55  GLC_Box(const GLC_Box&);
56 
58  virtual ~GLC_Box();
59 
61 
63 
65 
66 public:
68  inline double getLgX(void) const
69  {return m_dLgX;}
70 
72  inline double getLgY(void) const
73  {return m_dLgY;}
74 
76  inline double getLgZ(void) const
77  {return m_dLgZ;}
78 
80  virtual const GLC_BoundingBox& boundingBox(void);
81 
83  virtual GLC_Geometry* clone() const;
84 
86 
88 
90 
91 public:
92 
94 
96  void setLgX(double LgX);
97 
99 
101  void setLgY(double LgY);
102 
104 
106  void setLgZ(double LgZ);
108 
110 
112 
113 private:
115 
117  virtual void glDraw(const GLC_RenderProperties&);
119 
121 
123 
124 private:
126  void createMeshAndWire();
127 
129  void createWire();
130 
132 
134 // Private members
136 private:
137 
139  double m_dLgX;
140 
142  double m_dLgY;
143 
145  double m_dLgZ;
146 };
147 #endif //GLC_BOX_H_

©2005-2013 Laurent Ribon