Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

VisualTargetTrans Class Reference

#include <VisualTargetTrans.h>

Inheritance diagram for VisualTargetTrans:

List of all members.


Detailed Description

causes a transition when a visual object has been seen for at least 6 camera frames

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::sid [protected]

Source ID of object to track.

Definition at line 55 of file VisualTargetTrans.h.

Referenced by DoStart().

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(), and processEvent().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:47 2007 by Doxygen 1.5.4