openscenegraph
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgGA::TerrainManipulator Class Reference
Inheritance diagram for osgGA::TerrainManipulator:
osgGA::OrbitManipulator osgGA::StandardManipulator osgGA::CameraManipulator osgGA::GUIEventHandler osg::NodeCallback osg::Drawable::EventCallback osg::Object osg::Object osg::Referenced osg::Referenced

List of all members.

Public Types

enum  RotationMode { ELEVATION_AZIM_ROLL, ELEVATION_AZIM }

Public Member Functions

 TerrainManipulator (int flags=DEFAULT_SETTINGS)
 TerrainManipulator (const TerrainManipulator &tm, const osg::CopyOp &copyOp=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgGA, TerrainManipulator)
virtual void setRotationMode (RotationMode mode)
RotationMode getRotationMode () const
virtual void setByMatrix (const osg::Matrixd &matrix)
virtual void setTransformation (const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)
virtual void setNode (osg::Node *node)

Protected Member Functions

virtual bool performMovementMiddleMouseButton (const double eventTimeDelta, const double dx, const double dy)
virtual bool performMovementRightMouseButton (const double eventTimeDelta, const double dx, const double dy)
bool intersect (const osg::Vec3d &start, const osg::Vec3d &end, osg::Vec3d &intersection) const
void clampOrientation ()

Protected Attributes

osg::Vec3d _previousUp

Member Enumeration Documentation

Enumerator:
ELEVATION_AZIM_ROLL 
ELEVATION_AZIM 

Constructor & Destructor Documentation


Member Function Documentation

bool osgGA::TerrainManipulator::intersect ( const osg::Vec3d start,
const osg::Vec3d end,
osg::Vec3d intersection 
) const [protected]
virtual bool osgGA::TerrainManipulator::performMovementMiddleMouseButton ( const double  eventTimeDelta,
const double  dx,
const double  dy 
) [protected, virtual]

Reimplemented from osgGA::OrbitManipulator.

virtual bool osgGA::TerrainManipulator::performMovementRightMouseButton ( const double  eventTimeDelta,
const double  dx,
const double  dy 
) [protected, virtual]

Reimplemented from osgGA::OrbitManipulator.

virtual void osgGA::TerrainManipulator::setByMatrix ( const osg::Matrixd matrix) [virtual]

set the position of the matrix manipulator using a 4x4 Matrix.

Reimplemented from osgGA::OrbitManipulator.

virtual void osgGA::TerrainManipulator::setNode ( osg::Node ) [virtual]

Attach a node to the manipulator, automatically detaching any previously attached node. setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model.

Reimplemented from osgGA::StandardManipulator.

virtual void osgGA::TerrainManipulator::setRotationMode ( RotationMode  mode) [virtual]
virtual void osgGA::TerrainManipulator::setTransformation ( const osg::Vec3d eye,
const osg::Vec3d center,
const osg::Vec3d up 
) [virtual]

Sets manipulator by eye position, center of rotation, and up vector.

Reimplemented from osgGA::OrbitManipulator.


Member Data Documentation


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