1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_Sweep.h
24 // Author : Oleg UVAROV
27 #ifndef VisuGUI_Sweep_HeaderFile
28 #define VisuGUI_Sweep_HeaderFile
30 #include "SALOME_GenericObjPointer.hh"
32 #include <vtkSmartPointer.h>
47 class QtxDoubleSpinBox;
49 class LightApp_SelectionMgr;
50 class SVTK_ViewWindow;
61 //----------------------------------------------------------------------------
62 class VisuGUI_Sweep : public QWidget
67 VisuGUI_Sweep( VisuGUI* theModule,
68 QMainWindow* theParent,
69 LightApp_SelectionMgr* theSelectionMgr );
71 virtual ~VisuGUI_Sweep();
73 QAction* toggleViewAction();
76 virtual void onSelectionChanged();
78 virtual void onFirst();
80 virtual void onPrevious();
82 virtual void onPlay( bool );
84 virtual void onNext();
86 virtual void onLast();
88 virtual void onStop();
90 virtual void onEnable( bool );
92 virtual void onValueChanged( int );
94 virtual void onDelayChanged( double );
96 virtual void onNumberOfStepsChanged( int );
98 virtual void onModeChanged( int );
100 virtual void onTimeout();
102 virtual void onToggleView( bool );
104 void onModuleDeactivated();
106 void onModuleActivated();
109 QSlider* mySweepSlider;
111 QToolButton* myFirstButton;
112 QToolButton* myPreviousButton;
113 QToolButton* myPlayButton;
114 QToolButton* myNextButton;
115 QToolButton* myLastButton;
117 QCheckBox* myIsCycled;
119 QComboBox* mySweepMode;
120 QtxIntSpinBox* myNumberOfSteps;
122 QComboBox* myIntervals;
123 QtxDoubleSpinBox* myStepDelay;
126 QPixmap myPlayPixmap;
127 QPixmap myPausePixmap;
128 QAction* myToggleViewAction;
131 SVTK_ViewWindow* myViewWindow;
133 vtkSmartPointer< VISU_Actor > myActor;
134 SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d;
138 //----------------------------------------------------------------------------