OpenSceneGraph 3.6.5
osgGA::UFOManipulator Class Reference

A UFO manipulator driven with keybindings. More...

#include <UFOManipulator>

Inheritance diagram for osgGA::UFOManipulator:

Public Member Functions

 UFOManipulator ()
 Default constructor.
virtual const char * className () const
 return className
virtual void setByMatrix (const osg::Matrixd &matrix)
 Set the current position with a matrix.
virtual void setByInverseMatrix (const osg::Matrixd &invmat)
 Set the current position with the inverse matrix.
virtual osg::Matrixd getMatrix () const
 Get the current viewmatrix.
virtual osg::Matrixd getInverseMatrix () const
 Get the current inverse view matrix.
virtual void setNode (osg::Node *node)
 Set the subgraph this manipulator is driving the eye through.
virtual const osg::NodegetNode () const
 Get the root node of the subgraph this manipulator is driving the eye through (const)
virtual osg::NodegetNode ()
 Get the root node of the subgraph this manipulator is driving the eye through.
virtual void computeHomePosition ()
 Computes the home position based on the extents and scale of the scene graph rooted at node.
virtual void home (const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &)
 Sets the viewpoint matrix to the home position.
void home (double)
 Move the camera to the default position.
virtual void init (const GUIEventAdapter &, GUIActionAdapter &)
 Start/restart the manipulator.
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
 Handles incoming osgGA events.
void getUsage (osg::ApplicationUsage &usage) const
 Reports Usage parameters to the application.
void getCurrentPositionAsLookAt (osg::Vec3d &eye, osg::Vec3d &center, osg::Vec3d &up)
 Report the current position as LookAt vectors.
void setMinHeight (double in_min_height)
double getMinHeight () const
void setMinDistance (double in_min_dist)
double getMinDistance () const
void setForwardSpeed (double in_fs)
double getForwardSpeed () const
void setSideSpeed (double in_ss)
double getSideSpeed () const
void setRotationSpeed (double in_rot_speed)
double getRotationSpeed () const
Public Member Functions inherited from osgGA::CameraManipulator
virtual void setCoordinateFrameCallback (CoordinateFrameCallback *cb)
 set the coordinate frame which callback tells the manipulator which way is up, east and north.
CoordinateFrameCallbackgetCoordinateFrameCallback ()
 get the coordinate frame callback which tells the manipulator which way is up, east and north.
const CoordinateFrameCallbackgetCoordinateFrameCallback () const
 get the coordinate frame callback which tells the manipulator which way is up, east and north.
osg::CoordinateFrame getCoordinateFrame (const osg::Vec3d &position) const
 get the coordinate frame.
osg::Vec3d getSideVector (const osg::CoordinateFrame &cf) const
osg::Vec3d getFrontVector (const osg::CoordinateFrame &cf) const
osg::Vec3d getUpVector (const osg::CoordinateFrame &cf) const
virtual void updateCamera (osg::Camera &camera)
 update the camera for the current frame, typically called by the viewer classes.
virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode () const
 Get the FusionDistanceMode.
virtual float getFusionDistanceValue () const
 Get the FusionDistanceValue.
void setIntersectTraversalMask (unsigned int mask)
 Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection.
unsigned int getIntersectTraversalMask () const
 Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection.
virtual void setHomePosition (const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up, bool autoComputeHomePosition=false)
 Manually set the home position, and set the automatic compute of home position.
virtual void getHomePosition (osg::Vec3d &eye, osg::Vec3d &center, osg::Vec3d &up) const
 Get the manually set home position.
virtual void setAutoComputeHomePosition (bool flag)
 Set whether the automatic compute of the home position is enabled.
bool getAutoComputeHomePosition () const
 Get whether the automatic compute of the home position is enabled.
virtual void computeHomePosition (const osg::Camera *camera=NULL, bool useBoundingBox=false)
 Compute the home position.
virtual void finishAnimation ()
 finish any active manipulator animations.
virtual bool handle (osgGA::Event *event, osg::Object *object, osg::NodeVisitor *nv)
 Handle event.
Public Member Functions inherited from osgGA::GUIEventHandler
 GUIEventHandler ()
 GUIEventHandler (const GUIEventHandler &eh, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgGA, GUIEventHandler)
virtual bool handle (const GUIEventAdapter &ea, GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *)
 Handle events, return true if handled, false otherwise.
Public Member Functions inherited from osgGA::EventHandler
 EventHandler ()
 EventHandler (const EventHandler &eh, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgGA, EventHandler)
virtual NodeCallbackasNodeCallback ()
virtual const NodeCallbackasNodeCallback () const
virtual DrawableEventCallbackasDrawableEventCallback ()
virtual const DrawableEventCallbackasDrawableEventCallback () const
virtual EventHandlerasEventHandler ()
virtual const EventHandlerasEventHandler () const
virtual bool run (osg::Object *object, osg::Object *data)
 NodeCallback overrides the Callback::run() method to adapt it the old style NodeCallback::operator()(Node* node, NodeVisitor* nv) method.
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 Event traversal node callback method.
virtual void event (osg::NodeVisitor *nv, osg::Drawable *drawable)
 Event traversal drawable callback method.
Public Member Functions inherited from osg::NodeCallback
 NodeCallback ()
 NodeCallback (const NodeCallback &nc, const CopyOp &copyop)
 META_Object (osg, NodeCallback)
Public Member Functions inherited from osg::Callback
 Callback ()
 Callback (const Callback &cb, const CopyOp &copyop)
 META_Object (osg, Callback)
virtual CallbackasCallback ()
 Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0.
virtual const CallbackasCallback () const
 convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0.
virtual CallbackObjectasCallbackObject ()
 Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0.
virtual const CallbackObjectasCallbackObject () const
 convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject, otherwise return 0.
virtual StateAttributeCallbackasStateAttributeCallback ()
virtual const StateAttributeCallbackasStateAttributeCallback () const
virtual UniformCallbackasUniformCallback ()
virtual const UniformCallbackasUniformCallback () const
virtual DrawableUpdateCallbackasDrawableUpdateCallback ()
virtual const DrawableUpdateCallbackasDrawableUpdateCallback () const
virtual DrawableCullCallbackasDrawableCullCallback ()
virtual const DrawableCullCallbackasDrawableCullCallback () const
bool traverse (osg::Object *object, osg::Object *data)
 traverse the nested callbacks or call NodeVisitor::traverse() if the object is Node, and data is NodeVisitor.
void setNestedCallback (osg::Callback *cb)
osg::CallbackgetNestedCallback ()
const osg::CallbackgetNestedCallback () const
void addNestedCallback (osg::Callback *nc)
void removeNestedCallback (osg::Callback *nc)
Public Member Functions inherited from osg::Object
 Object ()
 Construct an object.
 Object (bool threadSafeRefUnref)
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data.
virtual ObjectcloneType () const =0
 Clone the type of an object, with Object* return type.
virtual Objectclone (const CopyOp &) const =0
 Clone an object, with Object* return type.
virtual bool isSameKindAs (const Object *) const
virtual const char * libraryName () const =0
 return the name of the object's library.
std::string getCompoundClassName () const
 return the compound class name that combines the library name and class name.
virtual NodeasNode ()
 Convert 'this' into a Node pointer if Object is a Node, otherwise return 0.
virtual const NodeasNode () const
 convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0.
virtual NodeVisitorasNodeVisitor ()
 Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0.
virtual const NodeVisitorasNodeVisitor () const
 convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0.
virtual StateSetasStateSet ()
 Convert 'this' into a StateSet pointer if Object is a StateSet, otherwise return 0.
virtual const StateSetasStateSet () const
 convert 'const this' into a const StateSet pointer if Object is a StateSet, otherwise return 0.
virtual StateAttributeasStateAttribute ()
 Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0.
virtual const StateAttributeasStateAttribute () const
 convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0.
virtual UniformasUniform ()
 Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0.
virtual const UniformasUniform () const
 convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0.
virtual CameraasCamera ()
 Convert 'this' into a Camera pointer if Node is a Camera, otherwise return 0.
virtual const CameraasCamera () const
 convert 'const this' into a const Camera pointer if Node is a Camera, otherwise return 0.
virtual DrawableasDrawable ()
 Convert 'this' into a Drawable pointer if Object is a Drawable, otherwise return 0.
virtual const DrawableasDrawable () const
 convert 'const this' into a const Drawable pointer if Object is a Drawable, otherwise return 0.
virtual UserDataContainerasUserDataContainer ()
 Convert 'this' into a UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0.
virtual const UserDataContainerasUserDataContainer () const
 convert 'const this' into a const UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0.
virtual ValueObjectasValueObject ()
 Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0.
virtual const ValueObjectasValueObject () const
 Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0.
virtual ImageasImage ()
 Convert 'this' into a Image pointer if Object is a Image, otherwise return 0.
virtual const ImageasImage () const
 Convert 'this' into a Image pointer if Object is a Image, otherwise return 0.
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
virtual void setName (const std::string &name)
 Set the name of object using C++ style string.
void setName (const char *name)
 Set the name of object using a C style string.
const std::string & getName () const
 Get the name of object.
void setDataVariance (DataVariance dv)
 Set the data variance of this object.
DataVariance getDataVariance () const
 Get the data variance of this object.
virtual void computeDataVariance ()
 Compute the DataVariance based on an assessment of callback etc.
void setUserDataContainer (osg::UserDataContainer *udc)
 set the UserDataContainer object.
template<class T>
void setUserDataContainer (const ref_ptr< T > &udc)
osg::UserDataContainergetUserDataContainer ()
 get the UserDataContainer attached to this object.
const osg::UserDataContainergetUserDataContainer () const
 get the const UserDataContainer attached to this object.
osg::UserDataContainergetOrCreateUserDataContainer ()
 Convenience method that returns the UserDataContainer, and if one doesn't already exist creates and assigns a DefaultUserDataContainer to the Object and then return this new UserDataContainer.
virtual void setUserData (Referenced *obj)
 Set user data, data must be subclassed from Referenced to allow automatic memory handling.
template<class T>
void setUserData (const ref_ptr< T > &ud)
virtual ReferencedgetUserData ()
 Get user data.
virtual const ReferencedgetUserData () const
 Get const user data.
template<typename T>
bool getUserValue (const std::string &name, T &value) const
 Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value.
template<typename T>
void setUserValue (const std::string &name, const T &value)
 Convenience method that creates the osg::TemplateValueObject<T> to store the specified value and adds it as a named UserObject.
virtual void resizeGLObjectBuffers (unsigned int)
 Resize any per context GLObject buffers to specified size.
virtual void releaseGLObjects (osg::State *=0) const
 If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.
template<typename T>
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool getUserValue (const std::string &name, T &value) const
 provide implementation of osg::Object::getUserValue(..) template
Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead.
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.
Public Member Functions inherited from osg::DrawableEventCallback
 DrawableEventCallback ()
 DrawableEventCallback (const DrawableEventCallback &org, const CopyOp &copyop)
 META_Object (osg, DrawableEventCallback)

Protected Member Functions

virtual ~UFOManipulator ()
bool intersect (const osg::Vec3d &start, const osg::Vec3d &end, osg::Vec3d &intersection) const
void _stop ()
void _keyDown (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
void _keyUp (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
void _frame (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
void _adjustPosition ()
Protected Member Functions inherited from osgGA::CameraManipulator
 CameraManipulator ()
 CameraManipulator (const CameraManipulator &mm, const osg::CopyOp &copyOp=osg::CopyOp::SHALLOW_COPY)
virtual ~CameraManipulator ()
std::string getManipulatorName () const
Protected Member Functions inherited from osgGA::GUIEventHandler
virtual ~GUIEventHandler ()
Protected Member Functions inherited from osg::NodeCallback
virtual ~NodeCallback ()
Protected Member Functions inherited from osg::Callback
virtual ~Callback ()
Protected Member Functions inherited from osg::Object
virtual ~Object ()
 Object destructor.
Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Protected Attributes

osg::observer_ptr< osg::Node_node
osg::Matrixd _matrix
osg::Matrixd _inverseMatrix
osg::Matrixd _offset
double _minHeightAboveGround
double _minDistanceInFront
double _speedEpsilon
double _forwardSpeed
double _sideSpeed
double _upSpeed
double _speedAccelerationFactor
double _speedDecelerationFactor
bool _decelerateUpSideRate
double _directionRotationEpsilon
double _directionRotationRate
double _directionRotationAcceleration
double _directionRotationDeceleration
double _viewOffsetDelta
double _pitchOffsetRate
double _pitchOffset
double _yawOffsetRate
double _yawOffset
double _t0
double _dt
osg::Vec3d _direction
osg::Vec3d _position
bool _shift
bool _ctrl
bool _decelerateOffsetRate
bool _straightenOffset
Protected Attributes inherited from osgGA::CameraManipulator
unsigned int _intersectTraversalMask
bool _autoComputeHomePosition
osg::Vec3d _homeEye
osg::Vec3d _homeCenter
osg::Vec3d _homeUp
osg::ref_ptr< CoordinateFrameCallback_coordinateFrameCallback
Protected Attributes inherited from osg::Callback
ref_ptr< Callback_nestedCallback
Protected Attributes inherited from osg::Object
std::string _name
DataVariance _dataVariance
osg::UserDataContainer_userDataContainer
Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC , STATIC , UNSPECIFIED }
Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced.
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated.
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler.

Detailed Description

A UFO manipulator driven with keybindings.

The UFOManipulator is better suited for applications that employ architectural walk-throughs, or situations where the eyepoint motion model must move slowly, deliberately and well controlled.

The UFO Manipulator allows the following movements with the listed Key combinations:

Parameters
UpArrowAcceleration forward.
DownArrowAcceleration backward (or deceleration forward).
LeftArrowRotate view and direction of travel to the left.
RightArrowRotate view and direction of travel to the right.
SpaceBarBrake. Gradually decelerates linear and rotational movement.
Shift/UpArrowAccelerate up.
Shift/DownArrowAccelerate down.
Shift/LeftArrowAccelerate (linearly) left.
Shift/RightArrowAccelerate (linearly) right.
Shift/SpaceBarInstant brake. Immediately stop all linear and rotational movement.

When the Shift key is released, up, down, linear left and/or linear right movement is decelerated.

\param Ctrl/UpArrow     Rotate view (but not direction of travel) up.
\param Ctrl/DownArrow   Rotate view (but not direction of travel) down.
\param Ctrl/LeftArrow   Rotate view (but not direction of travel) left.
\param Ctrl/RightArrow  Rotate view (but not direction of travel) right.
\param Ctrl/Return      Straightens out the view offset.

Constructor & Destructor Documentation

◆ UFOManipulator()

osgGA::UFOManipulator::UFOManipulator ( )

Default constructor.

◆ ~UFOManipulator()

virtual osgGA::UFOManipulator::~UFOManipulator ( )
protectedvirtual

Member Function Documentation

◆ _adjustPosition()

void osgGA::UFOManipulator::_adjustPosition ( )
protected

◆ _frame()

void osgGA::UFOManipulator::_frame ( const osgGA::GUIEventAdapter & ea,
osgGA::GUIActionAdapter &  )
protected

◆ _keyDown()

void osgGA::UFOManipulator::_keyDown ( const osgGA::GUIEventAdapter & ea,
osgGA::GUIActionAdapter &  )
protected

◆ _keyUp()

void osgGA::UFOManipulator::_keyUp ( const osgGA::GUIEventAdapter & ea,
osgGA::GUIActionAdapter &  )
protected

◆ _stop()

void osgGA::UFOManipulator::_stop ( )
protected

◆ className()

virtual const char * osgGA::UFOManipulator::className ( ) const
virtual

return className

Returns
returns constant "UFO"

Reimplemented from osgGA::CameraManipulator.

◆ computeHomePosition()

virtual void osgGA::UFOManipulator::computeHomePosition ( )
virtual

Computes the home position based on the extents and scale of the scene graph rooted at node.

◆ getCurrentPositionAsLookAt()

void osgGA::UFOManipulator::getCurrentPositionAsLookAt ( osg::Vec3d & eye,
osg::Vec3d & center,
osg::Vec3d & up )

Report the current position as LookAt vectors.

◆ getForwardSpeed()

double osgGA::UFOManipulator::getForwardSpeed ( ) const
inline

References _forwardSpeed.

◆ getInverseMatrix()

virtual osg::Matrixd osgGA::UFOManipulator::getInverseMatrix ( ) const
virtual

Get the current inverse view matrix.

Implements osgGA::CameraManipulator.

◆ getMatrix()

virtual osg::Matrixd osgGA::UFOManipulator::getMatrix ( ) const
virtual

Get the current viewmatrix.

Implements osgGA::CameraManipulator.

◆ getMinDistance()

double osgGA::UFOManipulator::getMinDistance ( ) const
inline

References _minDistanceInFront.

◆ getMinHeight()

double osgGA::UFOManipulator::getMinHeight ( ) const
inline

References _minHeightAboveGround.

◆ getNode() [1/2]

virtual osg::Node * osgGA::UFOManipulator::getNode ( )
virtual

Get the root node of the subgraph this manipulator is driving the eye through.

Reimplemented from osgGA::CameraManipulator.

◆ getNode() [2/2]

virtual const osg::Node * osgGA::UFOManipulator::getNode ( ) const
virtual

Get the root node of the subgraph this manipulator is driving the eye through (const)

Reimplemented from osgGA::CameraManipulator.

◆ getRotationSpeed()

double osgGA::UFOManipulator::getRotationSpeed ( ) const
inline

◆ getSideSpeed()

double osgGA::UFOManipulator::getSideSpeed ( ) const
inline

References _sideSpeed.

◆ getUsage()

void osgGA::UFOManipulator::getUsage ( osg::ApplicationUsage & usage) const
virtual

Reports Usage parameters to the application.

Reimplemented from osgGA::EventHandler.

◆ handle()

bool osgGA::UFOManipulator::handle ( const osgGA::GUIEventAdapter & ea,
osgGA::GUIActionAdapter & aa )
virtual

Handles incoming osgGA events.

Reimplemented from osgGA::CameraManipulator.

◆ home() [1/2]

virtual void osgGA::UFOManipulator::home ( const osgGA::GUIEventAdapter & ,
osgGA::GUIActionAdapter &  )
virtual

Sets the viewpoint matrix to the home position.

Reimplemented from osgGA::CameraManipulator.

◆ home() [2/2]

void osgGA::UFOManipulator::home ( double )
virtual

Move the camera to the default position.

This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications.

Reimplemented from osgGA::CameraManipulator.

◆ init()

virtual void osgGA::UFOManipulator::init ( const GUIEventAdapter & ,
GUIActionAdapter &  )
virtual

Start/restart the manipulator.

Reimplemented from osgGA::CameraManipulator.

◆ intersect()

bool osgGA::UFOManipulator::intersect ( const osg::Vec3d & start,
const osg::Vec3d & end,
osg::Vec3d & intersection ) const
protected

◆ setByInverseMatrix()

virtual void osgGA::UFOManipulator::setByInverseMatrix ( const osg::Matrixd & invmat)
virtual

Set the current position with the inverse matrix.

Parameters
invmatThe inverse of a viewpoint matrix

Implements osgGA::CameraManipulator.

◆ setByMatrix()

virtual void osgGA::UFOManipulator::setByMatrix ( const osg::Matrixd & matrix)
virtual

Set the current position with a matrix.

Parameters
matrixA viewpoint matrix.

Implements osgGA::CameraManipulator.

◆ setForwardSpeed()

void osgGA::UFOManipulator::setForwardSpeed ( double in_fs)
inline

References _forwardSpeed.

◆ setMinDistance()

void osgGA::UFOManipulator::setMinDistance ( double in_min_dist)
inline

References _minDistanceInFront.

◆ setMinHeight()

void osgGA::UFOManipulator::setMinHeight ( double in_min_height)
inline

References _minHeightAboveGround.

◆ setNode()

virtual void osgGA::UFOManipulator::setNode ( osg::Node * node)
virtual

Set the subgraph this manipulator is driving the eye through.

Parameters
noderoot of subgraph

Reimplemented from osgGA::CameraManipulator.

◆ setRotationSpeed()

void osgGA::UFOManipulator::setRotationSpeed ( double in_rot_speed)
inline

◆ setSideSpeed()

void osgGA::UFOManipulator::setSideSpeed ( double in_ss)
inline

References _sideSpeed.

Member Data Documentation

◆ _ctrl

bool osgGA::UFOManipulator::_ctrl
protected

◆ _decelerateOffsetRate

bool osgGA::UFOManipulator::_decelerateOffsetRate
protected

◆ _decelerateUpSideRate

bool osgGA::UFOManipulator::_decelerateUpSideRate
protected

◆ _direction

osg::Vec3d osgGA::UFOManipulator::_direction
protected

◆ _directionRotationAcceleration

double osgGA::UFOManipulator::_directionRotationAcceleration
protected

◆ _directionRotationDeceleration

double osgGA::UFOManipulator::_directionRotationDeceleration
protected

◆ _directionRotationEpsilon

double osgGA::UFOManipulator::_directionRotationEpsilon
protected

◆ _directionRotationRate

double osgGA::UFOManipulator::_directionRotationRate
protected

◆ _dt

double osgGA::UFOManipulator::_dt
protected

◆ _forwardSpeed

double osgGA::UFOManipulator::_forwardSpeed
protected

Referenced by getForwardSpeed(), and setForwardSpeed().

◆ _inverseMatrix

osg::Matrixd osgGA::UFOManipulator::_inverseMatrix
protected

◆ _matrix

osg::Matrixd osgGA::UFOManipulator::_matrix
protected

◆ _minDistanceInFront

double osgGA::UFOManipulator::_minDistanceInFront
protected

Referenced by getMinDistance(), and setMinDistance().

◆ _minHeightAboveGround

double osgGA::UFOManipulator::_minHeightAboveGround
protected

Referenced by getMinHeight(), and setMinHeight().

◆ _node

osg::observer_ptr<osg::Node> osgGA::UFOManipulator::_node
protected

◆ _offset

osg::Matrixd osgGA::UFOManipulator::_offset
protected

◆ _pitchOffset

double osgGA::UFOManipulator::_pitchOffset
protected

◆ _pitchOffsetRate

double osgGA::UFOManipulator::_pitchOffsetRate
protected

◆ _position

osg::Vec3d osgGA::UFOManipulator::_position
protected

◆ _shift

bool osgGA::UFOManipulator::_shift
protected

◆ _sideSpeed

double osgGA::UFOManipulator::_sideSpeed
protected

Referenced by getSideSpeed(), and setSideSpeed().

◆ _speedAccelerationFactor

double osgGA::UFOManipulator::_speedAccelerationFactor
protected

◆ _speedDecelerationFactor

double osgGA::UFOManipulator::_speedDecelerationFactor
protected

◆ _speedEpsilon

double osgGA::UFOManipulator::_speedEpsilon
protected

◆ _straightenOffset

bool osgGA::UFOManipulator::_straightenOffset
protected

◆ _t0

double osgGA::UFOManipulator::_t0
protected

◆ _upSpeed

double osgGA::UFOManipulator::_upSpeed
protected

◆ _viewOffsetDelta

double osgGA::UFOManipulator::_viewOffsetDelta
protected

◆ _yawOffset

double osgGA::UFOManipulator::_yawOffset
protected

◆ _yawOffsetRate

double osgGA::UFOManipulator::_yawOffsetRate
protected

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

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.