SHAPER
9.13.0
|
A class which provides access to selection. More...
Public Types | |
enum | SelectionPlace { Browser , Viewer , AllControls } |
Types of the selection place, where the selection is obtained. More... | |
Public Member Functions | |
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > | getSelected (const SelectionPlace &thePlace=Browser) const =0 |
Returns a list of viewer selected presentations. More... | |
virtual QList< std::shared_ptr< ModuleBase_ViewerPrs > > | getHighlighted () const =0 |
Returns a list of viewer highlited presentations. More... | |
virtual void | fillPresentation (std::shared_ptr< ModuleBase_ViewerPrs > &thePrs, const Handle &&theOwner) const =0 |
Fills the viewer presentation parameters by the parameters from the owner. More... | |
virtual QObjectPtrList | selectedObjects () const =0 |
Returns list of features currently selected in object browser. More... | |
virtual QObjectPtrList | selectedPresentations () const =0 |
Returns list of currently selected results. More... | |
virtual QModelIndexList | selectedIndexes () const =0 |
Returns list of currently selected QModelIndexes. More... | |
ResultPtr | getResult (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
Return the shape from the viewer presentation. More... | |
GeomShapePtr | getShape (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
Return the shape from the viewer presentation. More... | |
virtual | HandleggetIO (const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs)=0 |
Return the IO from the viewer presentation. More... | |
Static Public Member Functions | |
static void | appendSelected (const QList< std::shared_ptr< ModuleBase_ViewerPrs >> theValues, QList< std::shared_ptr< ModuleBase_ViewerPrs >> &theValuesTo) |
The values are appended to the first parameter list if the first list does not contain an item with the same object. More... | |
static QList< std::shared_ptr< ModuleBase_ViewerPrs > > | getViewerPrs (const QObjectPtrList &theObjects) |
Wraps the object list into the viewer prs list. More... | |
static void | filterSelectionOnEqualPoints (QList< std::shared_ptr< ModuleBase_ViewerPrs >> &theSelected) |
Removes selection items where owners have equal vertices. More... | |
Protected Member Functions | |
virtual ObjectPtr | getSelectableObject (const Handle &&theOwner) const =0 |
Returns list of currently selected QModelIndexes. More... | |
A class which provides access to selection.
A selection can be obtained as from a viewer as from Object browser in various forms
Types of the selection place, where the selection is obtained.
|
pure virtual |
Returns a list of viewer selected presentations.
Implemented in XGUI_Selection.
|
static |
The values are appended to the first parameter list if the first list does not contain an item with the same object.
theValues | a list of new values |
theValuesTo | a list, that will be changed |
|
pure virtual |
Returns a list of viewer highlited presentations.
Implemented in XGUI_Selection.
|
pure virtual |
Fills the viewer presentation parameters by the parameters from the owner.
thePrs | a container for selection |
theOwner | a selection owner |
Implemented in XGUI_Selection.
|
pure virtual |
Returns list of features currently selected in object browser.
Implemented in XGUI_Selection.
|
pure virtual |
Returns list of currently selected results.
Implemented in XGUI_Selection.
|
pure virtual |
Returns list of currently selected QModelIndexes.
Implemented in XGUI_Selection.
ResultPtr ModuleBase_ISelection::getResult | ( | const std::shared_ptr< ModuleBase_ViewerPrs > & | thePrs | ) |
Return the shape from the viewer presentation.
If the shape is equal to the shape of selected object, it returns an empty shape
thePrs | a selected object |
GeomShapePtr ModuleBase_ISelection::getShape | ( | const std::shared_ptr< ModuleBase_ViewerPrs > & | thePrs | ) |
Return the shape from the viewer presentation.
If the shape is equal to the shape of selected object, it returns an empty shape
thePrs | a selected object |
|
pure virtual |
Return the IO from the viewer presentation.
thePrs | a selected object |
Implemented in XGUI_Selection.
|
static |
Wraps the object list into the viewer prs list.
theObjects | a list of objects |
|
static |
Removes selection items where owners have equal vertices.
The first owner with the qual vertex stays in the list.
|
protectedpure virtual |
Returns list of currently selected QModelIndexes.
Implemented in XGUI_Selection.