Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SPACENAVIGATOREVENT_H_
00020 #define SPACENAVIGATOREVENT_H_
00021
00022 #include <mitkCommon.h>
00023 #include <mitkEvent.h>
00024 #include <mitkVector.h>
00025
00026 #include <mitkInputDevicesExports.h>
00027
00028 namespace mitk {
00029
00041 class mitkInputDevices_EXPORT SpaceNavigatorEvent : public Event
00042 {
00043
00044 public:
00052 SpaceNavigatorEvent(int buttonState, const Vector3D& translation, const Vector3D& rotation, const ScalarType& angle);
00053
00054
00055 const Vector3D& GetTranslation() const
00056 {
00057 return m_Translation;
00058 }
00059
00060 void SetTranslation(const Vector3D& translation)
00061 {
00062 m_Translation = translation;
00063 }
00064
00065 const Vector3D& GetRotation() const
00066 {
00067 return m_Rotation;
00068 }
00069
00070 void SetRotation(const Vector3D& rotation)
00071 {
00072 m_Rotation = rotation;
00073 }
00074
00075 const ScalarType& GetAngle() const
00076 {
00077 return m_Angle;
00078 }
00079
00080 void SetAngle(const ScalarType& angle)
00081 {
00082 m_Angle = angle;
00083 }
00084
00085
00086 protected:
00087
00088 Vector3D m_Translation;
00089 Vector3D m_Rotation;
00090 ScalarType m_Angle;
00091
00092 };
00093 }
00094
00095 #endif