#include <LightApp_OCCSelector.h>
Public Member Functions | |
LightApp_OCCSelector (OCCViewer_Viewer *, SUIT_SelectionMgr *) | |
virtual | ~LightApp_OCCSelector () |
OCCViewer_Viewer * | 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 &) |
virtual QString | entry (const Handle_AIS_InteractiveObject &) const |
Protected Member Functions inherited from SUIT_Selector | |
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().
|
virtual |
Destructor.
|
protectedvirtual |
Gets entry ob object.
References Handle().
|
protectedvirtual |
Gets selection list.
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList::append(), entry(), OCCViewer_Viewer::getSelectedObjects(), Handle(), OCCViewer_Viewer::isSelectionEnabled(), mySelectedExternals, and myViewer.
|
privatevirtualslot |
On selection cleared.
References SUIT_DataOwnerPtrList::clear(), and mySelectedExternals.
|
privatevirtualslot |
On selection changed.
References SUIT_Selector::selectionChanged().
|
protectedvirtual |
Sets selection list.
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList::append(), SUIT_DataOwnerPtrList::clear(), LightApp_DataOwner::entry(), entry(), Handle(), mySelectedExternals, myViewer, SUIT_Selector::owner(), OCCViewer_Viewer::setObjectsSelected(), and OCCViewer_Viewer::unHighlightAll().
|
inlinevirtual |
Implements SUIT_Selector.
References OCCViewer_Viewer::Type().
OCCViewer_Viewer * LightApp_OCCSelector::viewer | ( | ) | const |
Gets viewer.
References myViewer.
|
protected |
|
private |