glc_repmover.cpp

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  http://glc-lib.sourceforge.net
00006 
00007  GLC-lib is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU Lesser General Public License as published by
00009  the Free Software Foundation; either version 3 of the License, or
00010  (at your option) any later version.
00011 
00012  GLC-lib is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU Lesser General Public License for more details.
00016 
00017  You should have received a copy of the GNU Lesser General Public License
00018  along with GLC-lib; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 
00021  *****************************************************************************/
00022 
00024 
00025 #include "glc_repmover.h"
00026 #include "glc_viewport.h"
00027 
00028 
00029 GLC_RepMover::GLC_RepMover(GLC_Viewport* pViewport)
00030 : m_pViewport(pViewport)
00031 , m_MainColor(Qt::black)
00032 , m_Thickness(1.0)
00033 , m_RenderProperties()
00034 , m_pRepMoverInfo(NULL)
00035 {
00036 
00037 }
00038 // Copy constructor
00039 GLC_RepMover::GLC_RepMover(const GLC_RepMover& repMover)
00040 : m_pViewport(repMover.m_pViewport)
00041 , m_MainColor(repMover.m_MainColor)
00042 , m_Thickness(repMover.m_Thickness)
00043 , m_RenderProperties(repMover.m_RenderProperties)
00044 , m_pRepMoverInfo(repMover.m_pRepMoverInfo)
00045 {
00046 
00047 }
00048 
00049 
00050 GLC_RepMover::~GLC_RepMover()
00051 {
00052 
00053 }
00054 
00055 void GLC_RepMover::setRepMoverInfo(RepMoverInfo* pRepMoverInfo)
00056 {
00057         m_pRepMoverInfo= pRepMoverInfo;
00058 }
00059 
00060 void GLC_RepMover::setMainColor(const QColor& color)
00061 {
00062         m_MainColor= color;
00063 }
00064 
00065 void GLC_RepMover::setThickness(double thickness)
00066 {
00067         m_Thickness= thickness;
00068 }
00069 
00071 // OpenGL Functions
00073 
00074 // Representation OpenGL Execution
00075 void GLC_RepMover::render()
00076 {
00077         // Call virtual draw function
00078         glDraw();
00079 }

SourceForge.net Logo

©2005-2011 Laurent Ribon