ACG::SceneGraph::TrackballNode Class Reference

#include <ACG/Scenegraph/TrackballNode.hh>

Inheritance diagram for ACG::SceneGraph::TrackballNode:
Inheritance graph
[legend]
Collaboration diagram for ACG::SceneGraph::TrackballNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TrackballNode (BaseNode *_parent=0, const std::string &_name="<TrackballNode>")
 Default constructor.
 ~TrackballNode ()
 Destructor.
 ACG_CLASSNAME (TrackballNode)
 Class name macro.
void set_radius (double _r)
 Set trackball radius.
double radius () const
 Get trackball radius.
virtual void setIdentity ()
 override TransformNode::setIdentity() (update radius_)
void set_draw_trackball (bool _b)
 Turn on/off drawing of the trackball.
bool draw_trackball () const
 Is trackball-drawing on?
void set_draw_axes (bool _b)
 Turn drawing the axes on/off.
bool draw_axes () const
 Is axes-drawing on?
void draw (GLState &_state, unsigned int _drawMode)
 Draw the trackball + axes (if enabled).
virtual void mouseEvent (GLState &_state, QMouseEvent *_event)
 get mouse events

Private Member Functions

bool mapToSphere (GLState &_state, const Vec2i &_v2, Vec3d &_v3)
 Map 2D-screen-coords to trackball.

Private Attributes

bool drawTrackball_
bool drawAxes_
double radius_
Vec3d xAxis_
Vec3d yAxis_
Vec3d zAxis_
Vec2i oldPoint2D_

Detailed Description

Use a virtual trackball to rotate, translate and scale the children of this node. If you want to do translations use the ManipulatorNode.

See also:
ACG::SceneGraph::ManipulatorNode

Definition at line 97 of file TrackballNode.hh.


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .