#include <LightApp_GLSelector.h>

Public Member Functions | |
| LightApp_GLSelector (GLViewer_Viewer2d *, SUIT_SelectionMgr *) | |
| virtual | ~LightApp_GLSelector () |
| GLViewer_Viewer2d * | 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 &) |
| void | selectionChanged () |
Private Slots | |
| void | onSelectionChanged () |
Private Attributes | |
| GLViewer_Viewer2d * | myViewer |
Custom selector to get/set selection from GL viewer
| LightApp_GLSelector::LightApp_GLSelector | ( | GLViewer_Viewer2d * | viewer, |
| SUIT_SelectionMgr * | mgr | ||
| ) |
Constructor. Initialize by GLViewer_Viewer2d and SUIT_SelectionMgr.
References myViewer, onSelectionChanged(), and SUIT_Selector.selectionChanged().
| LightApp_GLSelector::~LightApp_GLSelector | ( | ) | [virtual] |
Destructor. Do nothing.
| GLViewer_Viewer2d * LightApp_GLSelector::viewer | ( | ) | const |
Gets viewer
References myViewer.
| virtual QString LightApp_GLSelector.type | ( | ) | const [virtual] |
Implements SUIT_Selector.
| void LightApp_GLSelector::onSelectionChanged | ( | ) | [private, slot] |
On selection changed event.
References SUIT_Selector.selectionChanged().
| void LightApp_GLSelector::getSelection | ( | SUIT_DataOwnerPtrList & | aList | ) | const [protected, virtual] |
Gets list of selected Data Owner objects.
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList.append(), LightApp_DataOwner.entry(), GLViewer_Viewer2d.getGLContext(), GLViewer_Context.InitSelected(), GLViewer_Context.MoreSelected(), myViewer, GLViewer_Context.NextSelected(), PyInterp.obj, GLViewer_Object.owner(), and GLViewer_Context.SelectedObject().
| void LightApp_GLSelector::setSelection | ( | const SUIT_DataOwnerPtrList & | aList | ) | [protected, virtual] |
Sets to selected list of Data Owner objects.
Implements SUIT_Selector.
References LightApp_DataOwner.entry(), GLViewer_Viewer2d.getGLContext(), GLViewer_Context.getObjects(), GLViewer_Object.getVisible(), GLViewer_Object.isSelected(), myViewer, PyInterp.obj, GLViewer_Object.owner(), GLViewer_Context.remSelected(), GLViewer_Context.setSelected(), and GLViewer_Viewer2d.updateAll().
| 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().
GLViewer_Viewer2d* LightApp_GLSelector.myViewer [private] |