NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
heightSensor Class Reference
Inheritance diagram for heightSensor:
Collaboration diagram for heightSensor:

Public Member Functions

 heightSensor (const btRigidBody *body, btVector3 pos, int nodeNumber, tgWorld &world)
 
btVector3 getWorldPosition () const
 
btVector3 getRelativePosition () const
 
double getHeight () const
 
int getNodeNumber () const
 
void attach (tgObserver< heightSensor > *pObserver)
 
void notifyStep (double dt)
 
void notifySetup ()
 
void notifyTeardown ()
 

Detailed Description

Definition at line 26 of file heightSensor.h.

Member Function Documentation

void tgSubject< heightSensor >::attach ( tgObserver< heightSensor > *  pObserver)
inherited

Attach an observer to the subject of the observer.

Parameters
[in,out]pObservera pointer to an observer for the subject; do nothing if the pointer is NULL
void tgSubject< heightSensor >::notifySetup ( )
inherited

Call tgObserver<T>::onSetup() on all observers in the order in which they were attached.

void tgSubject< heightSensor >::notifyStep ( double  dt)
inherited

Call tgObserver<T>::onStep() on all observers in the order in which they were attached.

Parameters
[in]dtthe number of seconds since the previous call; do nothing if not positive
void tgSubject< heightSensor >::notifyTeardown ( )
inherited

Call tgObserver<T>::onTeardown() on all observers in the order in which they were attached.


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