1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : VisuGUI_CutLinesDlg.h
11 #ifndef VISUGUI_CUTLINESDLG_H
12 #define VISUGUI_CUTLINESDLG_H
14 #include "VisuGUI_CutPlanesDlg.h"
16 #include <qhbuttongroup.h>
17 #include <qvalidator.h>
23 class VisuGUI_CutLinesDlg: public QDialog
28 VisuGUI_CutLinesDlg(bool theIsCreation);
29 ~VisuGUI_CutLinesDlg();
31 void initFromPrsObject(VISU::CutLines_i* thePrs);
32 int storeToPrsObject(VISU::CutLines_i* thePrs);
34 bool isGenerateTable() { return myCreateTable->isChecked(); }
35 bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
42 void onPlaneSelect(int theId);
43 void onCutSelect(int theId, bool theUpdate = true);
44 void setBaseDefault(bool theUpdate = true);
45 void setDefault( int all = -1);
47 void onValueChanged(int theRow, int theCol);
48 void onPreviewCheck(bool thePreview);
49 void onRotation(double theValue);
50 void onPlanePos(const QString& theValue);
51 void onFrameActivated(QAD_StudyFrame* );
58 QHButtonGroup* mySelPlane;
59 QAD_SpinBoxDbl* myRotXSpn;
60 QAD_SpinBoxDbl* myRotYSpn;
63 QAD_SpinBoxDbl* myPosSpn;
64 QLineEdit* myBasePlanePos;
65 QCheckBox* myCBSetDef;
66 QCheckBox* myCreateTable;
67 QCheckBox* myCurvesCheck;
69 QHButtonGroup* mySelPlane2;
70 QAD_SpinBoxDbl* myNbSpn;
71 QAD_SpinBoxDbl* myRotXSpn2;
72 QAD_SpinBoxDbl* myRotYSpn2;
75 QAD_SpinBoxDbl* myPosSpn2;
79 QDoubleValidator *mydvalidator;
80 VISU::CutLines_i* myCutLines;
82 VisuGUI_ScalarBarPane* myScalarPane;
84 VISU::CutPlanes::Orientation getOrientaion(bool IsBasePlane = true);
85 void setOrientation( const VISU::CutPlanes::Orientation orient);
86 void setOrientation2( const VISU::CutPlanes::Orientation orient);
88 SALOME_Actor* myPreviewActor;
89 QCheckBox* myPreviewCheck;
91 VISU::CutLines_i* myPrs;
94 QAD_StudyFrame *myStudyFrame;
98 static bool MYGenerateTable;
99 static bool MYGenerateCurve;
101 #endif // VISUGUI_CUTLINESDLG_H