Version: 6.3.1

src/SVTK/SVTK_UpdateRateDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SALOME VTKViewer : build VTK viewer into Salome desktop
00024 //  File   : 
00025 //  Author : 
00026 //  Module : SALOME
00027 //  $Header: /home/server/cvs/GUI/GUI_SRC/src/SVTK/SVTK_UpdateRateDlg.h,v 1.5.2.1.8.2.6.1 2011-06-01 13:53:41 vsr Exp $
00028 //
00029 #ifndef SVTK_UPDATERATEDLG_H
00030 #define SVTK_UPDATERATEDLG_H
00031 
00032 #include <ViewerTools_DialogBase.h>
00033 
00034 #include <vtkSmartPointer.h>
00035 
00036 class SVTK_ViewWindow;
00037 class SVTK_RenderWindowInteractor;
00038 
00039 class QtxDoubleSpinBox;
00040 class QtxAction;
00041 
00042 class QGroupBox;
00043 class QLineEdit;
00044 
00045 class vtkCallbackCommand;
00046 class vtkObject;
00047 
00048 
00049 class SVTK_UpdateRateDlg : public ViewerTools_DialogBase
00050 {
00051   Q_OBJECT;
00052 
00053 public:
00054   SVTK_UpdateRateDlg(QtxAction* theAction,
00055                      SVTK_ViewWindow* theParent,
00056                      const char* theName);
00057 
00058   ~SVTK_UpdateRateDlg();
00059 
00060   void Update();
00061 
00062 protected:
00063   SVTK_RenderWindowInteractor* myRWInteractor;
00064   QtxDoubleSpinBox* myDesiredUpdateRateSblSpinBox;
00065   QtxDoubleSpinBox* myStillUpdateRateSblSpinBox;
00066   QGroupBox* myIsEnableUpdateRateGroupBox;
00067 
00068   QLineEdit* myCurrentUpdateRateLineEdit;
00069   QLineEdit* myNumberOfCellsLineEdit;
00070 
00071   QtxAction* myAction;
00072 
00073   //----------------------------------------------------------------------------
00074   // Priority at which events are processed
00075   vtkFloatingPointType myPriority;
00076 
00077   // Used to process events
00078   vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;
00079 
00080   // Description:
00081   // Main process event method
00082   static void ProcessEvents(vtkObject* object, 
00083                             unsigned long event,
00084                             void* clientdata, 
00085                             void* calldata);
00086   
00087 protected slots:
00088   void onClickOk();
00089   void onClickApply();
00090   void onClickClose();
00091 };
00092 
00093 #endif // SVTK_UPDATERATEDLG_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS