#include <LightApp_OCCSelector.h>

Public Member Functions | |
| LightApp_OCCSelector (OCCViewer_Viewer *, SUIT_SelectionMgr *) | |
| virtual | ~LightApp_OCCSelector () |
| OCCViewer_Viewer * | viewer () const |
| virtual QString | type () const |
| SUIT_SelectionMgr * | selectionMgr () const |
| bool | isEnabled () const |
| virtual void | setEnabled (const bool) |
| bool | autoBlock () const |
| virtual void | setAutoBlock (const bool) |
| void | selected (SUIT_DataOwnerPtrList &) const |
| void | setSelected (const SUIT_DataOwnerPtrList &) |
| bool | hasSelectionMode (const int) const |
| void | selectionModes (QList< int > &) const |
Protected Member Functions | |
| virtual void | getSelection (SUIT_DataOwnerPtrList &) const |
| virtual void | setSelection (const SUIT_DataOwnerPtrList &) |
| virtual QString | entry (const Handle_AIS_InteractiveObject &) const |
| void | selectionChanged () |
Protected Attributes | |
| SUIT_DataOwnerPtrList | mySelectedExternals |
Private Slots | |
| virtual void | onSelectionChanged () |
| virtual void | onDeselection () |
Private Attributes | |
| OCCViewer_Viewer * | myViewer |
Custom selector to get/set selection from OCC viewer
| LightApp_OCCSelector::LightApp_OCCSelector | ( | OCCViewer_Viewer * | viewer, |
| SUIT_SelectionMgr * | mgr | ||
| ) |
Constructor
References myViewer, onDeselection(), onSelectionChanged(), and SUIT_Selector.selectionChanged().
| LightApp_OCCSelector::~LightApp_OCCSelector | ( | ) | [virtual] |
Destructor.
| OCCViewer_Viewer * LightApp_OCCSelector::viewer | ( | ) | const |
Gets viewer.
References myViewer.
| virtual QString LightApp_OCCSelector.type | ( | ) | const [virtual] |
Implements SUIT_Selector.
| void LightApp_OCCSelector::onSelectionChanged | ( | ) | [private, virtual, slot] |
On selection changed.
References SUIT_Selector.selectionChanged().
| void LightApp_OCCSelector::onDeselection | ( | ) | [private, virtual, slot] |
On selection cleared.
References SUIT_DataOwnerPtrList.clear(), and mySelectedExternals.
| void LightApp_OCCSelector::getSelection | ( | SUIT_DataOwnerPtrList & | aList | ) | const [protected, virtual] |
Gets selection list.
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList.append(), entry(), OCCViewer_Viewer.getSelectedObjects(), Handle(), mySelectedExternals, and myViewer.
| void LightApp_OCCSelector::setSelection | ( | const SUIT_DataOwnerPtrList & | aList | ) | [protected, virtual] |
Sets selection list.
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList.append(), SUIT_DataOwnerPtrList.clear(), LightApp_DataOwner.entry(), entry(), Handle(), mySelectedExternals, myViewer, OCCViewer_Viewer.setObjectsSelected(), and OCCViewer_Viewer.unHighlightAll().
| virtual QString LightApp_OCCSelector.entry | ( | const Handle_AIS_InteractiveObject & | ) | const [protected, virtual] |
| SUIT_SelectionMgr * SUIT_Selector::selectionMgr | ( | ) | const [inherited] |
Gets selection manager.
References SUIT_Selector.mySelMgr.
| bool SUIT_Selector::isEnabled | ( | ) | const [inherited] |
Checks: Is selctor enabled?
References SUIT_Selector.myEnabled.
| void SUIT_Selector::setEnabled | ( | const bool | on | ) | [virtual, inherited] |
Sets selctor anbled to on.
References SUIT_Selector.myEnabled.
| bool SUIT_Selector::autoBlock | ( | ) | const [inherited] |
Checks: Is selector auto block?
References SUIT_Selector.myAutoBlock.
| void SUIT_Selector::setAutoBlock | ( | const bool | on | ) | [virtual, inherited] |
Sets selctor autoblock to on.
References SUIT_Selector.myAutoBlock.
| void SUIT_Selector::selected | ( | SUIT_DataOwnerPtrList & | lst | ) | const [inherited] |
Puts to lst selection list of data owners.
References SUIT_DataOwnerPtrList.clear(), and SUIT_Selector.getSelection().
| void SUIT_Selector::setSelected | ( | const SUIT_DataOwnerPtrList & | lst | ) | [inherited] |
Puts to selection list of data owners lst..
References SUIT_Selector.isEnabled(), SUIT_Selector.myBlock, and SUIT_Selector.setSelection().
| bool SUIT_Selector::hasSelectionMode | ( | const int | mode | ) | const [inherited] |
Checks: Is selection manager has selection mode mode?
References SUIT_SelectionMgr.hasSelectionMode(), and SUIT_Selector.selectionMgr().
| void SUIT_Selector::selectionModes | ( | QList< int > & | lst | ) | const [inherited] |
Puts to list lst selection modes from selection manager.
References SUIT_Selector.selectionMgr(), and SUIT_SelectionMgr.selectionModes().
| void SUIT_Selector::selectionChanged | ( | ) | [protected, inherited] |
On selection changed.
References SUIT_Selector.autoBlock(), SUIT_Selector.isEnabled(), SUIT_Selector.myBlock, SUIT_SelectionMgr.selectionChanged(), and SUIT_Selector.selectionMgr().
OCCViewer_Viewer* LightApp_OCCSelector.myViewer [private] |