GLC_RepTrackBallMover : Track Ball representation. More...
#include <glc_reptrackballmover.h>
Public Member Functions | |
| GLC_RepTrackBallMover (GLC_Viewport *) | |
| Default constructor. | |
| GLC_RepTrackBallMover (const GLC_RepTrackBallMover &) | |
| Copy constructor. | |
| virtual | ~GLC_RepTrackBallMover () |
Get Functions | |
| virtual GLC_RepMover * | clone () 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. | |
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. | |
GLC_RepTrackBallMover : Track Ball representation.
Definition at line 39 of file glc_reptrackballmover.h.
| GLC_RepTrackBallMover::GLC_RepTrackBallMover | ( | GLC_Viewport * | pViewport | ) |
Default constructor.
Definition at line 36 of file glc_reptrackballmover.cpp.
References ARCANGLE, GLC_3DViewInstance::geomAt(), m_Arc1, m_Arc2, m_MainCircle, GLC_RepMover::m_MainColor, m_MatArc1, m_MatArc2, PI, GLC_Matrix4x4::setMatRot(), GLC_Geometry::setWireColor(), glc::Y_AXIS(), and glc::Z_AXIS().
Referenced by clone().
| GLC_RepTrackBallMover::GLC_RepTrackBallMover | ( | const GLC_RepTrackBallMover & | repMover | ) |
Copy constructor.
Definition at line 65 of file glc_reptrackballmover.cpp.
| GLC_RepTrackBallMover::~GLC_RepTrackBallMover | ( | ) | [virtual] |
Definition at line 78 of file glc_reptrackballmover.cpp.
| GLC_RepMover * GLC_RepTrackBallMover::clone | ( | ) | const [virtual] |
Return a clone of the repmover.
Implements GLC_RepMover.
Definition at line 89 of file glc_reptrackballmover.cpp.
References GLC_RepTrackBallMover().
| void GLC_RepTrackBallMover::computeRadius | ( | ) | [private] |
Compute trackball radius.
Definition at line 208 of file glc_reptrackballmover.cpp.
References GLC_3DViewInstance::geomAt(), m_Arc1, m_Arc2, m_MainCircle, GLC_RepMover::m_pViewport, m_Radius, m_Ratio, GLC_Circle::setRadius(), GLC_Viewport::viewHSize(), and GLC_Viewport::viewVSize().
Referenced by glDraw().
| void GLC_RepTrackBallMover::glDraw | ( | void | ) | [virtual] |
Virtual interface for OpenGL Geometry set up.
Implements GLC_RepMover.
Definition at line 155 of file glc_reptrackballmover.cpp.
References computeRadius(), m_Arc1, m_Arc2, m_MainCircle, GLC_RepMover::m_pViewport, GLC_RepMover::m_RenderProperties, GLC_Geometry::render(), GLC_3DViewInstance::render(), GLC_RenderProperties::setRenderingFlag(), glc::TransparentRenderFlag, GLC_Viewport::viewHSize(), GLC_Viewport::viewVSize(), and glc::WireRenderFlag.
| void GLC_RepTrackBallMover::init | ( | ) | [virtual] |
Set Arcs orientation and position in concordance with mouse position.
Reimplemented from GLC_RepMover.
Definition at line 99 of file glc_reptrackballmover.cpp.
References m_Arc1, m_Arc2, m_MatArc1, m_MatArc2, GLC_RepMover::RepMoverInfo::m_MatrixInfo, GLC_RepMover::m_pRepMoverInfo, GLC_RepMover::RepMoverInfo::m_VectorInfo, GLC_3DViewInstance::setMatrix(), GLC_Matrix4x4::setMatRot(), and glc::Z_AXIS().
| void GLC_RepTrackBallMover::setMainColor | ( | const QColor & | color | ) | [virtual] |
Set representation main color.
Reimplemented from GLC_RepMover.
Definition at line 142 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::update | ( | ) | [virtual] |
Set Arcs position in concordance with mouse position.
Reimplemented from GLC_RepMover.
Definition at line 132 of file glc_reptrackballmover.cpp.
References m_Arc1, m_Arc2, GLC_RepMover::RepMoverInfo::m_MatrixInfo, GLC_RepMover::m_pRepMoverInfo, and GLC_3DViewInstance::multMatrix().
Arc 1 showing orbit sphere orientation.
Definition at line 103 of file glc_reptrackballmover.h.
Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), init(), setMainColor(), and update().
Arc 2 showing orbit sphere orientation.
Definition at line 107 of file glc_reptrackballmover.h.
Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), init(), setMainColor(), and update().
Main Circle.
Definition at line 101 of file glc_reptrackballmover.h.
Referenced by computeRadius(), GLC_RepTrackBallMover(), glDraw(), and setMainColor().
Arc 1 positionning Matrix.
Definition at line 105 of file glc_reptrackballmover.h.
Referenced by GLC_RepTrackBallMover(), and init().
Arc 2 positionning Matrix.
Definition at line 109 of file glc_reptrackballmover.h.
Referenced by GLC_RepTrackBallMover(), and init().
double GLC_RepTrackBallMover::m_Radius [private] |
trackball radius
Definition at line 99 of file glc_reptrackballmover.h.
Referenced by computeRadius().
double GLC_RepTrackBallMover::m_Ratio [private] |
The ratio of the trackball size.
Definition at line 111 of file glc_reptrackballmover.h.
Referenced by computeRadius().