GLC_RepMover : Base class for all interactive manipulation representation. More...
#include <glc_repmover.h>
Classes | |
| struct | RepMoverInfo |
Public Member Functions | |
| GLC_RepMover (GLC_Viewport *) | |
| Default constructor. | |
| GLC_RepMover (const GLC_RepMover &) | |
| Copy constructor. | |
| virtual | ~GLC_RepMover () |
| Destructor. | |
Get Functions | |
| QColor | mainColor () |
| Return the main Color. | |
| virtual GLC_RepMover * | clone () const =0 |
| Return a clone of the repmover. | |
Set Functions | |
| virtual void | setMainColor (const QColor &color) |
| Set representation main color. | |
| virtual void | setThickness (double thickness) |
| Set representation wire thickness. | |
| virtual void | init () |
| Init the representation. | |
| virtual void | update () |
| Update the representation. | |
| void | setRepMoverInfo (RepMoverInfo *pRepMoverInfo) |
| Set the repMoverInfo of this rep. | |
Protected Attributes | |
| GLC_Viewport * | m_pViewport |
| The viewport. | |
| QColor | m_MainColor |
| The rep main color. | |
| double | m_Thickness |
| The rep wire thickness. | |
| GLC_RenderProperties | m_RenderProperties |
| The rep rendering properties. | |
| RepMoverInfo * | m_pRepMoverInfo |
| The repmover info of this rep. | |
OpenGL Functions | |
|
| |
| void | render () |
| Representation OpenGL Execution. | |
| virtual void | glDraw ()=0 |
| Virtual interface for OpenGL Geometry set up. | |
GLC_RepMover : Base class for all interactive manipulation representation.
Definition at line 42 of file glc_repmover.h.
| GLC_RepMover::GLC_RepMover | ( | GLC_Viewport * | pViewport | ) |
Default constructor.
Definition at line 31 of file glc_repmover.cpp.
| GLC_RepMover::GLC_RepMover | ( | const GLC_RepMover & | repMover | ) |
Copy constructor.
Definition at line 41 of file glc_repmover.cpp.
| GLC_RepMover::~GLC_RepMover | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file glc_repmover.cpp.
| virtual GLC_RepMover* GLC_RepMover::clone | ( | ) | const [pure virtual] |
Return a clone of the repmover.
Implemented in GLC_RepCrossMover, GLC_RepFlyMover, and GLC_RepTrackBallMover.
Referenced by GLC_Factory::createDefaultMoverController().
| virtual void GLC_RepMover::glDraw | ( | ) | [protected, pure virtual] |
Virtual interface for OpenGL Geometry set up.
Implemented in GLC_RepCrossMover, GLC_RepFlyMover, and GLC_RepTrackBallMover.
Referenced by render().
| virtual void GLC_RepMover::init | ( | ) | [inline, virtual] |
Init the representation.
Reimplemented in GLC_RepTrackBallMover.
Definition at line 89 of file glc_repmover.h.
| QColor GLC_RepMover::mainColor | ( | ) | [inline] |
Return the main Color.
Definition at line 71 of file glc_repmover.h.
| void GLC_RepMover::render | ( | ) |
Representation OpenGL Execution.
Definition at line 77 of file glc_repmover.cpp.
References glDraw().
| void GLC_RepMover::setMainColor | ( | const QColor & | color | ) | [virtual] |
Set representation main color.
Reimplemented in GLC_RepFlyMover, and GLC_RepTrackBallMover.
Definition at line 62 of file glc_repmover.cpp.
References m_MainColor.
Referenced by GLC_Factory::createDefaultMoverController().
| void GLC_RepMover::setRepMoverInfo | ( | RepMoverInfo * | pRepMoverInfo | ) |
Set the repMoverInfo of this rep.
Definition at line 57 of file glc_repmover.cpp.
References m_pRepMoverInfo.
| void GLC_RepMover::setThickness | ( | double | thickness | ) | [virtual] |
Set representation wire thickness.
Reimplemented in GLC_RepFlyMover.
Definition at line 67 of file glc_repmover.cpp.
References m_Thickness.
| virtual void GLC_RepMover::update | ( | ) | [inline, virtual] |
Update the representation.
Reimplemented in GLC_RepFlyMover, and GLC_RepTrackBallMover.
Definition at line 92 of file glc_repmover.h.
QColor GLC_RepMover::m_MainColor [protected] |
The rep main color.
Definition at line 121 of file glc_repmover.h.
Referenced by GLC_RepFlyMover::createRepresentation(), GLC_RepTrackBallMover::GLC_RepTrackBallMover(), GLC_RepCrossMover::glDraw(), GLC_RepTrackBallMover::setMainColor(), and setMainColor().
RepMoverInfo* GLC_RepMover::m_pRepMoverInfo [protected] |
The repmover info of this rep.
Definition at line 130 of file glc_repmover.h.
Referenced by GLC_RepFlyMover::glDraw(), GLC_RepTrackBallMover::init(), setRepMoverInfo(), GLC_RepTrackBallMover::update(), and GLC_RepFlyMover::update().
GLC_Viewport* GLC_RepMover::m_pViewport [protected] |
The viewport.
Definition at line 118 of file glc_repmover.h.
Referenced by GLC_RepTrackBallMover::computeRadius(), GLC_RepTrackBallMover::glDraw(), GLC_RepFlyMover::glDraw(), and GLC_RepCrossMover::glDraw().
GLC_RenderProperties GLC_RepMover::m_RenderProperties [protected] |
The rep rendering properties.
Definition at line 127 of file glc_repmover.h.
Referenced by GLC_RepTrackBallMover::glDraw().
double GLC_RepMover::m_Thickness [protected] |
The rep wire thickness.
Definition at line 124 of file glc_repmover.h.
Referenced by GLC_RepFlyMover::createRepresentation(), and setThickness().