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

gator::SimpleFlyMethod Class Reference

a travel method that implements the common "fly" metaphor found in many VR systems. More...

#include <SimpleFlyMethod.h>

Inheritance diagram for gator::SimpleFlyMethod:

gator::TravelMethod ani::DynamicSystem< ani::Body > ani::Body ani::Memory gator::SimpleDriveMethod List of all members.

Public Methods

 SimpleFlyMethod ()
virtual void digitalInput (unsigned int id, EdgeState value)
 call this with the id that you want to trigger. More...

virtual void analogInput (unsigned int id, float value)
 call this with the id that you want to trigger. More...

virtual void xformInput (unsigned int id, const gmtl::Matrix44f &value)
 call this with the id that you want to trigger. More...

virtual void setCollisionDetector (CollisionDetectorPtr &detect)
 tell the travel method how to collide with your scene. More...

virtual void setPosition (const gmtl::Matrix44f &value)
virtual gmtl::Matrix44f getPosition ()

Protected Attributes

boost::shared_ptr< TireForceOperatormTireForce
boost::shared_ptr< DriveNavigationOperatormNavigator
boost::shared_ptr< CollisionResponseOperatormCollider
gmtl::Matrix44f mPointerMatrix

Detailed Description

a travel method that implements the common "fly" metaphor found in many VR systems.

Definition at line 23 of file SimpleFlyMethod.h.


Constructor & Destructor Documentation

gator::SimpleFlyMethod::SimpleFlyMethod   [inline]
 

Definition at line 26 of file SimpleFlyMethod.h.

References gator::TravelMethod::mAvatar, gator::TravelMethod::mCamera, mCollider, gator::TravelMethod::mCollisionDetector, mNavigator, mTireForce, ani::DynamicSystem< ani::Body >::push_back(), and gator::SetEqualOperator::setOffset().


Member Function Documentation

virtual void gator::SimpleFlyMethod::digitalInput unsigned int    id,
EdgeState    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Reimplemented in gator::SimpleDriveMethod.

Definition at line 57 of file SimpleFlyMethod.h.

References gator::DOWN, gator::EDGE_DOWN, gator::EdgeState, gator::TravelMethod::mAvatar, mNavigator, mPointerMatrix, and gator::TravelMethod::reset().

virtual void gator::SimpleFlyMethod::analogInput unsigned int    id,
float    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Reimplemented in gator::SimpleDriveMethod.

Definition at line 128 of file SimpleFlyMethod.h.

References mNavigator.

virtual void gator::SimpleFlyMethod::xformInput unsigned int    id,
const gmtl::Matrix44f &    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Reimplemented in gator::SimpleDriveMethod.

Definition at line 139 of file SimpleFlyMethod.h.

References mNavigator, and mPointerMatrix.

virtual void gator::SimpleFlyMethod::setCollisionDetector CollisionDetectorPtr   detect [inline, virtual]
 

tell the travel method how to collide with your scene.

define your own collision detector, or use one predefined from gator.

Reimplemented from gator::TravelMethod.

Definition at line 156 of file SimpleFlyMethod.h.

References gator::CollisionDetectorPtr, mCollider, and mTireForce.

virtual void gator::SimpleFlyMethod::setPosition const gmtl::Matrix44f &    value [inline, virtual]
 

Implements gator::TravelMethod.

Definition at line 163 of file SimpleFlyMethod.h.

References gator::TravelMethod::mAvatar.

virtual gmtl::Matrix44f gator::SimpleFlyMethod::getPosition   [inline, virtual]
 

Implements gator::TravelMethod.

Definition at line 174 of file SimpleFlyMethod.h.

References gator::TravelMethod::mAvatar.


Member Data Documentation

boost::shared_ptr< TireForceOperator > gator::SimpleFlyMethod::mTireForce [protected]
 

Definition at line 184 of file SimpleFlyMethod.h.

Referenced by setCollisionDetector(), gator::SimpleDriveMethod::SimpleDriveMethod(), and SimpleFlyMethod().

boost::shared_ptr< DriveNavigationOperator > gator::SimpleFlyMethod::mNavigator [protected]
 

Definition at line 185 of file SimpleFlyMethod.h.

Referenced by analogInput(), gator::SimpleDriveMethod::analogInput(), digitalInput(), gator::SimpleDriveMethod::digitalInput(), SimpleFlyMethod(), and xformInput().

boost::shared_ptr< CollisionResponseOperator > gator::SimpleFlyMethod::mCollider [protected]
 

Definition at line 186 of file SimpleFlyMethod.h.

Referenced by setCollisionDetector(), gator::SimpleDriveMethod::SimpleDriveMethod(), and SimpleFlyMethod().

gmtl::Matrix44f gator::SimpleFlyMethod::mPointerMatrix [protected]
 

Definition at line 187 of file SimpleFlyMethod.h.

Referenced by digitalInput(), and xformInput().


The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:09 2002 for Animaniac by doxygen1.2.15