#include <AbstractListenerOptionCad.hpp>
◆ EPrvStateOption
◆ AbstractListenerOptionCad() [1/3]
AbstractListenerOptionCad::AbstractListenerOptionCad |
( |
| ) |
|
◆ ~AbstractListenerOptionCad()
AbstractListenerOptionCad::~AbstractListenerOptionCad |
( |
| ) |
|
|
virtualdefault |
◆ AbstractListenerOptionCad() [2/3]
◆ AbstractListenerOptionCad() [3/3]
◆ beginObjsCatchable()
std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > AbstractListenerOptionCad::beginObjsCatchable |
( |
| ) |
const |
◆ deleteObjCaptured()
void AbstractListenerOptionCad::deleteObjCaptured |
( |
| ) |
|
◆ drawObjCaptured()
◆ 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
-
evt | The 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
-
evt | The 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
-
evt | The motion event representing the click. |
capturedObjectIndex | Index of the captured object. |
capturedObject | Shared 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
-
evt | The motion event representing the click. |
Implemented in ListenerCadMimicEditor.
◆ onDrawOption()
Handles the drawing operation and determines if the canvas needs a redraw.
- Parameters
-
evt | The motion event that triggered the drawing. |
graphics | Graphics 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
-
evt | The 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
-
evt | The motion event triggered by the key press. |
Reimplemented in ListenerCadMimicEditor.
◆ onMouseMoved()
virtual void AbstractListenerOptionCad::onMouseMoved |
( |
CEventMotion * | evt | ) |
|
|
inlineprotectedvirtual |
Handles the mouse movement event.
- Parameters
-
evt | The motion event representing the movement. |
Reimplemented in ListenerCadMimicEditor.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ 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 |
◆ 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
◆ m_state
The documentation for this class was generated from the following files: