C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Camera position change event. More...

#include <vsn_processevent.h>

+ Inheritance diagram for VSN::CameraEvent:
+ Collaboration diagram for VSN::CameraEvent:

Public Member Functions

 CameraEvent (double x=0.0, double y=0.0)
 Default constructor. More...
 
virtual ~CameraEvent ()
 Destructor.
 
const MbCartPointGetPosition () const
 Returns user position. More...
 
void SetPosition (const MbCartPoint &point)
 Sets position. More...
 
void SetPosition (double x, double y)
 Sets position. More...
 
const MbVectorGetNormalizeTouchCenter () const
 Returns normalization of touch center. More...
 
void SetNormalizeTouchCenterPosition (const MbVector &normalize)
 Sets normalization of touch center. More...
 
const MbVectorGetTranslation () 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 MbCubeGetBoundingBox () 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...
 

Detailed Description

Camera position change event.

Constructor & Destructor Documentation

◆ CameraEvent()

VSN::CameraEvent::CameraEvent ( double  x = 0.0,
double  y = 0.0 
)

Default constructor.

Parameters
[in]x- Value along X-axis.
[in]y- Value along Y-axis.

Member Function Documentation

◆ GetPosition()

const MbCartPoint& VSN::CameraEvent::GetPosition ( ) const

Returns user position.

Returns
PointI.

◆ SetPosition() [1/2]

void VSN::CameraEvent::SetPosition ( const MbCartPoint point)

Sets position.

Parameters
[in]point- PointI.

◆ SetPosition() [2/2]

void VSN::CameraEvent::SetPosition ( double  x,
double  y 
)

Sets position.

Parameters
[in]x- Value along X-axis.
[in]y- Value along Y-axis.

◆ GetNormalizeTouchCenter()

const MbVector& VSN::CameraEvent::GetNormalizeTouchCenter ( ) const

Returns normalization of touch center.

Returns
Normalization of touch center position.

◆ SetNormalizeTouchCenterPosition()

void VSN::CameraEvent::SetNormalizeTouchCenterPosition ( const MbVector normalize)

Sets normalization of touch center.

Parameters
[in]normalize- Vector.

◆ GetTranslation()

const MbVector& VSN::CameraEvent::GetTranslation ( ) const

Returns movement vector.

Returns
Movement vector.

◆ SetTranslation()

void VSN::CameraEvent::SetTranslation ( const MbVector translation)

Sets movement vector.

Parameters
[in]translation- Movement vector.

◆ SetTransformation()

void VSN::CameraEvent::SetTransformation ( const MbVector translation,
double  rotation = 0.0,
double  zoomFactor = 1.0 
)

Sets transformation data.

Parameters
[in]translation- Movement vector.
[in]rotation- Rotation angle.
[in]zoomFactor- Zoom factor.

◆ GetBoundingBox()

const MbCube& VSN::CameraEvent::GetBoundingBox ( ) const

Returns bounding box.

Returns
Bounding box.

◆ SetBoundingBox()

void VSN::CameraEvent::SetBoundingBox ( const MbCube boundingBox)

Sets bounding box.

Parameters
[in]boundingBox- Bounding box.

◆ GetRotationAngle()

double VSN::CameraEvent::GetRotationAngle ( ) const

Returns rotation angle.

Returns
Rotation angle.

◆ SetRotation()

void VSN::CameraEvent::SetRotation ( double  rotation)

Sets rotation angle.

Parameters
[in]rotation- Rotation angle.

◆ GetZoomFactor()

double VSN::CameraEvent::GetZoomFactor ( ) const

Returns zoom factor.

Returns
Zoom factor.

◆ SetZoomFactor()

void VSN::CameraEvent::SetZoomFactor ( double  zoomFactor)

Sets zoom factor.

Parameters
[in]zoomFactor- Zoom factor.

◆ IsTransformation()

bool VSN::CameraEvent::IsTransformation ( ) const

Returns flag that transformation is set.

Returns
True if transformation is set.

The documentation for this class was generated from the following file: