]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI_CutPlanesDlg.h
Salome HOME
NRI : First integration.
[modules/visu.git] / src / VISUGUI / VisuGUI_CutPlanesDlg.h
1 //  File      : VisuGUI_CutPlanesDlg.h
2 //  Created   : Wed Aug 01 10:23:06 2001
3 //  Author    : Laurent CORNABE & Hubert ROLLAND 
4 //  Project   : SALOME
5 //  Module    : VISUGUI
6 //  Copyright : PRINCIPIA
7 //  $Header$
8
9 #ifndef VISUGUI_CUTPLANESDLG_H
10 #define VISUGUI_CUTPLANESDLG_H
11
12 #include <qdialog.h>
13 #include <qbuttongroup.h>
14 #include <qgroupbox.h>
15 #include <qlabel.h>
16 #include <qpushbutton.h>
17 #include <qradiobutton.h>
18 #include <qspinbox.h>
19 #include "QAD_SpinBoxDbl.h"
20 #include "VISU_PrsObject_i.hh"
21 #include "VisuGUI_ScalarBarDlg.h"
22
23
24 class VisuGUI_CutPlanesDlg : public QDialog
25
26     Q_OBJECT
27
28 public:
29     VisuGUI_CutPlanesDlg();
30     ~VisuGUI_CutPlanesDlg();
31
32     void setBounds( const double x1, const double x2, 
33                     const double y1, const double y2, 
34                     const double z1, const double z2 );
35     void   setNbPlanes( const int nbp );
36     int    getNbPlanes();
37     void   setPlanePos( const VISU::CutPlanes::Orientation orient/*, const double pos1, const double pos2 */);
38     //void   setPlanePosFrac( const int orient, const double frac1, const double frac2 );
39     VISU::CutPlanes::Orientation  getOrientaion();
40     //double getPlanePos1();
41     //double getPlanePos2();
42     void   setRotation( const double r1, const double r2 );
43     double getRotation1();
44     double getRotation2();
45
46     void initFromPrsObject(VISU::CutPlanes_i* thePrs);
47     void storeToPrsObject(VISU::CutPlanes_i* thePrs);
48
49 protected slots:
50
51
52 private:
53     //QLabel* Comment2_1;
54     //QLabel* Comment2_2;
55     QLabel* LabelRot1;
56     QLabel* LabelRot2;
57     QSpinBox* nbPlan;
58     //QAD_SpinBoxDbl* PosPlan1;
59     //QAD_SpinBoxDbl* PosFrac1;
60     //QAD_SpinBoxDbl* PosPlan2;
61     //QAD_SpinBoxDbl* PosFrac2;
62     QAD_SpinBoxDbl* Rot1;
63     QAD_SpinBoxDbl* Rot2;
64     QRadioButton* RBzx;
65     QRadioButton* RByz;
66     QRadioButton* RBxy;
67     //QGroupBox* GBplan1;
68     //QGroupBox* GBplan2;
69
70     double          X1, X2;
71     double          Y1, Y2;
72     double          Z1, Z2;
73     //int             nbPold;
74     
75
76 private slots:
77     void editScalarBar();
78     void orientationChanged( int );
79     //void nbPlanChanged( int );
80     //void fracChanged( double );
81     //void posChanged( double );
82 };
83
84 #endif // VISUGUI_CUTPLANESDLG_H
85
86
87
88
89
90
91