Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
AbstractListenerOptionCad Class Referenceabstract

#include <AbstractListenerOptionCad.hpp>

Inheritance diagram for AbstractListenerOptionCad:
[legend]

Public Member Functions

 AbstractListenerOptionCad ()
 
virtual ~AbstractListenerOptionCad ()
 
 AbstractListenerOptionCad (const AbstractListenerOptionCad &other)=delete
 
 AbstractListenerOptionCad (AbstractListenerOptionCad &&other)=delete
 
AbstractListenerOptionCadoperator= (const AbstractListenerOptionCad &other)=delete
 
AbstractListenerOptionCadoperator= (AbstractListenerOptionCad &&other)=delete
 
std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > beginObjsCatchable () const
 
void deleteObjCaptured ()
 
void drawObjCatchables (uint64_t indView, const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > &graphics, iv::eLanguage drawingLanguage)
 
void drawObjCaptured (uint64_t indView, CGraphicsDXF *graphics, iv::eLanguage eLanguage)
 
void endObjCatchables (const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > &graphics)
 
void endObjCaptured (CGraphicsDXF *graphics)
 
bool runBegin (CEventMotion *evt)
 
void runClick (CEventMotion *evt)
 
void runClickRelease (CEventMotion *evt)
 
void runKeyPressed (CEventMotion *evt)
 
void runMouseMoved (CEventMotion *evt)
 
bool runEnd (CEventMotion *evt)
 
void runEventMotion (CEventMotion *evt)
 
void runDraw (CEventMotion *evt)
 
void setFlagModify (bool *isFlagModify)
 

Protected Member Functions

virtual std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > getInteractableObjects ()=0
 Retrieves all interactable objects present in the canvas.
 
virtual bool onBeginOption (CEventMotion *evt)=0
 Handles the start launch of an interaction option.
 
virtual void onClickWithCapture (CEventMotion *evt, uint64_t indObjCaptured, const std::shared_ptr< AbstractObjCapture > &objCatchable)=0
 Handles a click event on a captured object.
 
virtual void onClickWithoutCapture (CEventMotion *evt)=0
 Handles a click event when no object is captured.
 
virtual void onClickRelease (CEventMotion *evt)
 Handles the release of a click event.
 
virtual void onKeyPressed (CEventMotion *evt)
 Handles a key press event.
 
virtual void onMouseMoved (CEventMotion *evt)
 Handles the mouse movement event.
 
virtual bool onDrawOption (CEventMotion *evt, IGraphics *graphics)
 Handles the drawing operation and determines if the canvas needs a redraw.
 
virtual bool onEndOption (CEventMotion *evt)=0
 Handles the stop of an interaction option.
 
virtual bool setHasObjCapturedInfo ()
 
void updateObjsCaptured ()
 
std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > getArrayObjsCaptured ()
 

Private Types

enum class  EPrvStateOption { STOPPED , MOVING }
 

Private Attributes

EPrvStateOption m_state
 
bool * m_isFlagModifyOpt
 
std::optional< iv::math::geometry::Point2dm_previousMotionCoordinate
 
bool m_hasObjInfo
 
std::optional< uint64_t > m_indObjCapturedOpt
 
std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > m_objsCatchableOpt
 

Member Enumeration Documentation

◆ EPrvStateOption

Enumerator
STOPPED 
MOVING 

Constructor & Destructor Documentation

◆ AbstractListenerOptionCad() [1/3]

AbstractListenerOptionCad::AbstractListenerOptionCad ( )

◆ ~AbstractListenerOptionCad()

AbstractListenerOptionCad::~AbstractListenerOptionCad ( )
virtualdefault

◆ AbstractListenerOptionCad() [2/3]

AbstractListenerOptionCad::AbstractListenerOptionCad ( const AbstractListenerOptionCad & other)
delete

◆ AbstractListenerOptionCad() [3/3]

AbstractListenerOptionCad::AbstractListenerOptionCad ( AbstractListenerOptionCad && other)
delete

Member Function Documentation

◆ beginObjsCatchable()

std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > AbstractListenerOptionCad::beginObjsCatchable ( ) const

◆ deleteObjCaptured()

void AbstractListenerOptionCad::deleteObjCaptured ( )

◆ drawObjCaptured()

void AbstractListenerOptionCad::drawObjCaptured ( uint64_t indView,
CGraphicsDXF * graphics,
iv::eLanguage eLanguage )

◆ drawObjCatchables()

void AbstractListenerOptionCad::drawObjCatchables ( uint64_t indView,
const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > & graphics,
iv::eLanguage drawingLanguage )

◆ endObjCaptured()

void AbstractListenerOptionCad::endObjCaptured ( CGraphicsDXF * graphics)

◆ endObjCatchables()

void AbstractListenerOptionCad::endObjCatchables ( const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > & graphics)

◆ getArrayObjsCaptured()

std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > AbstractListenerOptionCad::getArrayObjsCaptured ( )
protected

◆ getInteractableObjects()

virtual std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > AbstractListenerOptionCad::getInteractableObjects ( )
protectedpure virtual

Retrieves all interactable objects present in the canvas.

Returns
A shared pointer to a vector containing the interactable objects.

Implemented in ListenerCadMimicEditor.

◆ onBeginOption()

virtual bool AbstractListenerOptionCad::onBeginOption ( CEventMotion * evt)
protectedpure virtual

Handles the start launch of an interaction option.

Parameters
evtThe motion event that triggered this action.
Returns
True if the interaction option has successfully started.

Implemented in ListenerCadMimicEditor.

◆ onClickRelease()

virtual void AbstractListenerOptionCad::onClickRelease ( CEventMotion * evt)
inlineprotectedvirtual

Handles the release of a click event.

Parameters
evtThe motion event representing the release.

Reimplemented in ListenerCadMimicEditor.

◆ onClickWithCapture()

virtual void AbstractListenerOptionCad::onClickWithCapture ( CEventMotion * evt,
uint64_t indObjCaptured,
const std::shared_ptr< AbstractObjCapture > & objCatchable )
protectedpure virtual

Handles a click event on a captured object.

Parameters
evtThe motion event representing the click.
capturedObjectIndexIndex of the captured object.
capturedObjectShared pointer to the captured object instance.

Implemented in ListenerCadMimicEditor.

◆ onClickWithoutCapture()

virtual void AbstractListenerOptionCad::onClickWithoutCapture ( CEventMotion * evt)
protectedpure virtual

Handles a click event when no object is captured.

Parameters
evtThe motion event representing the click.

Implemented in ListenerCadMimicEditor.

◆ onDrawOption()

bool AbstractListenerOptionCad::onDrawOption ( CEventMotion * evt,
IGraphics * graphics )
protectedvirtual

Handles the drawing operation and determines if the canvas needs a redraw.

Parameters
evtThe motion event that triggered the drawing.
graphicsGraphics context to perform the drawing.
Returns
True if the canvas requires a redraw after this operation.

Reimplemented in ListenerCadMimicEditor.

◆ onEndOption()

virtual bool AbstractListenerOptionCad::onEndOption ( CEventMotion * evt)
protectedpure virtual

Handles the stop of an interaction option.

Parameters
evtThe motion event that triggered this action.
Returns
True if the interaction option has successfully ended.

Implemented in ListenerCadMimicEditor.

◆ onKeyPressed()

virtual void AbstractListenerOptionCad::onKeyPressed ( CEventMotion * evt)
inlineprotectedvirtual

Handles a key press event.

Parameters
evtThe motion event triggered by the key press.

Reimplemented in ListenerCadMimicEditor.

◆ onMouseMoved()

virtual void AbstractListenerOptionCad::onMouseMoved ( CEventMotion * evt)
inlineprotectedvirtual

Handles the mouse movement event.

Parameters
evtThe motion event representing the movement.

Reimplemented in ListenerCadMimicEditor.

◆ operator=() [1/2]

AbstractListenerOptionCad & AbstractListenerOptionCad::operator= ( AbstractListenerOptionCad && other)
delete

◆ operator=() [2/2]

AbstractListenerOptionCad & AbstractListenerOptionCad::operator= ( const AbstractListenerOptionCad & other)
delete

◆ runBegin()

bool AbstractListenerOptionCad::runBegin ( CEventMotion * evt)

◆ runClick()

void AbstractListenerOptionCad::runClick ( CEventMotion * evt)

◆ runClickRelease()

void AbstractListenerOptionCad::runClickRelease ( CEventMotion * evt)

◆ runDraw()

void AbstractListenerOptionCad::runDraw ( CEventMotion * evt)

◆ runEnd()

bool AbstractListenerOptionCad::runEnd ( CEventMotion * evt)

◆ runEventMotion()

void AbstractListenerOptionCad::runEventMotion ( CEventMotion * evt)

◆ runKeyPressed()

void AbstractListenerOptionCad::runKeyPressed ( CEventMotion * evt)

◆ runMouseMoved()

void AbstractListenerOptionCad::runMouseMoved ( CEventMotion * evt)

◆ setFlagModify()

void AbstractListenerOptionCad::setFlagModify ( bool * isFlagModify)

◆ setHasObjCapturedInfo()

bool AbstractListenerOptionCad::setHasObjCapturedInfo ( )
protectedvirtual

◆ updateObjsCaptured()

void AbstractListenerOptionCad::updateObjsCaptured ( )
protected

Member Data Documentation

◆ m_hasObjInfo

bool AbstractListenerOptionCad::m_hasObjInfo
private

◆ m_indObjCapturedOpt

std::optional<uint64_t> AbstractListenerOptionCad::m_indObjCapturedOpt
private

◆ m_isFlagModifyOpt

bool* AbstractListenerOptionCad::m_isFlagModifyOpt
private

◆ m_objsCatchableOpt

std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture> > > AbstractListenerOptionCad::m_objsCatchableOpt
private

◆ m_previousMotionCoordinate

std::optional<iv::math::geometry::Point2d> AbstractListenerOptionCad::m_previousMotionCoordinate
private

◆ m_state

EPrvStateOption AbstractListenerOptionCad::m_state
private

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