Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <VisionEvent.h>
Inheritance diagram for VisionEvent:
Definition at line 22 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 25 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 27 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 29 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 43 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::creatorSize(), and EventBase::getBinSize(). |
|
returns the x coordinate
Definition at line 31 of file VisionEvent.h. References _cenX. |
|
returns the y coordinate
Definition at line 34 of file VisionEvent.h. References _cenY. |
|
returns the distance (not implemented)
Definition at line 37 of file VisionEvent.h. References _distance. |
|
returns the property
Definition at line 40 of file VisionEvent.h. References _property. |
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 53 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::checkCreator(), LoadSave::decode(), and EventBase::LoadBuffer(). |
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 71 of file VisionEvent.h. References _cenX, _cenY, _distance, _property, LoadSave::encode(), EventBase::SaveBuffer(), and LoadSave::saveCreator(). |
|
sets the x coordinate
Definition at line 32 of file VisionEvent.h. References _cenX. |
|
sets the y coordinate
Definition at line 35 of file VisionEvent.h. References _cenY. |
|
sets the distance
Definition at line 38 of file VisionEvent.h. References _distance. |
|
sets the property
Definition at line 41 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 90 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 91 of file VisionEvent.h. |
|
distance from snout to object in millimeters.
Definition at line 92 of file VisionEvent.h. |
|
some property, depending on the SID
Definition at line 93 of file VisionEvent.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:14 2003 by Doxygen 1.3.2 |