Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

VisualTargetCloseTrans Class Reference

#include <VisualTargetCloseTrans.h>

Inheritance diagram for VisualTargetCloseTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition when a visual object is "close"

Definition at line 14 of file VisualTargetCloseTrans.h.

Public Member Functions

 VisualTargetCloseTrans (StateNode *destination, unsigned int source_id, float threshold=225)
 constructor
 VisualTargetCloseTrans (const std::string &name, StateNode *destination, unsigned int source_id, float threshold=225)
 constructor
virtual void DoStart ()
 starts listening for the object specified by the source id in the constructor
virtual void DoStop ()
 called by StateNode when it becomes inactive - undo whatever you did in Enable()
virtual void processEvent (const EventBase &e)
 if the object is "close", calls fire()

Protected Attributes

unsigned int sid
 Source ID of object to track.
float distanceThreshold
 Distance at which to trigger transition, in millimeters.


Constructor & Destructor Documentation

VisualTargetCloseTrans::VisualTargetCloseTrans StateNode destination,
unsigned int  source_id,
float  threshold = 225
[inline]
 

constructor

Definition at line 17 of file VisualTargetCloseTrans.h.

VisualTargetCloseTrans::VisualTargetCloseTrans const std::string &  name,
StateNode destination,
unsigned int  source_id,
float  threshold = 225
[inline]
 

constructor

Definition at line 21 of file VisualTargetCloseTrans.h.


Member Function Documentation

virtual void VisualTargetCloseTrans::DoStart  )  [inline, virtual]
 

starts listening for the object specified by the source id in the constructor

Reimplemented from BehaviorBase.

Definition at line 25 of file VisualTargetCloseTrans.h.

virtual void VisualTargetCloseTrans::DoStop  )  [inline, virtual]
 

called by StateNode when it becomes inactive - undo whatever you did in Enable()

Reimplemented from BehaviorBase.

Definition at line 28 of file VisualTargetCloseTrans.h.

virtual void VisualTargetCloseTrans::processEvent const EventBase e  )  [inline, virtual]
 

if the object is "close", calls fire()

Reimplemented from BehaviorBase.

Definition at line 31 of file VisualTargetCloseTrans.h.


Member Data Documentation

float VisualTargetCloseTrans::distanceThreshold [protected]
 

Distance at which to trigger transition, in millimeters.

Definition at line 54 of file VisualTargetCloseTrans.h.

Referenced by processEvent().

unsigned int VisualTargetCloseTrans::sid [protected]
 

Source ID of object to track.

Definition at line 51 of file VisualTargetCloseTrans.h.

Referenced by DoStart().


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:12 2005 by Doxygen 1.4.4