1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // VISU VISUGUI : GUI of VISU component
21 // File : VisuGUI_Sweep.h
22 // Author : Oleg UVAROV
25 #ifndef VisuGUI_Sweep_HeaderFile
26 #define VisuGUI_Sweep_HeaderFile
28 #include "SALOME_GenericObjPointer.hh"
30 #include <vtkSmartPointer.h>
43 class SalomeApp_IntSpinBox;
44 class SalomeApp_DoubleSpinBox;
46 class LightApp_SelectionMgr;
47 class SVTK_ViewWindow;
58 //----------------------------------------------------------------------------
59 class VisuGUI_Sweep : public QWidget
64 VisuGUI_Sweep( VisuGUI* theModule,
65 QMainWindow* theParent,
66 LightApp_SelectionMgr* theSelectionMgr );
68 virtual ~VisuGUI_Sweep();
70 QAction* toggleViewAction();
73 virtual void onSelectionChanged();
75 virtual void onFirst();
77 virtual void onPrevious();
79 virtual void onPlay( bool );
81 virtual void onNext();
83 virtual void onLast();
85 virtual void onStop();
87 virtual void onEnable( bool );
89 virtual void onValueChanged( int );
91 virtual void onDelayChanged( double );
93 virtual void onNumberOfStepsChanged( int );
95 virtual void onModeChanged( int );
97 virtual void onTimeout();
99 virtual void onToggleView( bool );
101 void onModuleDeactivated();
103 void onModuleActivated();
106 QSlider* mySweepSlider;
108 QToolButton* myFirstButton;
109 QToolButton* myPreviousButton;
110 QToolButton* myPlayButton;
111 QToolButton* myNextButton;
112 QToolButton* myLastButton;
114 QCheckBox* myIsCycled;
116 QComboBox* mySweepMode;
117 SalomeApp_IntSpinBox* myNumberOfSteps;
119 QComboBox* myIntervals;
120 SalomeApp_DoubleSpinBox* myStepDelay;
123 QPixmap myPlayPixmap;
124 QPixmap myPausePixmap;
125 QAction* myToggleViewAction;
128 SVTK_ViewWindow* myViewWindow;
131 SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d;
135 //----------------------------------------------------------------------------