#include <LightApp_GLSelector.h>
Public Member Functions | |
LightApp_GLSelector (GLViewer_Viewer2d *, SUIT_SelectionMgr *) | |
virtual | ~LightApp_GLSelector () |
GLViewer_Viewer2d * | viewer () const |
virtual QString | type () const |
Public Member Functions inherited from SUIT_Selector | |
SUIT_Selector (SUIT_SelectionMgr *, QObject *=0) | |
virtual | ~SUIT_Selector () |
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 |
QObject * | owner () const |
Protected Member Functions | |
virtual void | getSelection (SUIT_DataOwnerPtrList &) const |
virtual void | setSelection (const SUIT_DataOwnerPtrList &) |
Protected Member Functions inherited from SUIT_Selector | |
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().
|
virtual |
Destructor. Do nothing.
|
protectedvirtual |
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(), obj, SUIT_Selector::owner(), GLViewer_Object::owner(), and GLViewer_Context::SelectedObject().
|
privateslot |
On selection changed event.
References SUIT_Selector::selectionChanged().
|
protectedvirtual |
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, obj, SUIT_Selector::owner(), GLViewer_Object::owner(), GLViewer_Context::remSelected(), GLViewer_Context::setSelected(), and GLViewer_Viewer2d::updateAll().
|
inlinevirtual |
Implements SUIT_Selector.
References GLViewer_Viewer::Type().
GLViewer_Viewer2d * LightApp_GLSelector::viewer | ( | ) | const |
Gets viewer
References myViewer.
|
private |