Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::cad::CadMimicEditorUseCases Class Reference

#include <CadMimicEditorUseCases.hpp>

Classes

struct  Constants
 

Static Public Member Functions

static std::optional< std::shared_ptr< AbstractBuilderMimicElement > > selectMimicElementBuilder (CEventMotion *evt)
 
static bool createMimicElement (CDialog *dlgFather, const CPanelMimicsEditor *panelRef, const iv::math::geometry::Point2d &point, const std::shared_ptr< AbstractBuilderMimicElement > &mimicElementBuilder, const std::optional< std::function< void(std::shared_ptr< iv::mimics::AbstractMimicElement >)> > &setDefaultProperties=std::nullopt)
 
static bool createMimicElement (CEventMotion *evt, CPanelMimicsEditor *panelRef, const std::shared_ptr< AbstractBuilderMimicElement > &mimicElementBuilder)
 
static bool createMimicElementTwoPoints (CEventMotion *evt, CPanelMimicsEditor *panelRef, const iv::math::geometry::Point2d &firstPoint, const std::shared_ptr< AbstractBuilderMimicElement > &mimicElementBuilder)
 
static bool createMimicElementMultiplePoints (CEventMotion *evt, CPanelMimicsEditor *panelRef, std::vector< iv::math::geometry::Point2d > points, const std::shared_ptr< AbstractBuilderMimicElement > &mimicElementBuilder)
 
static std::optional< std::set< uint64_t > > selectMimicElementsIndicesInArea (CEventMotion *evt, const std::optional< iv::math::geometry::Point2d > &firstPoint, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable)
 
static bool editMimicElementProperties (CEventMotion *evt, const std::shared_ptr< AbstractObjCapture > &objCatchable)
 
static bool deleteMimicElements (CEventMotion *evt, CPanelMimicsEditor *panelRef, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool copyMimicElements (CEventMotion *evt, CPanelMimicsEditor *panelRef, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndicesOut, std::optional< iv::types::coord > &pastingPositionOffsetOut)
 
static bool moveMimicElements (CEventMotion *evt, const std::optional< iv::math::geometry::Point2d > &startPointDrag, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool moveMimicElements (CEventMotion *evt, iv::types::coord dx, iv::types::coord dy, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool rotateMimicElements (CEventMotion *evt, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool findAndReplaceInMimicElements (CEventMotion *evt, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool alignmentMimicElements (CEventMotion *evt, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool equidistanceMimicElements (CEventMotion *evt, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices)
 
static bool centerMimicElements (CEventMotion *evt, const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCatchable, const std::optional< std::set< uint64_t > > &elementsIndices, const CPanelMimicsEditor *panelMimicsEditor)
 
static void addBackgroundDxf (CEventMotion *evt, const CPanelMimicsEditor *panelMimicsEditor)
 
static void removeBackgroundDxf (CEventMotion *evt, const CPanelMimicsEditor *panelMimicsEditor)
 
static void changeScreenResolution (CEventMotion *evt, CPanelMimicsEditor *panelMimicsEditor)
 
static void undoChanges (CEventMotion *evt, const CPanelMimicsEditor *panelMimicsEditor)
 
static void redoChanges (CEventMotion *evt, const CPanelMimicsEditor *panelMimicsEditor)
 
static void startMimicSnapshots (const CPanelMimicsEditor *panelMimicsEditor)
 
static void addSnapshotState (const CPanelMimicsEditor *panelMimicsEditor)
 
static void displayMimicEditorShortcuts (CDialog *dialogFather)
 

Member Function Documentation

◆ addBackgroundDxf()

void iv::cad::CadMimicEditorUseCases::addBackgroundDxf ( CEventMotion * evt,
const CPanelMimicsEditor * panelMimicsEditor )
static

◆ addSnapshotState()

void iv::cad::CadMimicEditorUseCases::addSnapshotState ( const CPanelMimicsEditor * panelMimicsEditor)
static

◆ alignmentMimicElements()

bool iv::cad::CadMimicEditorUseCases::alignmentMimicElements ( CEventMotion * evt,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ centerMimicElements()

bool iv::cad::CadMimicEditorUseCases::centerMimicElements ( CEventMotion * evt,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices,
const CPanelMimicsEditor * panelMimicsEditor )
static

◆ changeScreenResolution()

void iv::cad::CadMimicEditorUseCases::changeScreenResolution ( CEventMotion * evt,
CPanelMimicsEditor * panelMimicsEditor )
static

◆ copyMimicElements()

bool iv::cad::CadMimicEditorUseCases::copyMimicElements ( CEventMotion * evt,
CPanelMimicsEditor * panelRef,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndicesOut,
std::optional< iv::types::coord > & pastingPositionOffsetOut )
static

◆ createMimicElement() [1/2]

bool iv::cad::CadMimicEditorUseCases::createMimicElement ( CDialog * dlgFather,
const CPanelMimicsEditor * panelRef,
const iv::math::geometry::Point2d & point,
const std::shared_ptr< AbstractBuilderMimicElement > & mimicElementBuilder,
const std::optional< std::function< void(std::shared_ptr< iv::mimics::AbstractMimicElement >)> ,
& setDefaultProperties = std::nullopt )
static

◆ createMimicElement() [2/2]

bool iv::cad::CadMimicEditorUseCases::createMimicElement ( CEventMotion * evt,
CPanelMimicsEditor * panelRef,
const std::shared_ptr< AbstractBuilderMimicElement > & mimicElementBuilder )
static

◆ createMimicElementMultiplePoints()

bool iv::cad::CadMimicEditorUseCases::createMimicElementMultiplePoints ( CEventMotion * evt,
CPanelMimicsEditor * panelRef,
std::vector< iv::math::geometry::Point2d > points,
const std::shared_ptr< AbstractBuilderMimicElement > & mimicElementBuilder )
static

◆ createMimicElementTwoPoints()

bool iv::cad::CadMimicEditorUseCases::createMimicElementTwoPoints ( CEventMotion * evt,
CPanelMimicsEditor * panelRef,
const iv::math::geometry::Point2d & firstPoint,
const std::shared_ptr< AbstractBuilderMimicElement > & mimicElementBuilder )
static

◆ deleteMimicElements()

bool iv::cad::CadMimicEditorUseCases::deleteMimicElements ( CEventMotion * evt,
CPanelMimicsEditor * panelRef,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ displayMimicEditorShortcuts()

void iv::cad::CadMimicEditorUseCases::displayMimicEditorShortcuts ( CDialog * dialogFather)
static

◆ editMimicElementProperties()

bool iv::cad::CadMimicEditorUseCases::editMimicElementProperties ( CEventMotion * evt,
const std::shared_ptr< AbstractObjCapture > & objCatchable )
static

◆ equidistanceMimicElements()

bool iv::cad::CadMimicEditorUseCases::equidistanceMimicElements ( CEventMotion * evt,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ findAndReplaceInMimicElements()

bool iv::cad::CadMimicEditorUseCases::findAndReplaceInMimicElements ( CEventMotion * evt,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ moveMimicElements() [1/2]

bool iv::cad::CadMimicEditorUseCases::moveMimicElements ( CEventMotion * evt,
const std::optional< iv::math::geometry::Point2d > & startPointDrag,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ moveMimicElements() [2/2]

bool iv::cad::CadMimicEditorUseCases::moveMimicElements ( CEventMotion * evt,
iv::types::coord dx,
iv::types::coord dy,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ redoChanges()

void iv::cad::CadMimicEditorUseCases::redoChanges ( CEventMotion * evt,
const CPanelMimicsEditor * panelMimicsEditor )
static

◆ removeBackgroundDxf()

void iv::cad::CadMimicEditorUseCases::removeBackgroundDxf ( CEventMotion * evt,
const CPanelMimicsEditor * panelMimicsEditor )
static

◆ rotateMimicElements()

bool iv::cad::CadMimicEditorUseCases::rotateMimicElements ( CEventMotion * evt,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable,
const std::optional< std::set< uint64_t > > & elementsIndices )
static

◆ selectMimicElementBuilder()

std::optional< std::shared_ptr< AbstractBuilderMimicElement > > iv::cad::CadMimicEditorUseCases::selectMimicElementBuilder ( CEventMotion * evt)
static

◆ selectMimicElementsIndicesInArea()

std::optional< std::set< uint64_t > > iv::cad::CadMimicEditorUseCases::selectMimicElementsIndicesInArea ( CEventMotion * evt,
const std::optional< iv::math::geometry::Point2d > & firstPoint,
const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > & objsCatchable )
static

◆ startMimicSnapshots()

void iv::cad::CadMimicEditorUseCases::startMimicSnapshots ( const CPanelMimicsEditor * panelMimicsEditor)
static

◆ undoChanges()

void iv::cad::CadMimicEditorUseCases::undoChanges ( CEventMotion * evt,
const CPanelMimicsEditor * panelMimicsEditor )
static

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