GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_repmover.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_REPMOVER_H_
26 #define GLC_REPMOVER_H_
27 
28 #include <QColor>
29 #include "../maths/glc_vector3d.h"
30 #include "../maths/glc_matrix4x4.h"
31 #include "../shading/glc_renderproperties.h"
32 #include "../glc_config.h"
33 
34 class GLC_Viewport;
35 
38 
39 
41 {
42 public:
43  struct RepMoverInfo
44  {
45  QVector<GLC_Matrix4x4> m_MatrixInfo;
46  QVector<GLC_Vector3d> m_VectorInfo;
47  QVector<double> m_DoubleInfo;
48  QVector<int> m_IntInfo;
49  QVector<QString> m_StringInfo;
50  };
51 
52 public:
55 
57  GLC_RepMover(const GLC_RepMover&);
58 
60  virtual ~GLC_RepMover();
61 
62 
64 
66 
67 public:
69  inline QColor mainColor()
70  {return m_MainColor;}
71 
73  virtual GLC_RepMover* clone() const= 0;
75 
77 
79 
80 
81  virtual void setMainColor(const QColor& color);
82 
84  virtual void setThickness(double thickness);
85 
87  virtual void init(){}
88 
90  virtual void update(){}
91 
93  void setRepMoverInfo(RepMoverInfo* pRepMoverInfo);
94 
96 
98 
100 
101 public:
103  void render();
104 
105 protected:
107  virtual void glDraw()= 0;
108 
110 
112 // Protected Members
114 protected:
117 
119  QColor m_MainColor;
120 
122  double m_Thickness;
123 
126 
129 };
130 
131 #endif /* GLC_REPMOVER_H_ */

©2005-2013 Laurent Ribon