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 *source, StateNode *destination, VisionEventNS::VisionSourceID_t 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 activate()

virtual std::string getName () const
 Identifies the behavior in menus and such.


Protected Attributes

VisionEventNS::VisionSourceID_t sid
 Source ID of object to track.

unsigned int count


Constructor & Destructor Documentation

VisualTargetTrans::VisualTargetTrans StateNode source,
StateNode destination,
VisionEventNS::VisionSourceID_t  source_id
[inline]
 

constructor

Definition at line 14 of file VisualTargetTrans.h.

References count, and sid.


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 18 of file VisualTargetTrans.h.

References EventRouter::addListener(), count, BehaviorBase::DoStart(), erouter, Socket::printf(), serr, sid, and EventBase::visionEGID.

Here is the call graph for this function:

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 27 of file VisualTargetTrans.h.

References count, BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), Socket::printf(), and serr.

Here is the call graph for this function:

virtual std::string VisualTargetTrans::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 49 of file VisualTargetTrans.h.

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

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

Reimplemented from BehaviorBase.

Definition at line 36 of file VisualTargetTrans.h.

References Transition::activate(), count, EventBase::deactivateETID, get_time(), EventBase::getTypeID(), Socket::printf(), and serr.

Here is the call graph for this function:


Member Data Documentation

unsigned int VisualTargetTrans::count [protected]
 

Definition at line 54 of file VisualTargetTrans.h.

VisionEventNS::VisionSourceID_t VisualTargetTrans::sid [protected]
 

Source ID of object to track.

Definition at line 53 of file VisualTargetTrans.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.5
Generated Fri Oct 10 15:58:16 2003 by Doxygen 1.3.4