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>
19 class SUIT_ViewManager;
25 class VisuGUI_CutLinesDlg: public QDialog
30 VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
31 ~VisuGUI_CutLinesDlg();
33 void initFromPrsObject (VISU::CutLines_i* thePrs);
34 int storeToPrsObject (VISU::CutLines_i* thePrs);
36 bool isGenerateTable() { return myCreateTable->isChecked(); }
37 bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
44 void onPlaneSelect (int theId);
45 void onCutSelect (int theId, bool theUpdate = true);
46 void setBaseDefault (bool theUpdate = true);
47 void setDefault (int all = -1);
49 void onValueChanged (int theRow, int theCol);
50 void onPreviewCheck (bool thePreview);
51 void onRotation (double theValue);
52 void onPlanePos (const QString& theValue);
53 //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
59 QHButtonGroup* mySelPlane;
60 QtxDblSpinBox* myRotXSpn;
61 QtxDblSpinBox* myRotYSpn;
64 QtxDblSpinBox* myPosSpn;
65 QLineEdit* myBasePlanePos;
66 QCheckBox* myCBSetDef;
67 QCheckBox* myCreateTable;
68 QCheckBox* myCurvesCheck;
70 QHButtonGroup* mySelPlane2;
71 QtxDblSpinBox* myNbSpn;
72 QtxDblSpinBox* myRotXSpn2;
73 QtxDblSpinBox* myRotYSpn2;
76 QtxDblSpinBox* myPosSpn2;
80 QDoubleValidator *mydvalidator;
81 VISU::CutLines_i* myCutLines;
83 VisuGUI_ScalarBarPane* myScalarPane;
85 VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
86 void setOrientation (const VISU::CutPlanes::Orientation orient);
87 void setOrientation2 (const VISU::CutPlanes::Orientation orient);
89 SALOME_Actor* myPreviewActor;
90 QCheckBox* myPreviewCheck;
92 VISU::CutLines_i* myPrs;
94 //jfa tmp:SUIT_ViewManager *myMgr;
95 //jfa tmp:SUIT_ViewWindow *myStudyWnd;
99 static bool MYGenerateTable;
100 static bool MYGenerateCurve;
102 #endif // VISUGUI_CUTLINESDLG_H