Homepage Demos Overview Downloads Tutorials Reference
Credits

VisualTargetTrans Class Reference

#include <VisualTargetTrans.h>

Inheritance diagram for VisualTargetTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition when a visual object is "close"

Definition at line 11 of file VisualTargetTrans.h.

Public Member Functions

 VisualTargetTrans (StateNode *destination, unsigned int source_id)
 constructor
 VisualTargetTrans (const std::string &name, StateNode *destination, unsigned int source_id)
 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.
unsigned int count
 number of frames for which we've seen the object


Constructor & Destructor Documentation

VisualTargetTrans::VisualTargetTrans StateNode destination,
unsigned int  source_id
[inline]
 

constructor

Definition at line 14 of file VisualTargetTrans.h.

VisualTargetTrans::VisualTargetTrans const std::string &  name,
StateNode destination,
unsigned int  source_id
[inline]
 

constructor

Definition at line 18 of file VisualTargetTrans.h.


Member Function Documentation

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

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

Reimplemented from BehaviorBase.

Definition at line 22 of file VisualTargetTrans.h.

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

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

Reimplemented from BehaviorBase.

Definition at line 31 of file VisualTargetTrans.h.

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

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

Reimplemented from BehaviorBase.

Definition at line 40 of file VisualTargetTrans.h.


Member Data Documentation

unsigned int VisualTargetTrans::count [protected]
 

number of frames for which we've seen the object

Definition at line 57 of file VisualTargetTrans.h.

Referenced by DoStart(), DoStop(), processEvent(), and VisualTargetTrans().

unsigned int VisualTargetTrans::sid [protected]
 

Source ID of object to track.

Definition at line 55 of file VisualTargetTrans.h.

Referenced by DoStart(), and VisualTargetTrans().


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

Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:54 2004 by Doxygen 1.3.9.1