Version: 9.12.0
GLViewer_Selector Class Referenceabstract

#include <GLViewer_Selector.h>

Inheritance diagram for GLViewer_Selector:
Inheritance graph

Signals

void selSelectionCancel ()
 
void selSelectionDone (bool append, SelectionChangeStatus status)
 

Public Member Functions

 GLViewer_Selector (GLViewer_Viewer *)
 
 ~GLViewer_Selector ()
 
void lock (bool)
 Sets lock status (enable/disable interavtive) More...
 
void setMinRectSize (const QSize &minSize)
 
virtual void detect (int x, int y)=0
 Highlights in point (x,y) More...
 
virtual void undetectAll ()=0
 
virtual void select (bool append=false)=0
 Selects highlight objects. More...
 
virtual void select (const QRect &, bool append=false)=0
 Selects by rect. More...
 
virtual void unselectAll ()=0
 
virtual int numSelected () const =0
 
virtual void setHilightColor (Quantity_NameOfColor)=0
 
virtual void setSelectColor (Quantity_NameOfColor)=0
 
virtual void checkSelection (int, bool, int)=0
 Checks selection state and emits 'selSelectionDone' or 'selSelectionCancel'
More...
 

Static Public Member Functions

static int appendKey ()
 
static void setAppendKey (int k)
 

Protected Attributes

GLViewer_ViewermyViewer
 
bool myLocked
 
QSize myMinRectSize
 

Static Private Attributes

static int apppendKey = Qt::ShiftModifier
 

Detailed Description

\Class GLViewer_Selector Base class for object selection in SUIT-based application

Constructor & Destructor Documentation

◆ GLViewer_Selector()

GLViewer_Selector::GLViewer_Selector ( GLViewer_Viewer viewer)

Constructor

◆ ~GLViewer_Selector()

GLViewer_Selector::~GLViewer_Selector ( )

Destructor

Member Function Documentation

◆ 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

Highlights in point (x,y)

Implemented in GLViewer_Selector2d.

◆ 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

Implemented in GLViewer_Selector2d.

◆ select() [1/2]

virtual void GLViewer_Selector::select ( bool  append = false)
pure virtual

Selects highlight objects.

Implemented in GLViewer_Selector2d.

◆ select() [2/2]

virtual void GLViewer_Selector::select ( const QRect &  ,
bool  append = false 
)
pure virtual

Selects by rect.

Implemented in GLViewer_Selector2d.

◆ selSelectionCancel

void GLViewer_Selector::selSelectionCancel ( )
signal

◆ selSelectionDone

void GLViewer_Selector::selSelectionDone ( bool  append,
SelectionChangeStatus  status 
)
signal

◆ setAppendKey()

static void GLViewer_Selector::setAppendKey ( int  k)
inlinestatic

◆ setHilightColor()

virtual void GLViewer_Selector::setHilightColor ( Quantity_NameOfColor  )
pure virtual

Implemented in GLViewer_Selector2d.

◆ 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

Implemented in GLViewer_Selector2d.

◆ undetectAll()

virtual void GLViewer_Selector::undetectAll ( )
pure virtual

Implemented in GLViewer_Selector2d.

◆ unselectAll()

virtual void GLViewer_Selector::unselectAll ( )
pure virtual

Implemented in GLViewer_Selector2d.

Member Data Documentation

◆ apppendKey

int GLViewer_Selector::apppendKey = Qt::ShiftModifier
staticprivate

◆ myLocked

bool GLViewer_Selector::myLocked
protected

◆ myMinRectSize

QSize GLViewer_Selector::myMinRectSize
protected

◆ myViewer

GLViewer_Viewer* GLViewer_Selector::myViewer
protected

The documentation for this class was generated from the following files: