C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Camera position change event. More...
#include <vsn_processevent.h>
Public Member Functions | |
CameraEvent (double x=0.0, double y=0.0) | |
Default constructor. More... | |
virtual | ~CameraEvent () |
Destructor. | |
const MbCartPoint & | GetPosition () const |
Returns user position. More... | |
void | SetPosition (const MbCartPoint &point) |
Sets position. More... | |
void | SetPosition (double x, double y) |
Sets position. More... | |
const MbVector & | GetNormalizeTouchCenter () const |
Returns normalization of touch center. More... | |
void | SetNormalizeTouchCenterPosition (const MbVector &normalize) |
Sets normalization of touch center. More... | |
const MbVector & | GetTranslation () const |
Returns movement vector. More... | |
void | SetTranslation (const MbVector &translation) |
Sets movement vector. More... | |
void | SetTransformation (const MbVector &translation, double rotation=0.0, double zoomFactor=1.0) |
Sets transformation data. More... | |
const MbCube & | GetBoundingBox () const |
Returns bounding box. More... | |
void | SetBoundingBox (const MbCube &boundingBox) |
Sets bounding box. More... | |
double | GetRotationAngle () const |
Returns rotation angle. More... | |
void | SetRotation (double rotation) |
Sets rotation angle. More... | |
double | GetZoomFactor () const |
Returns zoom factor. More... | |
void | SetZoomFactor (double zoomFactor) |
Sets zoom factor. More... | |
bool | IsTransformation () const |
Returns flag that transformation is set. More... | |
Public Member Functions inherited from VSN::ProcessEvent | |
ProcessEvent (EventType type) | |
Default constructor. | |
ProcessEvent (const ProcessEvent &other) | |
Copy constructor. | |
virtual | ~ProcessEvent () |
Destructor. | |
EventType | GetType () const |
Returns event type identifier. | |
Additional Inherited Members | |
Public Types inherited from VSN::ProcessEvent | |
enum | EventType { None = 0 , LButtonDown = 1 , LButtonUp = 2 , LButtonDblClk = 3 , MButtonDown = 4 , MButtonUp = 5 , MButtonDblClk = 6 , RButtonDown = 7 , RButtonUp = 8 , RButtonDblClk = 9 , MouseMove = 10 , HoverMove = 11 , MouseEnter = 12 , MouseLeave = 13 , MouseWheel = 14 , MouseWheelUp = 15 , MouseWheelDown = 16 , Close = 18 , Timer = 19 , KeyDown = 20 , KeyUp = 21 , Selection = 22 , JoyStickTranslate = 23 , JoyStickRotate = 24 , JoyStickButton = 25 , Camera = 26 , ChildRemoved = 27 , Draw = 29 , WindowStateModified = 30 , UpdateInquiry = 31 , WinEventAct = 33 , ThreadChange = 34 , DeferredDelete = 35 , NonClientAreaMouseMove = 36 , SockAct = 37 , Quit = 38 , FutureCallOut = 39 , MetaCall = 40 , NullTimerEvent = 41 , PlatformRenderingArea = 42 , ChildAdded = 43 , User = 500 , MaxUser = 65535 } |
The event type defines state of mouse, keyboard and such devices in real time mode. More... | |
Camera position change event.
VSN::CameraEvent::CameraEvent | ( | double | x = 0.0 , |
double | y = 0.0 |
||
) |
Default constructor.
[in] | x | - Value along X-axis. |
[in] | y | - Value along Y-axis. |
const MbCartPoint& VSN::CameraEvent::GetPosition | ( | ) | const |
Returns user position.
void VSN::CameraEvent::SetPosition | ( | const MbCartPoint & | point | ) |
Sets position.
[in] | point | - PointI. |
void VSN::CameraEvent::SetPosition | ( | double | x, |
double | y | ||
) |
Sets position.
[in] | x | - Value along X-axis. |
[in] | y | - Value along Y-axis. |
const MbVector& VSN::CameraEvent::GetNormalizeTouchCenter | ( | ) | const |
Returns normalization of touch center.
Sets normalization of touch center.
[in] | normalize | - Vector. |
const MbVector& VSN::CameraEvent::GetTranslation | ( | ) | const |
Returns movement vector.
Sets movement vector.
[in] | translation | - Movement vector. |
void VSN::CameraEvent::SetTransformation | ( | const MbVector & | translation, |
double | rotation = 0.0 , |
||
double | zoomFactor = 1.0 |
||
) |
Sets transformation data.
[in] | translation | - Movement vector. |
[in] | rotation | - Rotation angle. |
[in] | zoomFactor | - Zoom factor. |
const MbCube& VSN::CameraEvent::GetBoundingBox | ( | ) | const |
Returns bounding box.
Sets bounding box.
[in] | boundingBox | - Bounding box. |
double VSN::CameraEvent::GetRotationAngle | ( | ) | const |
Returns rotation angle.
void VSN::CameraEvent::SetRotation | ( | double | rotation | ) |
Sets rotation angle.
[in] | rotation | - Rotation angle. |
double VSN::CameraEvent::GetZoomFactor | ( | ) | const |
Returns zoom factor.
void VSN::CameraEvent::SetZoomFactor | ( | double | zoomFactor | ) |
Sets zoom factor.
[in] | zoomFactor | - Zoom factor. |
bool VSN::CameraEvent::IsTransformation | ( | ) | const |
Returns flag that transformation is set.