GLC_RepMover Class Reference

GLC_RepMover : Base class for all interactive manipulation representation. More...

#include <glc_repmover.h>

Inheritance diagram for GLC_RepMover:
GLC_RepCrossMover GLC_RepFlyMover GLC_RepTrackBallMover

List of all members.

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_RepMoverclone () 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_Viewportm_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.
RepMoverInfom_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.

Detailed Description

GLC_RepMover : Base class for all interactive manipulation representation.

Definition at line 40 of file glc_repmover.h.


Constructor & Destructor Documentation

GLC_RepMover::GLC_RepMover ( GLC_Viewport pViewport  ) 

Default constructor.

Definition at line 29 of file glc_repmover.cpp.

GLC_RepMover::GLC_RepMover ( const GLC_RepMover repMover  ) 

Copy constructor.

Definition at line 39 of file glc_repmover.cpp.

GLC_RepMover::~GLC_RepMover (  )  [virtual]

Destructor.

Definition at line 50 of file glc_repmover.cpp.


Member Function Documentation

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 87 of file glc_repmover.h.

QColor GLC_RepMover::mainColor (  )  [inline]

Return the main Color.

Definition at line 69 of file glc_repmover.h.

void GLC_RepMover::render (  ) 

Representation OpenGL Execution.

Definition at line 75 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 60 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 55 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 65 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 90 of file glc_repmover.h.


Member Data Documentation

QColor GLC_RepMover::m_MainColor [protected]

The rep rendering properties.

Definition at line 125 of file glc_repmover.h.

Referenced by GLC_RepTrackBallMover::glDraw(), and GLC_RepCrossMover::glDraw().

double GLC_RepMover::m_Thickness [protected]

The rep wire thickness.

Definition at line 122 of file glc_repmover.h.

Referenced by GLC_RepFlyMover::createRepresentation(), and setThickness().


The documentation for this class was generated from the following files:

SourceForge.net Logo

©2005-2011 Laurent Ribon