#include <GLViewer_Selector.h>
\Class GLViewer_Selector Base class for object selection in SUIT-based application
◆ GLViewer_Selector()
◆ ~GLViewer_Selector()
GLViewer_Selector::~GLViewer_Selector |
( |
| ) |
|
◆ appendKey()
static int GLViewer_Selector::appendKey |
( |
| ) |
|
|
inlinestatic |
Sets/returns the key for appending selected objects ( SHIFT by default )
◆ checkSelection()
virtual void GLViewer_Selector::checkSelection |
( |
int |
, |
|
|
bool |
, |
|
|
int |
|
|
) |
| |
|
pure virtual |
Checks selection state and emits 'selSelectionDone' or 'selSelectionCancel'
Should be called by after non-interactive selection.
Implemented in GLViewer_Selector2d.
◆ detect()
virtual void GLViewer_Selector::detect |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
pure virtual |
◆ lock()
void GLViewer_Selector::lock |
( |
bool |
locked | ) |
|
Sets lock status (enable/disable interavtive)
Locks / unlocks the selector. If locked, nothing can be selected regadless of the selection mode. [ public ]
References myLocked.
◆ numSelected()
virtual int GLViewer_Selector::numSelected |
( |
| ) |
const |
|
pure virtual |
◆ select() [1/2]
virtual void GLViewer_Selector::select |
( |
bool |
append = false | ) |
|
|
pure virtual |
◆ select() [2/2]
virtual void GLViewer_Selector::select |
( |
const QRect & |
, |
|
|
bool |
append = false |
|
) |
| |
|
pure virtual |
◆ selSelectionCancel
void GLViewer_Selector::selSelectionCancel |
( |
| ) |
|
|
signal |
◆ selSelectionDone
◆ setAppendKey()
static void GLViewer_Selector::setAppendKey |
( |
int |
k | ) |
|
|
inlinestatic |
◆ setHilightColor()
virtual void GLViewer_Selector::setHilightColor |
( |
Quantity_NameOfColor |
| ) |
|
|
pure virtual |
◆ setMinRectSize()
void GLViewer_Selector::setMinRectSize |
( |
const QSize & |
minSize | ) |
|
Sets the min size of rectangle to treat it as a rectangle for multiple selection( sensitivity ). If a rectangle size is less than that min size, the right-bottom point of the rectangle will be used for single selection. The default min size is ( 1,1 ). [ public ]
References myMinRectSize.
◆ setSelectColor()
virtual void GLViewer_Selector::setSelectColor |
( |
Quantity_NameOfColor |
| ) |
|
|
pure virtual |
◆ undetectAll()
virtual void GLViewer_Selector::undetectAll |
( |
| ) |
|
|
pure virtual |
◆ unselectAll()
virtual void GLViewer_Selector::unselectAll |
( |
| ) |
|
|
pure virtual |
◆ apppendKey
int GLViewer_Selector::apppendKey = Qt::ShiftModifier |
|
staticprivate |
◆ myLocked
bool GLViewer_Selector::myLocked |
|
protected |
◆ myMinRectSize
QSize GLViewer_Selector::myMinRectSize |
|
protected |
◆ myViewer
The documentation for this class was generated from the following files: