Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CEventMotion Class Reference

#include <CEventMotion.hpp>

Collaboration diagram for CEventMotion:
[legend]

Public Types

enum class  EButtonMotion {
  Movement , Keyboard , Left , LeftRelease ,
  DoubleLeft , DoubleLeftRelease , Right , RightRelease
}
 
enum class  EActionAfterEvent {
  None , Redraw , UpdateElement , UpdateAll ,
  DeleteElement
}
 

Public Member Functions

 CEventMotion ()=delete
 
 CEventMotion (CEventMotion::EButtonMotion bto, const std::optional< iv::math::geometry::Point2d > &pixelPoint, CCanvas *canvasRef, class CDialog *dlgFatherRef, IGraphics *graphicsRef, const iv::ui::KeysPressed &keysPressed)
 
 CEventMotion (const CEventMotion &eventMotion)
 
virtual ~CEventMotion ()
 
void appendMove (double dx, double dy)
 
void appendScale (double sx, double sy)
 
void runActionAfter ()
 
void updateCanvas ()
 
CEventMotion::EActionAfterEvent getActionAfter () const
 
CEventMotion::EButtonMotion getButton () const
 
CDialoggetDialogFatherRef ()
 
void getDistancePixelToWorld (double distancePixel, double *distanceWorld)
 
IGraphicsgetGraphics ()
 
bool getPositionCapture (double *xCaptured, double *yCaptured) const
 
bool getPositionPixels (double *xPixel, double *yPixel) const
 
bool getPositionWorld (double *x, double *y)
 
void getPosWorldToPixel (double xWorld, double yWorld, double *xPixel, double *yPixel) const
 
void getRelativePositionToView (double *xRel, double *yRel) const
 
void setActionAfterEvt (CEventMotion::EActionAfterEvent actionAfter)
 
void setHasCapture (bool hasCapture, double xCaptured, double yCaptured)
 
void setProcessed ()
 
void setRelativePositionToView (double xRel, double yRel)
 
bool isModified () const
 
bool isProcessed () const
 
bool isControl () const
 
bool isShift () const
 
bool isDelete () const
 
bool isArrowKey () const
 
iv::ui::KeysPressed getKeysPressed () const
 

Private Attributes

CEventMotion::EButtonMotion m_bto
 
CEventMotion::EActionAfterEvent m_actionAfter
 
std::optional< iv::math::geometry::Point2dm_pixelPoint
 
CCanvasm_canvasRef
 
IGraphicsm_graphicsRefOpt
 
CDialogm_dlgFatherRef
 
bool m_isProcessed
 
CMatrix4x4 m_transformation
 
CMatrix4x4 m_transformationInversedOpt
 
bool m_hasCapture
 
double m_xCaptureOpt
 
double m_yCaptureOpt
 
double m_xRelativeToViewOpt
 
double m_yRelativeToViewOpt
 
iv::ui::KeysPressed m_keysPressed
 

Member Enumeration Documentation

◆ EActionAfterEvent

Enumerator
None 
Redraw 
UpdateElement 
UpdateAll 
DeleteElement 

◆ EButtonMotion

enum class CEventMotion::EButtonMotion
strong
Enumerator
Movement 
Keyboard 
Left 
LeftRelease 
DoubleLeft 
DoubleLeftRelease 
Right 
RightRelease 

Constructor & Destructor Documentation

◆ CEventMotion() [1/3]

CEventMotion::CEventMotion ( )
delete

◆ CEventMotion() [2/3]

CEventMotion::CEventMotion ( CEventMotion::EButtonMotion bto,
const std::optional< iv::math::geometry::Point2d > & pixelPoint,
CCanvas * canvasRef,
class CDialog * dlgFatherRef,
IGraphics * graphicsRef,
const iv::ui::KeysPressed & keysPressed )

◆ CEventMotion() [3/3]

CEventMotion::CEventMotion ( const CEventMotion & eventMotion)

◆ ~CEventMotion()

CEventMotion::~CEventMotion ( )
virtualdefault

Member Function Documentation

◆ appendMove()

void CEventMotion::appendMove ( double dx,
double dy )

◆ appendScale()

void CEventMotion::appendScale ( double sx,
double sy )

◆ getActionAfter()

CEventMotion::EActionAfterEvent CEventMotion::getActionAfter ( ) const
nodiscard

◆ getButton()

CEventMotion::EButtonMotion CEventMotion::getButton ( ) const
nodiscard

◆ getDialogFatherRef()

CDialog * CEventMotion::getDialogFatherRef ( )

◆ getDistancePixelToWorld()

void CEventMotion::getDistancePixelToWorld ( double distancePixel,
double * distanceWorld )

◆ getGraphics()

IGraphics * CEventMotion::getGraphics ( )

◆ getKeysPressed()

iv::ui::KeysPressed CEventMotion::getKeysPressed ( ) const
nodiscard

◆ getPositionCapture()

bool CEventMotion::getPositionCapture ( double * xCaptured,
double * yCaptured ) const

◆ getPositionPixels()

bool CEventMotion::getPositionPixels ( double * xPixel,
double * yPixel ) const

◆ getPositionWorld()

bool CEventMotion::getPositionWorld ( double * x,
double * y )

◆ getPosWorldToPixel()

void CEventMotion::getPosWorldToPixel ( double xWorld,
double yWorld,
double * xPixel,
double * yPixel ) const

◆ getRelativePositionToView()

void CEventMotion::getRelativePositionToView ( double * xRel,
double * yRel ) const

◆ isArrowKey()

bool CEventMotion::isArrowKey ( ) const
nodiscard

◆ isControl()

bool CEventMotion::isControl ( ) const
nodiscard

◆ isDelete()

bool CEventMotion::isDelete ( ) const
nodiscard

◆ isModified()

bool CEventMotion::isModified ( ) const
nodiscard

◆ isProcessed()

bool CEventMotion::isProcessed ( ) const
nodiscard

◆ isShift()

bool CEventMotion::isShift ( ) const
nodiscard

◆ runActionAfter()

void CEventMotion::runActionAfter ( )

◆ setActionAfterEvt()

void CEventMotion::setActionAfterEvt ( CEventMotion::EActionAfterEvent actionAfter)

◆ setHasCapture()

void CEventMotion::setHasCapture ( bool hasCapture,
double xCaptured,
double yCaptured )

◆ setProcessed()

void CEventMotion::setProcessed ( )

◆ setRelativePositionToView()

void CEventMotion::setRelativePositionToView ( double xRel,
double yRel )

◆ updateCanvas()

void CEventMotion::updateCanvas ( )

Member Data Documentation

◆ m_actionAfter

CEventMotion::EActionAfterEvent CEventMotion::m_actionAfter
private

◆ m_bto

CEventMotion::EButtonMotion CEventMotion::m_bto
private

◆ m_canvasRef

CCanvas* CEventMotion::m_canvasRef
private

◆ m_dlgFatherRef

CDialog* CEventMotion::m_dlgFatherRef
private

◆ m_graphicsRefOpt

IGraphics* CEventMotion::m_graphicsRefOpt
private

◆ m_hasCapture

bool CEventMotion::m_hasCapture
private

◆ m_isProcessed

bool CEventMotion::m_isProcessed
private

◆ m_keysPressed

iv::ui::KeysPressed CEventMotion::m_keysPressed
private

◆ m_pixelPoint

std::optional<iv::math::geometry::Point2d> CEventMotion::m_pixelPoint
private

◆ m_transformation

CMatrix4x4 CEventMotion::m_transformation
private

◆ m_transformationInversedOpt

CMatrix4x4 CEventMotion::m_transformationInversedOpt
private

◆ m_xCaptureOpt

double CEventMotion::m_xCaptureOpt
private

◆ m_xRelativeToViewOpt

double CEventMotion::m_xRelativeToViewOpt
private

◆ m_yCaptureOpt

double CEventMotion::m_yCaptureOpt
private

◆ m_yRelativeToViewOpt

double CEventMotion::m_yRelativeToViewOpt
private

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