#include <Event.H>
Public Types | |
enum | EventType { EVENTTYPE_STANDARD = 0, EVENTTYPE_1D = 1, EVENTTYPE_2D = 2, EVENTTYPE_3D = 3, EVENTTYPE_COORDINATEFRAME = 4, EVENTTYPE_MSG = 5 } |
Public Member Functions | |
Event (const std::string &name) | |
Event (const std::string &name, const double data) | |
Event (const std::string &name, const Vector2 &data) | |
Event (const std::string &name, const Vector3 &data) | |
Event (const std::string &name, const CoordinateFrame &data) | |
Event (const std::string &name, const std::string &data) | |
virtual | ~Event () |
std::string | getName () const |
EventType | getType () const |
double | get1DData () |
Vector2 | get2DData () |
Vector3 | get3DData () |
CoordinateFrame | getCoordinateFrameData () |
std::string | getMsgData () |
std::string | toString () |
void | rename (const std::string &newname) |
void | serialize (BinaryOutput &b) const |
void | deserialize (BinaryInput &b) |
Protected Attributes | |
std::string | _name |
EventType | _type |
double | _data1D |
Vector2 | _data2D |
Vector3 | _data3D |
CoordinateFrame | _dataCF |
std::string | _dataMsg |
EVENTTYPE_STANDARD | |
EVENTTYPE_1D | standard type, carries no additional info |
EVENTTYPE_2D | event that stores 1D data in a double |
EVENTTYPE_3D | stores two doubles |
EVENTTYPE_COORDINATEFRAME | stores three doubles |
EVENTTYPE_MSG | stores a G3D CoordinateFrame |
IS3D::Event::Event | ( | const std::string & | name | ) | [inline] |
References _name, _type, and EVENTTYPE_STANDARD.
IS3D::Event::Event | ( | const std::string & | name, | |
const double | data | |||
) | [inline] |
References _data1D, _name, _type, and EVENTTYPE_1D.
IS3D::Event::Event | ( | const std::string & | name, | |
const Vector2 & | data | |||
) | [inline] |
References _data2D, _name, _type, and EVENTTYPE_2D.
IS3D::Event::Event | ( | const std::string & | name, | |
const Vector3 & | data | |||
) | [inline] |
References _data3D, _name, _type, and EVENTTYPE_3D.
IS3D::Event::Event | ( | const std::string & | name, | |
const CoordinateFrame & | data | |||
) | [inline] |
References _dataCF, _name, _type, and EVENTTYPE_COORDINATEFRAME.
IS3D::Event::Event | ( | const std::string & | name, | |
const std::string & | data | |||
) | [inline] |
References _dataMsg, _name, _type, and EVENTTYPE_MSG.
virtual IS3D::Event::~Event | ( | ) | [inline, virtual] |
std::string IS3D::Event::getName | ( | ) | const [inline] |
References _name.
double IS3D::Event::get1DData | ( | ) |
Vector2 IS3D::Event::get2DData | ( | ) |
Vector3 IS3D::Event::get3DData | ( | ) |
CoordinateFrame IS3D::Event::getCoordinateFrameData | ( | ) |
std::string IS3D::Event::getMsgData | ( | ) |
std::string IS3D::Event::toString | ( | ) |
void IS3D::Event::rename | ( | const std::string & | newname | ) | [inline] |
References _name.
void IS3D::Event::serialize | ( | BinaryOutput & | b | ) | const |
void IS3D::Event::deserialize | ( | BinaryInput & | b | ) |
std::string IS3D::Event::_name [protected] |
EventType IS3D::Event::_type [protected] |
double IS3D::Event::_data1D [protected] |
Referenced by Event().
Vector2 IS3D::Event::_data2D [protected] |
Referenced by Event().
Vector3 IS3D::Event::_data3D [protected] |
Referenced by Event().
CoordinateFrame IS3D::Event::_dataCF [protected] |
Referenced by Event().
std::string IS3D::Event::_dataMsg [protected] |
Referenced by Event().