Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

GLViewer_Selector Base class for object selection in SUIT-based application

Constructor & Destructor Documentation

GLViewer_Selector::GLViewer_Selector ( GLViewer_Viewer viewer)

Constructor

GLViewer_Selector::~GLViewer_Selector ( )

Destructor

Member Function Documentation

static int GLViewer_Selector::appendKey ( )
inlinestatic

Sets/returns the key for appending selected objects ( SHIFT by default )

virtual void GLViewer_Selector::checkSelection ( int  ,
bool  ,
int   
)
pure virtual

Should be called by after non-interactive selection.

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector::detect ( int  x,
int  y 
)
pure virtual

Implemented in GLViewer_Selector2d.

void GLViewer_Selector::lock ( bool  locked)

Locks / unlocks the selector. If locked, nothing can be selected regadless of the selection mode. [ public ]

References myLocked.

virtual int GLViewer_Selector::numSelected ( ) const
pure virtual

Implemented in GLViewer_Selector2d.

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

Implemented in GLViewer_Selector2d.

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

Implemented in GLViewer_Selector2d.

void GLViewer_Selector::selSelectionCancel ( )
signal
void GLViewer_Selector::selSelectionDone ( bool  append,
SelectionChangeStatus  status 
)
signal
static void GLViewer_Selector::setAppendKey ( int  k)
inlinestatic
virtual void GLViewer_Selector::setHilightColor ( Quantity_NameOfColor  )
pure virtual

Implemented in GLViewer_Selector2d.

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.

virtual void GLViewer_Selector::setSelectColor ( Quantity_NameOfColor  )
pure virtual

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector::undetectAll ( )
pure virtual

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector::unselectAll ( )
pure virtual

Implemented in GLViewer_Selector2d.

Member Data Documentation

int GLViewer_Selector::apppendKey = Qt::ShiftModifier
staticprivate
bool GLViewer_Selector::myLocked
protected
QSize GLViewer_Selector::myMinRectSize
protected
GLViewer_Viewer* GLViewer_Selector::myViewer
protected

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