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

gator::TetheredDriveMethod Class Reference

a travel method that implements the common "drive" metaphor fround in many VR systems. More...

#include <TetheredDriveMethod.h>

Inheritance diagram for gator::TetheredDriveMethod:

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

Public Methods

 TetheredDriveMethod ()
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

Detailed Description

a travel method that implements the common "drive" metaphor fround in many VR systems.

Definition at line 24 of file TetheredDriveMethod.h.


Constructor & Destructor Documentation

gator::TetheredDriveMethod::TetheredDriveMethod   [inline]
 

Definition at line 27 of file TetheredDriveMethod.h.

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


Member Function Documentation

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

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 57 of file TetheredDriveMethod.h.

References gator::DOWN, gator::EDGE_DOWN, gator::EdgeState, gator::TravelMethod::mAvatar, and mNavigator.

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

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 113 of file TetheredDriveMethod.h.

References mNavigator.

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

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 126 of file TetheredDriveMethod.h.

virtual void gator::TetheredDriveMethod::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 132 of file TetheredDriveMethod.h.

References gator::CollisionDetectorPtr, mCollider, and mTireForce.

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

Implements gator::TravelMethod.

Definition at line 140 of file TetheredDriveMethod.h.

References gator::TravelMethod::mAvatar.

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

Implements gator::TravelMethod.

Definition at line 151 of file TetheredDriveMethod.h.

References gator::TravelMethod::mAvatar.


Member Data Documentation

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

Definition at line 161 of file TetheredDriveMethod.h.

Referenced by setCollisionDetector(), and TetheredDriveMethod().

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

Definition at line 162 of file TetheredDriveMethod.h.

Referenced by analogInput(), digitalInput(), and TetheredDriveMethod().

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

Definition at line 163 of file TetheredDriveMethod.h.

Referenced by setCollisionDetector(), and TetheredDriveMethod().


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