GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Attributes | List of all members
GLC_RepMover Class Referenceabstract

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

#include <glc_repmover.h>

+ Inheritance diagram for GLC_RepMover:

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_RepFlyMover, GLC_RepTrackBallMover, and GLC_RepCrossMover.

Referenced by GLC_Factory::createDefaultMoverController().

virtual void GLC_RepMover::glDraw ( )
protectedpure virtual

Virtual interface for OpenGL Geometry set up.

Implemented in GLC_RepFlyMover, GLC_RepTrackBallMover, and GLC_RepCrossMover.

Referenced by render().

virtual void GLC_RepMover::init ( )
inlinevirtual

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(), GLC_RepTrackBallMover::setMainColor(), and GLC_RepFlyMover::setMainColor().

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.

Referenced by GLC_RepFlyMover::setThickness().

virtual void GLC_RepMover::update ( )
inlinevirtual

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
RepMoverInfo* GLC_RepMover::m_pRepMoverInfo
protected
GLC_Viewport* GLC_RepMover::m_pViewport
protected
GLC_RenderProperties GLC_RepMover::m_RenderProperties
protected

The rep rendering properties.

Definition at line 125 of file glc_repmover.h.

Referenced by GLC_RepCrossMover::glDraw(), and GLC_RepTrackBallMover::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:

©2005-2013 Laurent Ribon