#include <ListenerCadMimicEditor.hpp>
◆ ePrvState
Enumerator |
---|
None | |
Dragging | |
SingleSelecting | |
WindowsSelecting | |
CreatingElement | |
◆ EPrvStateOption
◆ ListenerCadMimicEditor() [1/3]
◆ ~ListenerCadMimicEditor()
ListenerCadMimicEditor::~ListenerCadMimicEditor |
( |
| ) |
|
|
overridedefault |
◆ ListenerCadMimicEditor() [2/3]
◆ ListenerCadMimicEditor() [3/3]
◆ beginObjsCatchable()
std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > AbstractListenerOptionCad::beginObjsCatchable |
( |
| ) |
const |
|
inherited |
◆ deleteObjCaptured()
void AbstractListenerOptionCad::deleteObjCaptured |
( |
| ) |
|
|
inherited |
◆ drawObjCaptured()
◆ drawObjCatchables()
void AbstractListenerOptionCad::drawObjCatchables |
( |
uint64_t | indView, |
|
|
const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > & | graphics, |
|
|
iv::eLanguage | drawingLanguage ) |
|
inherited |
◆ endObjCaptured()
void AbstractListenerOptionCad::endObjCaptured |
( |
CGraphicsDXF * | graphics | ) |
|
|
inherited |
◆ endObjCatchables()
void AbstractListenerOptionCad::endObjCatchables |
( |
const std::shared_ptr< std::vector< std::shared_ptr< IGraphics > > > & | graphics | ) |
|
|
inherited |
◆ getArrayObjsCaptured()
std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > AbstractListenerOptionCad::getArrayObjsCaptured |
( |
| ) |
|
|
protectedinherited |
◆ getInteractableObjects()
std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > ListenerCadMimicEditor::getInteractableObjects |
( |
| ) |
|
|
overrideprivatevirtual |
Retrieves all interactable objects present in the canvas.
- Returns
- A shared pointer to a vector containing the interactable objects.
Implements AbstractListenerOptionCad.
◆ onBeginOption()
bool ListenerCadMimicEditor::onBeginOption |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
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.
Implements AbstractListenerOptionCad.
◆ onClickRelease()
void ListenerCadMimicEditor::onClickRelease |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
Handles the release of a click event.
- Parameters
-
evt | The motion event representing the release. |
Reimplemented from AbstractListenerOptionCad.
◆ onClickWithCapture()
void ListenerCadMimicEditor::onClickWithCapture |
( |
CEventMotion * | evt, |
|
|
uint64_t | indObjCaptured, |
|
|
const std::shared_ptr< AbstractObjCapture > & | objCatchable ) |
|
overrideprivatevirtual |
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. |
Implements AbstractListenerOptionCad.
◆ onClickWithoutCapture()
void ListenerCadMimicEditor::onClickWithoutCapture |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
Handles a click event when no object is captured.
- Parameters
-
evt | The motion event representing the click. |
Implements AbstractListenerOptionCad.
◆ 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 from AbstractListenerOptionCad.
◆ onEndOption()
bool ListenerCadMimicEditor::onEndOption |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
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.
Implements AbstractListenerOptionCad.
◆ onKeyPressed()
void ListenerCadMimicEditor::onKeyPressed |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
Handles a key press event.
- Parameters
-
evt | The motion event triggered by the key press. |
Reimplemented from AbstractListenerOptionCad.
◆ onMouseMoved()
void ListenerCadMimicEditor::onMouseMoved |
( |
CEventMotion * | evt | ) |
|
|
overrideprivatevirtual |
Handles the mouse movement event.
- Parameters
-
evt | The motion event representing the movement. |
Reimplemented from AbstractListenerOptionCad.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ runAddElement()
void ListenerCadMimicEditor::runAddElement |
( |
CEventMotion * | evt | ) |
|
◆ runAlignment()
void ListenerCadMimicEditor::runAlignment |
( |
CEventMotion * | evt | ) |
|
◆ runBegin()
bool AbstractListenerOptionCad::runBegin |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runCenter()
void ListenerCadMimicEditor::runCenter |
( |
CEventMotion * | evt | ) |
|
◆ runClick()
void AbstractListenerOptionCad::runClick |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runClickRelease()
void AbstractListenerOptionCad::runClickRelease |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runCreatingElement()
bool ListenerCadMimicEditor::runCreatingElement |
( |
CEventMotion * | evt | ) |
|
|
private |
◆ runDraw()
void AbstractListenerOptionCad::runDraw |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runDrawCreatingElement()
◆ runEnd()
bool AbstractListenerOptionCad::runEnd |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runEquidistance()
void ListenerCadMimicEditor::runEquidistance |
( |
CEventMotion * | evt | ) |
|
◆ runEventMotion()
void AbstractListenerOptionCad::runEventMotion |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runFindAndReplace()
void ListenerCadMimicEditor::runFindAndReplace |
( |
CEventMotion * | evt | ) |
|
◆ runKeyPressed()
void AbstractListenerOptionCad::runKeyPressed |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runMouseMoved()
void AbstractListenerOptionCad::runMouseMoved |
( |
CEventMotion * | evt | ) |
|
|
inherited |
◆ runRotate()
void ListenerCadMimicEditor::runRotate |
( |
CEventMotion * | evt | ) |
|
◆ setFlagModify()
void AbstractListenerOptionCad::setFlagModify |
( |
bool * | isFlagModify | ) |
|
|
inherited |
◆ setHasObjCapturedInfo()
bool AbstractListenerOptionCad::setHasObjCapturedInfo |
( |
| ) |
|
|
protectedvirtualinherited |
◆ updateObjsCaptured()
void AbstractListenerOptionCad::updateObjsCaptured |
( |
| ) |
|
|
protectedinherited |
◆ m_copyingObjsIndices
std::optional<std::set<uint64_t> > ListenerCadMimicEditor::m_copyingObjsIndices |
|
private |
◆ m_firstPointArea
◆ m_hasObjInfo
bool AbstractListenerOptionCad::m_hasObjInfo |
|
privateinherited |
◆ m_indObjCapturedOpt
std::optional<uint64_t> AbstractListenerOptionCad::m_indObjCapturedOpt |
|
privateinherited |
◆ m_isDragging
std::optional<bool> ListenerCadMimicEditor::m_isDragging |
|
private |
◆ m_isFlagModifyOpt
bool* AbstractListenerOptionCad::m_isFlagModifyOpt |
|
privateinherited |
◆ m_newMimicElementBuilder
◆ m_newMimicElementFirstPointRelative
◆ m_newMimicElementFirstPointWorld
◆ m_newMimicElementPointsRelative
◆ m_newMimicElementPointsWorld
◆ m_objsCatchableOpt
std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture> > > AbstractListenerOptionCad::m_objsCatchableOpt |
|
privateinherited |
◆ m_panelRef
◆ m_pastingPositionOffset
◆ m_pointBaseOpt
◆ m_previousMotionCoordinate
◆ m_selectedObjsIndices
std::optional<std::set<uint64_t> > ListenerCadMimicEditor::m_selectedObjsIndices |
|
private |
◆ m_singleSelectionObjIndex
std::optional<uint64_t> ListenerCadMimicEditor::m_singleSelectionObjIndex |
|
private |
◆ m_startPointDrag
◆ m_state
The documentation for this class was generated from the following files: