GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_repmover.cpp
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 #include "glc_repmover.h"
26 #include "glc_viewport.h"
27 
28 
30 : m_pViewport(pViewport)
31 , m_MainColor(Qt::black)
32 , m_Thickness(1.0)
33 , m_RenderProperties()
34 , m_pRepMoverInfo(NULL)
35 {
36 
37 }
38 // Copy constructor
40 : m_pViewport(repMover.m_pViewport)
41 , m_MainColor(repMover.m_MainColor)
42 , m_Thickness(repMover.m_Thickness)
43 , m_RenderProperties(repMover.m_RenderProperties)
44 , m_pRepMoverInfo(repMover.m_pRepMoverInfo)
45 {
46 
47 }
48 
49 
51 {
52 
53 }
54 
56 {
57  m_pRepMoverInfo= pRepMoverInfo;
58 }
59 
60 void GLC_RepMover::setMainColor(const QColor& color)
61 {
62  m_MainColor= color;
63 }
64 
65 void GLC_RepMover::setThickness(double thickness)
66 {
67  m_Thickness= thickness;
68 }
69 
71 // OpenGL Functions
73 
74 // Representation OpenGL Execution
76 {
77  // Call virtual draw function
78  glDraw();
79 }

©2005-2013 Laurent Ribon