1 // File: GLViewer_Selector.cxx
2 // Created: November, 2004
4 // Copyright (C) CEA 2004
6 /****************************************************************************
7 ** Class: GLViewer_Selector
8 ** Descr: Base class for object selection in QAD-based application
10 ** Created: UI team, 22.09.00
11 *****************************************************************************/
13 #include "GLViewer_Selector.h"
15 #include "GLViewer_Viewer.h"
17 int GLViewer_Selector::apppendKey = Qt::ShiftButton;
22 GLViewer_Selector::GLViewer_Selector( GLViewer_Viewer* viewer )
33 GLViewer_Selector::~GLViewer_Selector()
38 Sets the min size of rectangle to treat it as a rectangle for multiple
39 selection( sensitivity ). If a rectangle size is less than that min size,
40 the right-bottom point of the rectangle will be used for single selection.
41 The default min size is ( 1,1 ). [ public ]
43 void GLViewer_Selector::setMinRectSize( const QSize& minSize )
45 myMinRectSize = minSize;
49 Locks / unlocks the selector. If locked, nothing can be selected
50 regadless of the selection mode. [ public ]
52 void GLViewer_Selector::lock( bool locked )