| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <VisionObjectEvent.h>
Inheritance diagram for VisionObjectEvent:

Definition at line 8 of file VisionObjectEvent.h.
Public Member Functions | |
| VisionObjectEvent () | |
| Constructor. | |
| VisionObjectEvent (EventTypeID_t tid, unsigned int sid) | |
| Constructor, pass a type id and source id. | |
| VisionObjectEvent (EventTypeID_t tid, unsigned int sid, float cenX, float cenY) | |
| Constructor, pass the type id, source id, center X and center Y. | |
| virtual | ~VisionObjectEvent () |
| destructor | |
| float | getCenterX () const |
| returns the x coordinate | |
| VisionObjectEvent & | setCenterX (float cenX) |
| sets the x coordinate | |
| float | getCenterY () const |
| returns the y coordinate | |
| VisionObjectEvent & | setCenterY (float cenY) |
| sets the y coordinate | |
| float | getDistance () const |
| returns the distance (not implemented) | |
| VisionObjectEvent & | setDistance (float dist) |
| sets the distance | |
| virtual unsigned int | getBinSize () const |
| calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work. | |
| virtual unsigned int | LoadBuffer (const char buf[], unsigned int len) |
| Load from a saved buffer. | |
| virtual unsigned int | SaveBuffer (char buf[], unsigned int len) const |
| Save to a given buffer. | |
Protected Attributes | |
| float | _cenX |
| a value representing location in visual field - from -1 if on the left edge to 1 if it's on the right edge | |
| float | _cenY |
| a value representing location in visual field - from -1 if on the bottom edge to 1 if it's on the top edge | |
| float | _distance |
| distance from snout to object in millimeters. (not implemented) | |
|
|
Constructor.
Definition at line 11 of file VisionObjectEvent.h. |
|
||||||||||||
|
Constructor, pass a type id and source id.
Definition at line 13 of file VisionObjectEvent.h. |
|
||||||||||||||||||||
|
Constructor, pass the type id, source id, center X and center Y.
Definition at line 15 of file VisionObjectEvent.h. |
|
|
destructor
Definition at line 17 of file VisionObjectEvent.h. |
|
|
calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work.
Reimplemented from EventBase. Definition at line 4 of file VisionObjectEvent.cc. |
|
|
returns the x coordinate
Definition at line 19 of file VisionObjectEvent.h. Referenced by WalkToTargetMachine::processEvent(), VisualTargetCloseTrans::processEvent(), and EventLogger::processEvent(). |
|
|
returns the y coordinate
Definition at line 22 of file VisionObjectEvent.h. Referenced by WalkToTargetMachine::processEvent(), VisualTargetCloseTrans::processEvent(), and EventLogger::processEvent(). |
|
|
returns the distance (not implemented)
Definition at line 25 of file VisionObjectEvent.h. Referenced by EventLogger::processEvent(). |
|
||||||||||||
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 15 of file VisionObjectEvent.cc. Referenced by EventTranslator::sendEvent(). |
|
||||||||||||
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 34 of file VisionObjectEvent.cc. |
|
|
sets the x coordinate
Definition at line 20 of file VisionObjectEvent.h. |
|
|
sets the y coordinate
Definition at line 23 of file VisionObjectEvent.h. |
|
|
sets the distance
Definition at line 26 of file VisionObjectEvent.h. |
|
|
a value representing location in visual field - from -1 if on the left edge to 1 if it's on the right edge
Definition at line 36 of file VisionObjectEvent.h. Referenced by getBinSize(), getCenterX(), LoadBuffer(), SaveBuffer(), setCenterX(), and VisionObjectEvent(). |
|
|
a value representing location in visual field - from -1 if on the bottom edge to 1 if it's on the top edge
Definition at line 37 of file VisionObjectEvent.h. Referenced by getBinSize(), getCenterY(), LoadBuffer(), SaveBuffer(), setCenterY(), and VisionObjectEvent(). |
|
|
distance from snout to object in millimeters. (not implemented)
Definition at line 38 of file VisionObjectEvent.h. Referenced by getBinSize(), getDistance(), LoadBuffer(), SaveBuffer(), setDistance(), and VisionObjectEvent(). |
|
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:31 2004 by Doxygen 1.3.4 |