Version: 6.3.1
Signals | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes

GLViewer_Selector Class Reference

#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)
void setMinRectSize (const QSize &minSize)
virtual void detect (int x, int y)=0
 Highlights in point (x,y)
virtual void undetectAll ()=0
virtual void select (bool append=false)=0
 Selects highlight objects.
virtual void select (const QRect &, bool append=false)=0
 Selects by rect.
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'.

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

void GLViewer_Selector::lock ( bool  locked)

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

References myLocked.

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.detect ( int  x,
int  y 
) [pure virtual]

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector.undetectAll ( ) [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.

virtual void GLViewer_Selector.unselectAll ( ) [pure virtual]

Implemented in GLViewer_Selector2d.

virtual int GLViewer_Selector.numSelected ( ) const [pure virtual]

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector.setHilightColor ( Quantity_NameOfColor  ) [pure virtual]

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector.setSelectColor ( Quantity_NameOfColor  ) [pure virtual]

Implemented in GLViewer_Selector2d.

virtual void GLViewer_Selector.checkSelection ( int  ,
bool  ,
int   
) [pure virtual]

Should be called by after non-interactive selection.

Implemented in GLViewer_Selector2d.

static int GLViewer_Selector.appendKey ( ) [static]

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

static void GLViewer_Selector.setAppendKey ( int  k) [static]

References test_big_table.k.

void GLViewer_Selector.selSelectionCancel ( ) [signal]
void GLViewer_Selector.selSelectionDone ( bool  append,
SelectionChangeStatus  status 
) [signal]

Field Documentation

bool GLViewer_Selector.myLocked [protected]
int GLViewer_Selector::apppendKey = Qt::ShiftModifier [static, private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS