#include <SUIT_Selector.h>

Data Structures | |
| class | Destroyer |
Public Member Functions | |
| SUIT_Selector (SUIT_SelectionMgr *, QObject *=0) | |
| virtual | ~SUIT_Selector () |
| virtual QString | type () const =0 |
| 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 | |
| void | selectionChanged () |
| virtual void | getSelection (SUIT_DataOwnerPtrList &) const =0 |
| virtual void | setSelection (const SUIT_DataOwnerPtrList &)=0 |
Private Attributes | |
| SUIT_SelectionMgr * | mySelMgr |
| bool | myBlock |
| bool | myEnabled |
| bool | myAutoBlock |
| Destroyer * | myDestroyer |
Class provide selector for data owners.
Base class for all selectors used in SUIT-based applications. Provides functionality to get/set selection from/into some widget (ObjectBrowser, viewers, etc) Used by selection manager for selection synhronizing
| SUIT_Selector::SUIT_Selector | ( | SUIT_SelectionMgr * | selMgr, |
| QObject * | parent = 0 |
||
| ) |
Constructor.
References SUIT_SelectionMgr.installSelector(), and myDestroyer.
| SUIT_Selector::~SUIT_Selector | ( | ) | [virtual] |
Destructor.
References myDestroyer, SUIT_SelectionMgr.removeSelector(), selectionMgr(), SUIT_Selector.Destroyer.selector(), and SUIT_Selector.Destroyer.setSelector().
| virtual QString SUIT_Selector.type | ( | ) | const [pure virtual] |
Implemented in LightApp_GLSelector, LightApp_OBSelector, LightApp_OCCSelector, LightApp_Plot2dSelector, and LightApp_VTKSelector.
| SUIT_SelectionMgr * SUIT_Selector::selectionMgr | ( | ) | const |
Gets selection manager.
References mySelMgr.
| bool SUIT_Selector::isEnabled | ( | ) | const |
Checks: Is selctor enabled?
References myEnabled.
| void SUIT_Selector::setEnabled | ( | const bool | on | ) | [virtual] |
Sets selctor anbled to on.
References myEnabled.
| bool SUIT_Selector::autoBlock | ( | ) | const |
Checks: Is selector auto block?
References myAutoBlock.
| void SUIT_Selector::setAutoBlock | ( | const bool | on | ) | [virtual] |
Sets selctor autoblock to on.
References myAutoBlock.
| void SUIT_Selector::selected | ( | SUIT_DataOwnerPtrList & | lst | ) | const |
Puts to lst selection list of data owners.
References SUIT_DataOwnerPtrList.clear(), and getSelection().
| void SUIT_Selector::setSelected | ( | const SUIT_DataOwnerPtrList & | lst | ) |
Puts to selection list of data owners lst..
References isEnabled(), myBlock, and setSelection().
| bool SUIT_Selector::hasSelectionMode | ( | const int | mode | ) | const |
Checks: Is selection manager has selection mode mode?
References SUIT_SelectionMgr.hasSelectionMode(), and selectionMgr().
| void SUIT_Selector::selectionModes | ( | QList< int > & | lst | ) | const |
Puts to list lst selection modes from selection manager.
References selectionMgr(), and SUIT_SelectionMgr.selectionModes().
| void SUIT_Selector::selectionChanged | ( | ) | [protected] |
On selection changed.
References autoBlock(), isEnabled(), myBlock, SUIT_SelectionMgr.selectionChanged(), and selectionMgr().
| virtual void SUIT_Selector.getSelection | ( | SUIT_DataOwnerPtrList & | ) | const [protected, pure virtual] |
Implemented in LightApp_GLSelector, LightApp_OBSelector, LightApp_OCCSelector, LightApp_Plot2dSelector, and LightApp_VTKSelector.
| virtual void SUIT_Selector.setSelection | ( | const SUIT_DataOwnerPtrList & | ) | [protected, pure virtual] |
Implemented in LightApp_GLSelector, LightApp_OBSelector, LightApp_OCCSelector, LightApp_Plot2dSelector, and LightApp_VTKSelector.
SUIT_SelectionMgr* SUIT_Selector.mySelMgr [private] |
bool SUIT_Selector.myBlock [private] |
bool SUIT_Selector.myEnabled [private] |
bool SUIT_Selector.myAutoBlock [private] |
Destroyer* SUIT_Selector.myDestroyer [private] |