GLC_RepTrackBallMover Class Reference

GLC_RepTrackBallMover : Track Ball representation. More...

#include <glc_reptrackballmover.h>

Inheritance diagram for GLC_RepTrackBallMover:
GLC_RepMover

List of all members.

Public Member Functions

 GLC_RepTrackBallMover (GLC_Viewport *)
 Default constructor.
 GLC_RepTrackBallMover (const GLC_RepTrackBallMover &)
 Copy constructor.
virtual ~GLC_RepTrackBallMover ()
Get Functions

virtual GLC_RepMoverclone () const
 Return a clone of the repmover.
Set Functions

virtual void init ()
 Set Arcs orientation and position in concordance with mouse position.
virtual void update ()
 Set Arcs position in concordance with mouse position.
virtual void setMainColor (const QColor &color)
 Set representation main color.
void setRatio (double ratio)
 Set representation screen ration.
OpenGL Functions

virtual void glDraw ()
 Virtual interface for OpenGL Geometry set up.

Private Member Functions

void computeRadius ()
 Compute trackball radius.

Private Attributes

double m_Radius
 trackball radius
GLC_Circle m_MainCircle
 Main Circle.
GLC_3DViewInstance m_Arc1
 Arc 1 showing orbit sphere orientation.
GLC_Matrix4x4 m_MatArc1
 Arc 1 positionning Matrix.
GLC_3DViewInstance m_Arc2
 Arc 2 showing orbit sphere orientation.
GLC_Matrix4x4 m_MatArc2
 Arc 2 positionning Matrix.
double m_Ratio
 The ratio of the trackball size.

Detailed Description

GLC_RepTrackBallMover : Track Ball representation.

Definition at line 37 of file glc_reptrackballmover.h.


Constructor & Destructor Documentation

GLC_RepTrackBallMover::GLC_RepTrackBallMover ( GLC_Viewport pViewport  ) 
GLC_RepTrackBallMover::GLC_RepTrackBallMover ( const GLC_RepTrackBallMover repMover  ) 

Copy constructor.

Definition at line 64 of file glc_reptrackballmover.cpp.

GLC_RepTrackBallMover::~GLC_RepTrackBallMover (  )  [virtual]

Definition at line 77 of file glc_reptrackballmover.cpp.


Member Function Documentation

GLC_RepMover * GLC_RepTrackBallMover::clone (  )  const [virtual]

Return a clone of the repmover.

Implements GLC_RepMover.

Definition at line 88 of file glc_reptrackballmover.cpp.

References GLC_RepTrackBallMover().

void GLC_RepTrackBallMover::computeRadius (  )  [private]
void GLC_RepTrackBallMover::glDraw (  )  [virtual]
void GLC_RepTrackBallMover::init (  )  [virtual]
void GLC_RepTrackBallMover::setMainColor ( const QColor &  color  )  [virtual]

Set representation main color.

Reimplemented from GLC_RepMover.

Definition at line 141 of file glc_reptrackballmover.cpp.

References GLC_3DViewInstance::geomAt(), m_Arc1, m_Arc2, m_MainCircle, GLC_RepMover::m_MainColor, and GLC_Geometry::setWireColor().

void GLC_RepTrackBallMover::setRatio ( double  ratio  )  [inline]

Set representation screen ration.

Definition at line 74 of file glc_reptrackballmover.h.

Referenced by GLC_TrackBallMover::setRatio().

void GLC_RepTrackBallMover::update (  )  [virtual]

Set Arcs position in concordance with mouse position.

Reimplemented from GLC_RepMover.

Definition at line 131 of file glc_reptrackballmover.cpp.

References m_Arc1, m_Arc2, GLC_RepMover::RepMoverInfo::m_MatrixInfo, GLC_RepMover::m_pRepMoverInfo, and GLC_3DViewInstance::multMatrix().


Member Data Documentation

Arc 1 showing orbit sphere orientation.

Definition at line 105 of file glc_reptrackballmover.h.

Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), init(), setMainColor(), and update().

Arc 2 showing orbit sphere orientation.

Definition at line 109 of file glc_reptrackballmover.h.

Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), init(), setMainColor(), and update().

Main Circle.

Definition at line 103 of file glc_reptrackballmover.h.

Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), and setMainColor().

Arc 1 positionning Matrix.

Definition at line 107 of file glc_reptrackballmover.h.

Referenced by GLC_RepTrackBallMover(), and init().

Arc 2 positionning Matrix.

Definition at line 111 of file glc_reptrackballmover.h.

Referenced by GLC_RepTrackBallMover(), and init().

trackball radius

Definition at line 101 of file glc_reptrackballmover.h.

Referenced by computeRadius().

The ratio of the trackball size.

Definition at line 113 of file glc_reptrackballmover.h.

Referenced by computeRadius().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon