Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LostTargetTrans Class Reference

#include <LostTargetTrans.h>

Inheritance diagram for LostTargetTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

Causes a transition if the target has not been seen minframe times within delay milliseconds.

Definition at line 10 of file LostTargetTrans.h.

Public Member Functions

 LostTargetTrans (StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
 LostTargetTrans (const std::string &name, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
virtual void DoStart ()
 starts timer
virtual void processEvent (const EventBase &e)
 if we receive the timer event, fire()
virtual void resetTimer ()
 resets timer; does not deactivate it
virtual void set_minframes (int minframes)
 set minimum number of frames that target must be seen before resetting the timer

Protected Member Functions

 LostTargetTrans (const std::string &classname, const std::string &instancename, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, only to be called by subclasses (which need to specify their own classname)

Private Attributes

unsigned int sid
 the source id from the detector of the object which is being monitored
int minf
 number of frames that target must be seen before resetting the timer
int counter
 number of frames target has been seen so far


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

Tekkotsu v3.0
Generated Fri May 11 20:08:22 2007 by Doxygen 1.4.7