Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgGA::FlightManipulator Class Reference

FlightManipulator is a CameraManipulator which provides flight simulator-like updating of the camera position & orientation. More...

Inheritance diagram for osgGA::FlightManipulator:

Inheritance graph
[legend]
List of all members.

Public Types

enum  YawControlMode { YAW_AUTOMATICALLY_WHEN_BANKED, NO_AUTOMATIC_YAW }

Public Methods

 FlightManipulator ()
virtual ~FlightManipulator ()
virtual void setNode (osg::Node *)
 Attach a node to the manipulator, automatically detaching any previously attached node.

virtual const osg::NodegetNode () const
 Return const node if attached.

virtual osg::NodegetNode ()
 Return node if attached.

virtual void home (const GUIEventAdapter &ea, GUIActionAdapter &us)
 Move the camera to the default position.

virtual void init (const GUIEventAdapter &ea, GUIActionAdapter &us)
 Start/restart the manipulator.

virtual bool handle (const GUIEventAdapter &ea, GUIActionAdapter &us)
 Handle events, return true if handled, false otherwise.

void setYawControlMode (YawControlMode ycm)
 Configure the Yaw control for the flight model.


Detailed Description

FlightManipulator is a CameraManipulator which provides flight simulator-like updating of the camera position & orientation.

By default, the left mouse button accelerates, the right mouse button decelerates, and the middle mouse button (or left and right simultaneously) stops dead.


Member Enumeration Documentation

enum osgGA::FlightManipulator::YawControlMode
 

Enumeration values:
YAW_AUTOMATICALLY_WHEN_BANKED 
NO_AUTOMATIC_YAW 


Constructor & Destructor Documentation

osgGA::FlightManipulator::FlightManipulator  
 

virtual osgGA::FlightManipulator::~FlightManipulator   [virtual]
 


Member Function Documentation

virtual osg::Node* osgGA::FlightManipulator::getNode   [virtual]
 

Return node if attached.

Reimplemented from osgGA::CameraManipulator.

virtual const osg::Node* osgGA::FlightManipulator::getNode   const [virtual]
 

Return const node if attached.

Reimplemented from osgGA::CameraManipulator.

virtual bool osgGA::FlightManipulator::handle const GUIEventAdapter   ea,
GUIActionAdapter   us
[virtual]
 

Handle events, return true if handled, false otherwise.

Reimplemented from osgGA::CameraManipulator.

virtual void osgGA::FlightManipulator::home const GUIEventAdapter   ea,
GUIActionAdapter   us
[virtual]
 

Move the camera to the default position.

May be ignored by manipulators if home functionality is not appropriate.

Reimplemented from osgGA::CameraManipulator.

virtual void osgGA::FlightManipulator::init const GUIEventAdapter   ea,
GUIActionAdapter   us
[virtual]
 

Start/restart the manipulator.

FIXME: what does this actually mean? Provide examples.

Reimplemented from osgGA::CameraManipulator.

virtual void osgGA::FlightManipulator::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::CameraManipulator.

void osgGA::FlightManipulator::setYawControlMode YawControlMode    ycm [inline]
 

Configure the Yaw control for the flight model.


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:48 2002 for the Open Scene Graph by doxygen 1.2.16.