14#ifndef OSGGA_UFO_MANIPULATOR_DEF
15#define OSGGA_UFO_MANIPULATOR_DEF 1
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
Definition ApplicationUsage:26
Base class for all internal nodes in the scene graph.
Definition Node:72
Smart pointer for observed objects, that automatically set pointers to them to null when they are del...
Definition observer_ptr:39
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
CameraManipulator is an abstract base class defining the interface, and a certain amount of default f...
Definition CameraManipulator:40
Definition GUIActionAdapter:62
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
double _viewOffsetDelta
Definition UFOManipulator:159
bool _decelerateOffsetRate
Definition UFOManipulator:173
double getRotationSpeed() const
Definition UFOManipulator:128
void home(double)
Move the camera to the default position.
void setForwardSpeed(double in_fs)
Definition UFOManipulator:121
virtual void computeHomePosition()
Computes the home position based on the extents and scale of the scene graph rooted at node.
double _speedEpsilon
Definition UFOManipulator:145
osg::observer_ptr< osg::Node > _node
Definition UFOManipulator:137
UFOManipulator()
Default constructor.
virtual const osg::Node * getNode() const
Get the root node of the subgraph this manipulator is driving the eye through (const)
virtual void setByMatrix(const osg::Matrixd &matrix)
Set the current position with a matrix.
osg::Matrixd _offset
Definition UFOManipulator:140
bool _ctrl
Definition UFOManipulator:172
double _directionRotationRate
Definition UFOManipulator:155
double _directionRotationEpsilon
Definition UFOManipulator:154
virtual void setByInverseMatrix(const osg::Matrixd &invmat)
Set the current position with the inverse matrix.
bool _shift
Definition UFOManipulator:171
virtual void home(const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &)
Sets the viewpoint matrix to the home position.
void getCurrentPositionAsLookAt(osg::Vec3d &eye, osg::Vec3d ¢er, osg::Vec3d &up)
Report the current position as LookAt vectors.
osg::Matrixd _inverseMatrix
Definition UFOManipulator:139
double _directionRotationDeceleration
Definition UFOManipulator:157
double getMinHeight() const
Definition UFOManipulator:116
double _pitchOffset
Definition UFOManipulator:161
virtual osg::Node * getNode()
Get the root node of the subgraph this manipulator is driving the eye through.
double _t0
Definition UFOManipulator:165
double getMinDistance() const
Definition UFOManipulator:119
virtual ~UFOManipulator()
void _keyUp(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
double _yawOffsetRate
Definition UFOManipulator:162
double _dt
Definition UFOManipulator:166
void _frame(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
virtual osg::Matrixd getMatrix() const
Get the current viewmatrix.
double getForwardSpeed() const
Definition UFOManipulator:122
double _minDistanceInFront
Definition UFOManipulator:143
double _sideSpeed
Definition UFOManipulator:147
virtual void setNode(osg::Node *node)
Set the subgraph this manipulator is driving the eye through.
void setSideSpeed(double in_ss)
Definition UFOManipulator:124
void setMinHeight(double in_min_height)
Definition UFOManipulator:115
void getUsage(osg::ApplicationUsage &usage) const
Reports Usage parameters to the application.
osg::Vec3d _direction
Definition UFOManipulator:167
bool _straightenOffset
Definition UFOManipulator:175
virtual const char * className() const
return className
void _keyDown(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
double getSideSpeed() const
Definition UFOManipulator:125
osg::Vec3d _position
Definition UFOManipulator:168
double _pitchOffsetRate
Definition UFOManipulator:160
void setRotationSpeed(double in_rot_speed)
Definition UFOManipulator:127
void setMinDistance(double in_min_dist)
Definition UFOManipulator:118
double _speedDecelerationFactor
Definition UFOManipulator:150
double _speedAccelerationFactor
Definition UFOManipulator:149
bool intersect(const osg::Vec3d &start, const osg::Vec3d &end, osg::Vec3d &intersection) const
double _upSpeed
Definition UFOManipulator:148
double _yawOffset
Definition UFOManipulator:163
virtual void init(const GUIEventAdapter &, GUIActionAdapter &)
Start/restart the manipulator.
double _forwardSpeed
Definition UFOManipulator:146
double _directionRotationAcceleration
Definition UFOManipulator:156
double _minHeightAboveGround
Definition UFOManipulator:142
virtual osg::Matrixd getInverseMatrix() const
Get the current inverse view matrix.
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
Handles incoming osgGA events.
osg::Matrixd _matrix
Definition UFOManipulator:138
bool _decelerateUpSideRate
Definition UFOManipulator:152
#define OSGGA_EXPORT
Definition Export:40