Event on 3D Mouse input. More...
#include <mitkTDMouseEvent.h>
Public Member Functions | |
TDMouseEvent (int buttonState, const Vector3D &translation, const Vector3D &rotation, const ScalarType &angle) | |
Constructor with all necessary arguments. | |
const Vector3D & | GetTranslation () const |
void | SetTranslation (const Vector3D &translation) |
const Vector3D & | GetRotation () const |
void | SetRotation (const Vector3D &rotation) |
const ScalarType & | GetAngle () const |
void | SetAngle (const ScalarType &angle) |
Protected Attributes | |
Vector3D | m_Translation |
Vector3D | m_Rotation |
ScalarType | m_Angle |
Event on 3D Mouse input.
Seven coordinates exposed by the 3D Mouse: 3-dimensional translation vector 3-dimensional rotation achsis (length allways 1.0) scalar rotation angle
Definition at line 37 of file mitkTDMouseEvent.h.
mitk::TDMouseEvent::TDMouseEvent | ( | int | buttonState, |
const Vector3D & | translation, | ||
const Vector3D & | rotation, | ||
const ScalarType & | angle | ||
) |
Constructor with all necessary arguments.
buttonState: information from the Event
Definition at line 23 of file mitkTDMouseEvent.cpp.
: Event(NULL, Type_TDMouseInput, BS_NoButton, buttonState, Key_none), m_Translation(translation), m_Rotation(rotation), m_Angle(angle) { }
const ScalarType& mitk::TDMouseEvent::GetAngle | ( | ) | const [inline] |
Definition at line 60 of file mitkTDMouseEvent.h.
References m_Angle.
Referenced by mitk::TDMouseVtkCameraController::OnTDMouseEvent().
{ return m_Angle; }
const Vector3D& mitk::TDMouseEvent::GetRotation | ( | ) | const [inline] |
Definition at line 53 of file mitkTDMouseEvent.h.
References m_Rotation.
Referenced by mitk::TDMouseVtkCameraController::OnTDMouseEvent().
{ return m_Rotation; }
const Vector3D& mitk::TDMouseEvent::GetTranslation | ( | ) | const [inline] |
Definition at line 46 of file mitkTDMouseEvent.h.
References m_Translation.
Referenced by mitk::TDMouseVtkCameraController::OnTDMouseEvent().
{ return m_Translation; }
void mitk::TDMouseEvent::SetAngle | ( | const ScalarType & | angle ) | [inline] |
void mitk::TDMouseEvent::SetRotation | ( | const Vector3D & | rotation ) | [inline] |
void mitk::TDMouseEvent::SetTranslation | ( | const Vector3D & | translation ) | [inline] |
Definition at line 51 of file mitkTDMouseEvent.h.
References m_Translation.
{ m_Translation = translation; }
ScalarType mitk::TDMouseEvent::m_Angle [protected] |
Definition at line 71 of file mitkTDMouseEvent.h.
Referenced by GetAngle(), and SetAngle().
Vector3D mitk::TDMouseEvent::m_Rotation [protected] |
Definition at line 70 of file mitkTDMouseEvent.h.
Referenced by GetRotation(), and SetRotation().
Vector3D mitk::TDMouseEvent::m_Translation [protected] |
Definition at line 69 of file mitkTDMouseEvent.h.
Referenced by GetTranslation(), and SetTranslation().