SHAPER
9.12.0
|
Selection manager. More...
Public Slots | |
void | onObjectBrowserSelection () |
Reaction on selectio0n in Object browser. More... | |
void | onViewerSelection () |
Reaction on selectio0n in Viewer. More... | |
Signals | |
void | selectionChanged () |
Emited when selection in a one of viewers was changed. More... | |
Public Member Functions | |
XGUI_SelectionMgr (XGUI_Workshop *theParent) | |
Constructor. More... | |
XGUI_Selection * | selection () const |
Returns current selection. More... | |
ModuleBase_ISelection::SelectionPlace | placeOfSelection () const |
void | connectViewers () |
Connects the manager to all viewers accessible by Workshop. More... | |
void | setSelectedOwners (const SelectMgr_IndexedMapOfOwner &theSelectedOwners, bool isUpdateViewer) |
Selects the owners in the context. More... | |
void | clearSelection () |
Clears selection in Viewer and object Browser. More... | |
void | setSelected (const QList< std::shared_ptr< ModuleBase_ViewerPrs > > &theValues) |
Sets values selected in both, ObjectBrowser and V3d viewer Selection is not synchronized between these controls. More... | |
void | deselectPresentation (const HandlettheObject) |
Find all selected owners of the object and remove the owners from selection. More... | |
void | updateSelectionBy (const ModuleBase_ISelection::SelectionPlace &thePlace) |
Updates selection, which are depend on the selection in the given place. More... | |
std::list< FeaturePtr > | getSelectedFeatures () |
Returns list of selected features (ignores other selected objects and parts) More... | |
Selection manager.
Provides selection event on selection in Object Browser and Viewer
XGUI_SelectionMgr::XGUI_SelectionMgr | ( | XGUI_Workshop * | theParent | ) |
Constructor.
theParent | a parent workshop |
|
inline |
Returns current selection.
void XGUI_SelectionMgr::connectViewers | ( | ) |
Connects the manager to all viewers accessible by Workshop.
void XGUI_SelectionMgr::setSelectedOwners | ( | const SelectMgr_IndexedMapOfOwner & | theSelectedOwners, |
bool | isUpdateViewer | ||
) |
Selects the owners in the context.
theSelectedOwners | a container of owners |
isUpdateViewer | the parameter whether the viewer should be update immediatelly |
previous selection should be cleared, else there will be decomposition of selections: as AddOrRemoveSelected inverts current selection
void XGUI_SelectionMgr::clearSelection | ( | ) |
Clears selection in Viewer and object Browser.
void XGUI_SelectionMgr::setSelected | ( | const QList< std::shared_ptr< ModuleBase_ViewerPrs > > & | theValues | ) |
Sets values selected in both, ObjectBrowser and V3d viewer Selection is not synchronized between these controls.
theValues | a container of values to be selected. |
void XGUI_SelectionMgr::deselectPresentation | ( | const | HandlettheObject | ) |
Find all selected owners of the object and remove the owners from selection.
theObject | an interactive object |
void XGUI_SelectionMgr::updateSelectionBy | ( | const ModuleBase_ISelection::SelectionPlace & | thePlace | ) |
Updates selection, which are depend on the selection in the given place.
thePlace | a widget where selection has happened. |
std::list< FeaturePtr > XGUI_SelectionMgr::getSelectedFeatures | ( | ) |
Returns list of selected features (ignores other selected objects and parts)
|
signal |
Emited when selection in a one of viewers was changed.
|
slot |
Reaction on selectio0n in Object browser.
|
slot |
Reaction on selectio0n in Viewer.