]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI_IsoSurfacesDlg.h
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.git] / src / VISUGUI / VisuGUI_IsoSurfacesDlg.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : VisuGUI_IsoSurfacesDlg.h
25 //  Author : Laurent CORNABE & Hubert ROLLAND
26 //  Module : VISU
27 //  $Header$
28
29 #ifndef VISUGUI_ISOSURFACESDLG_H
30 #define VISUGUI_ISOSURFACESDLG_H
31
32 #include "VisuGUI_Prs3dDlg.h"
33
34 #include <qdialog.h>
35 #include <qlabel.h>
36 #include <qgroupbox.h>
37 #include <qspinbox.h>
38 #include <qpushbutton.h>
39 #include <qcheckbox.h>
40 #include <qlineedit.h>
41 #include <qtabwidget.h>
42
43 namespace VISU 
44 {
45   class IsoSurfaces_i;
46 };
47
48 class SalomeApp_Module;
49 class VisuGUI_InputPane;
50
51 class VisuGUI_IsoSurfPane : public QVBox
52 {
53   Q_OBJECT;
54
55  public:
56   VisuGUI_IsoSurfPane (QWidget* parent,
57                        VisuGUI_ScalarBarPane* theScalarPane);
58   ~VisuGUI_IsoSurfPane() {};
59
60   void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
61   int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
62
63   bool check();
64
65  protected slots:
66   void onCBUpdate();
67
68  private:
69   QLineEdit* MinIso;
70   QLineEdit* MaxIso;
71   QSpinBox*  NbrIso;
72   VisuGUI_ScalarBarPane* myScalarPane;
73 };
74
75
76 class VisuGUI_IsoSurfacesDlg : public VisuGUI_ScalarBarBaseDlg
77 {
78   Q_OBJECT;
79
80  public:
81   VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule);
82   ~VisuGUI_IsoSurfacesDlg();
83
84   virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
85                                   bool theInit );
86
87   virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
88
89  protected:
90   virtual QString  GetContextHelpFilePath();
91
92  protected slots:
93   void accept();
94
95  private:
96   QTabWidget*            myTabBox;
97   VisuGUI_IsoSurfPane*   myIsoPane;
98   VisuGUI_InputPane*     myInputPane;
99
100   SALOME::GenericObjPtr<VISU::IsoSurfaces_i> myPrsCopy;
101 };
102
103 #endif // VISUGUI_ISOSURFACESDLG_H