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

Definition at line 21 of file VisionEvent.h.
Public Member Functions | |
| VisionEvent () | |
| Constructor. | |
| VisionEvent (EventTypeID_t tid, unsigned int sid) | |
| Constructor, pass a type id and source id. | |
| VisionEvent (EventTypeID_t tid, unsigned int sid, float cenX, float cenY) | |
| Constructor, pass the type id, source id, center X and center Y. | |
| float | getCenterX () const |
| returns the x coordinate | |
| VisionEvent & | setCenterX (float cenX) |
| sets the x coordinate | |
| float | getCenterY () const |
| returns the y coordinate | |
| VisionEvent & | setCenterY (float cenY) |
| sets the y coordinate | |
| float | getDistance () const |
| returns the distance (not implemented) | |
| VisionEvent & | setDistance (float dist) |
| sets the distance | |
| int | getProperty () const |
| returns the property | |
| VisionEvent & | setProperty (int property) |
| sets the property | |
| 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. | |
| int | _property |
| some property, depending on the SID | |
|
|
Constructor.
Definition at line 24 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, EventBase::statusETID, and EventBase::visionEGID. |
|
||||||||||||
|
Constructor, pass a type id and source id.
Definition at line 26 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, and EventBase::visionEGID. |
|
||||||||||||||||||||
|
Constructor, pass the type id, source id, center X and center Y.
Definition at line 28 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, and EventBase::visionEGID. |
|
|
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 42 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::creatorSize(), and EventBase::getBinSize(). |
Here is the call graph for this function:

|
|
returns the x coordinate
Definition at line 30 of file VisionEvent.h. References _cenX. |
|
|
returns the y coordinate
Definition at line 33 of file VisionEvent.h. References _cenY. |
|
|
returns the distance (not implemented)
Definition at line 36 of file VisionEvent.h. References _distance. |
|
|
returns the property
Definition at line 39 of file VisionEvent.h. References _property. |
|
||||||||||||
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 52 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::checkCreator(), LoadSave::decode(), and EventBase::LoadBuffer(). |
Here is the call graph for this function:

|
||||||||||||
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 70 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::encode(), EventBase::SaveBuffer(), and LoadSave::saveCreator(). |
Here is the call graph for this function:

|
|
sets the x coordinate
Definition at line 31 of file VisionEvent.h. References _cenX. |
|
|
sets the y coordinate
Definition at line 34 of file VisionEvent.h. References _cenY. |
|
|
sets the distance
Definition at line 37 of file VisionEvent.h. References _distance. |
|
|
sets the property
Definition at line 40 of file VisionEvent.h. References _property. |
|
|
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 89 of file VisionEvent.h. |
|
|
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 90 of file VisionEvent.h. |
|
|
distance from snout to object in millimeters.
Definition at line 91 of file VisionEvent.h. |
|
|
some property, depending on the SID
Definition at line 92 of file VisionEvent.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:58:13 2003 by Doxygen 1.3.4 |