Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GLViewer_Selector2d Class Reference

#include <GLViewer_Selector2d.h>

Inheritance diagram for GLViewer_Selector2d:
Inheritance graph

Public Member Functions

 GLViewer_Selector2d (GLViewer_Viewer2d *, GLViewer_Context *)
 
 ~GLViewer_Selector2d ()
 
void setContext (GLViewer_Context *glc)
 Sets context from Viewer2d. More...
 
GLViewer_ContextgetContext () const
 
virtual void setHilightColor (Quantity_NameOfColor)
 
virtual void setSelectColor (Quantity_NameOfColor)
 
virtual void detect (int, int)
 
virtual void undetectAll ()
 
virtual void select (bool append=false)
 
virtual void select (const QRect &, bool append=false)
 
virtual void unselectAll ()
 
virtual int numSelected () const
 
virtual void checkSelection (int, bool, int)
 
- Public Member Functions inherited from GLViewer_Selector
 GLViewer_Selector (GLViewer_Viewer *)
 
 ~GLViewer_Selector ()
 
void lock (bool)
 Sets lock status (enable/disable interavtive) More...
 
void setMinRectSize (const QSize &minSize)
 

Protected Attributes

GLViewer_ContextmyGLContext
 
- Protected Attributes inherited from GLViewer_Selector
GLViewer_ViewermyViewer
 
bool myLocked
 
QSize myMinRectSize
 

Additional Inherited Members

- Signals inherited from GLViewer_Selector
void selSelectionCancel ()
 
void selSelectionDone (bool append, SelectionChangeStatus status)
 
- Static Public Member Functions inherited from GLViewer_Selector
static int appendKey ()
 
static void setAppendKey (int k)
 

Detailed Description

2D select manager for GLViewer

Constructor & Destructor Documentation

GLViewer_Selector2d::GLViewer_Selector2d ( GLViewer_Viewer2d v2d,
GLViewer_Context glc 
)

Constructor

GLViewer_Selector2d::~GLViewer_Selector2d ( )

Destructor

Member Function Documentation

void GLViewer_Selector2d::checkSelection ( int  selBefore,
bool  append,
int  aStatus 
)
virtual

Checks selection state and emits 'selSelectionDone' or 'selSelectionCancel' Should be called by after non-interactive selection.

Implements GLViewer_Selector.

References numSelected(), SCS_Global, SCS_Local, GLViewer_Selector::selSelectionCancel(), GLViewer_Selector::selSelectionDone(), SS_GlobalChanged, and SS_LocalChanged.

void GLViewer_Selector2d::detect ( int  x,
int  y 
)
virtual
GLViewer_Context* GLViewer_Selector2d::getContext ( ) const
inline
int GLViewer_Selector2d::numSelected ( ) const
virtual
Returns
number of selected objects

Implements GLViewer_Selector.

References myGLContext, and GLViewer_Context::NbSelected().

void GLViewer_Selector2d::select ( bool  append = false)
virtual
void GLViewer_Selector2d::select ( const QRect &  selRect,
bool  append = false 
)
virtual
void GLViewer_Selector2d::setContext ( GLViewer_Context glc)
inline
void GLViewer_Selector2d::setHilightColor ( Quantity_NameOfColor  color)
virtual

Changes hilight color of context

Parameters
color- new hilight color

Implements GLViewer_Selector.

References myGLContext, and GLViewer_Context::SetHighlightColor().

void GLViewer_Selector2d::setSelectColor ( Quantity_NameOfColor  color)
virtual

Changes selection color of context

Parameters
color- new selection color

Implements GLViewer_Selector.

References myGLContext, and GLViewer_Context::SetSelectionColor().

void GLViewer_Selector2d::unselectAll ( )
virtual

Member Data Documentation

GLViewer_Context* GLViewer_Selector2d::myGLContext
protected

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