#include <OmniEvent.h>


Public Types | |
| enum | State { Button1 = 0, Button2 } |
| Define the SensAble PHANTOM® state (which button is pressed). More... | |
Public Member Functions | |
| OmniEvent (State state, double posX, double posY, double posZ) | |
| Constructor. | |
| OmniEvent (State state, Vector3 position, Quat orientation) | |
| Constructor. | |
| virtual | ~OmniEvent () |
| Destructor. | |
| double | getPosX (void) const |
| Get the PHANTOM® X coordinate. | |
| double | getPosY (void) const |
| Get the PHANTOM® Y coordinate. | |
| double | getPosZ (void) const |
| Get the PHANTOM® Z coordinate. | |
| State | getState (void) const |
| Get the PHANTOM® state. | |
| Vector3 | getPosition (void) const |
| Get the PHANTOM® coordinates. | |
| Quat | getOrientation (void) const |
| Get the PHANTOM® orientation. | |
Private Attributes | |
| State | m_state |
| SensAble PHANTOM® buttons state on the event propagation. | |
| double | m_posX |
| double | m_posY |
| double | m_posZ |
| SensAble PHANTOM® coordinates. | |
| Vector3 | m_position |
| SensAble PHANTOM® coordinates in a Vec3d type. | |
| Quat | m_orientation |
| SensAble PHANTOM® orientation. | |
Definition at line 48 of file OmniEvent.h.
Define the SensAble PHANTOM® state (which button is pressed).
Definition at line 55 of file OmniEvent.h.
| sofa::core::objectmodel::OmniEvent::OmniEvent | ( | State | state, | |
| double | posX, | |||
| double | posY, | |||
| double | posZ | |||
| ) |
| sofa::core::objectmodel::OmniEvent::~OmniEvent | ( | ) | [virtual] |
| Quat sofa::core::objectmodel::OmniEvent::getOrientation | ( | void | ) | const [inline] |
Get the PHANTOM® orientation.
Definition at line 104 of file OmniEvent.h.
References m_orientation.
Referenced by sofa::component::controller::MechanicalStateController< DataTypes >::onOmniEvent().
| Vector3 sofa::core::objectmodel::OmniEvent::getPosition | ( | void | ) | const [inline] |
Get the PHANTOM® coordinates.
Definition at line 99 of file OmniEvent.h.
References m_position.
Referenced by sofa::component::controller::MechanicalStateController< DataTypes >::onOmniEvent().
| double sofa::core::objectmodel::OmniEvent::getPosX | ( | void | ) | const [inline] |
Get the PHANTOM® X coordinate.
Definition at line 79 of file OmniEvent.h.
References m_posX.
Referenced by sofa::component::controller::MechanicalStateController< DataTypes >::onOmniEvent().
| double sofa::core::objectmodel::OmniEvent::getPosY | ( | void | ) | const [inline] |
Get the PHANTOM® Y coordinate.
Definition at line 84 of file OmniEvent.h.
References m_posY.
Referenced by sofa::component::controller::MechanicalStateController< DataTypes >::onOmniEvent().
| double sofa::core::objectmodel::OmniEvent::getPosZ | ( | void | ) | const [inline] |
Get the PHANTOM® Z coordinate.
Definition at line 89 of file OmniEvent.h.
References m_posZ.
Referenced by sofa::component::controller::MechanicalStateController< DataTypes >::onOmniEvent().
| State sofa::core::objectmodel::OmniEvent::getState | ( | void | ) | const [inline] |
SensAble PHANTOM® orientation.
Definition at line 111 of file OmniEvent.h.
Referenced by getOrientation().
SensAble PHANTOM® coordinates in a Vec3d type.
Definition at line 110 of file OmniEvent.h.
Referenced by getPosition().
double sofa::core::objectmodel::OmniEvent::m_posX [private] |
double sofa::core::objectmodel::OmniEvent::m_posY [private] |
double sofa::core::objectmodel::OmniEvent::m_posZ [private] |
SensAble PHANTOM® coordinates.
Definition at line 109 of file OmniEvent.h.
Referenced by getPosZ(), and OmniEvent().
SensAble PHANTOM® buttons state on the event propagation.
Definition at line 108 of file OmniEvent.h.
Referenced by getState().
1.5.7.1