Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

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 10 of file VisualTargetCloseTrans.h.

Public Member Functions

 VisualTargetCloseTrans (StateNode *source, StateNode *destination, VisionEventNS::VisionSourceID_t source_id)
 constructor

virtual void enable ()
 starts listening for the object specified by the source id in the constructor

virtual void disable ()
 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()


Protected Attributes

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


Constructor & Destructor Documentation

VisualTargetCloseTrans::VisualTargetCloseTrans StateNode source,
StateNode destination,
VisionEventNS::VisionSourceID_t  source_id
[inline, explicit]
 

constructor

Definition at line 13 of file VisualTargetCloseTrans.h.

References sid.


Member Function Documentation

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

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

Implements Transition.

Definition at line 19 of file VisualTargetCloseTrans.h.

References erouter, and EventRouter::forgetListener().

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

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

Implements Transition.

Definition at line 16 of file VisualTargetCloseTrans.h.

References EventRouter::addListener(), erouter, sid, and EventBase::visionEGID.

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

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

Todo:
need to activate if it's "close"

Implements EventListener.

Definition at line 22 of file VisualTargetCloseTrans.h.

References ASSERTRET.


Member Data Documentation

VisionEventNS::VisionSourceID_t VisualTargetCloseTrans::sid [protected]
 

Source ID of object to track.

Definition at line 29 of file VisualTargetCloseTrans.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:15 2003 by Doxygen 1.3.2