OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgGA::TerrainManipulator Class Reference
Inheritance diagram for osgGA::TerrainManipulator:
Inheritance graph
[legend]

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)
 set the position of the matrix manipulator using a 4x4 Matrix.
virtual void setTransformation (const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)
 Sets manipulator by eye position, center of rotation, and up vector.
virtual void setNode (osg::Node *node)
 Attach a node to the manipulator, automatically detaching any previously attached 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

osgGA::TerrainManipulator::TerrainManipulator ( int  flags = DEFAULT_SETTINGS)
osgGA::TerrainManipulator::TerrainManipulator ( const TerrainManipulator tm,
const osg::CopyOp copyOp = osg::CopyOp::SHALLOW_COPY 
)

Member Function Documentation

void osgGA::TerrainManipulator::clampOrientation ( ) [protected]
RotationMode osgGA::TerrainManipulator::getRotationMode ( ) const
bool osgGA::TerrainManipulator::intersect ( const osg::Vec3d start,
const osg::Vec3d end,
osg::Vec3d intersection 
) const [protected]
osgGA::TerrainManipulator::META_Object ( osgGA  ,
TerrainManipulator   
)
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:

osg logo
Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5.