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 <GLViewerAfx.h>
14 #include "GLViewer_Selector.h"
16 #include "GLViewer_Viewer.h"
18 int GLViewer_Selector::apppendKey = Qt::ShiftButton;
23 GLViewer_Selector::GLViewer_Selector( GLViewer_Viewer* viewer )
34 GLViewer_Selector::~GLViewer_Selector()
39 Sets the min size of rectangle to treat it as a rectangle for multiple
40 selection( sensitivity ). If a rectangle size is less than that min size,
41 the right-bottom point of the rectangle will be used for single selection.
42 The default min size is ( 1,1 ). [ public ]
44 void GLViewer_Selector::setMinRectSize( const QSize& minSize )
46 myMinRectSize = minSize;
50 Locks / unlocks the selector. If locked, nothing can be selected
51 regadless of the selection mode. [ public ]
53 void GLViewer_Selector::lock( bool locked )