2 // File : OCCViewer_Selector.cxx
3 // Created : Wed Mar 20 10:57:47 2002
4 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
12 \class OCCViewer_Selector OCCViewer_Selector.h
13 \brief Base class for object selection in Open CASCADE Viewer.
16 #include "OCCViewer_Selector.h"
21 OCCViewer_Selector::OCCViewer_Selector() :
23 myEnableSelection( true ),
24 myEnableMultipleSelection( true )
31 OCCViewer_Selector::~OCCViewer_Selector()
36 Enables/disables selection
38 void OCCViewer_Selector::enableSelection( bool bEnable )
40 myEnableSelection = bEnable;
44 Enables/disables multiple selection i.e
45 selection of several objects at the same time.
46 If enabled, non-multiple selection is enabled as well.
48 void OCCViewer_Selector::enableMultipleSelection( bool bEnable )
50 myEnableMultipleSelection = bEnable;
51 if ( bEnable ) myEnableSelection = bEnable;