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;
20 class SalomeApp_Module;
26 class VisuGUI_CutLinesDlg: public QDialog
31 VisuGUI_CutLinesDlg (SalomeApp_Module* theModule, bool theIsCreation = true, bool theIsModal = true);
32 ~VisuGUI_CutLinesDlg();
34 void initFromPrsObject (VISU::CutLines_i* thePrs);
35 int storeToPrsObject (VISU::CutLines_i* thePrs);
37 bool isGenerateTable() { return myCreateTable->isChecked(); }
38 bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
45 void onPlaneSelect (int theId);
46 void onCutSelect (int theId, bool theUpdate = true);
47 void setBaseDefault (bool theUpdate = true);
48 void setDefault (int all = -1);
50 void onValueChanged (int theRow, int theCol);
51 void onPreviewCheck (bool thePreview);
52 void onRotation (double theValue);
53 void onPlanePos (const QString& theValue);
54 //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
60 QHButtonGroup* mySelPlane;
61 QtxDblSpinBox* myRotXSpn;
62 QtxDblSpinBox* myRotYSpn;
65 QtxDblSpinBox* myPosSpn;
66 QLineEdit* myBasePlanePos;
67 QCheckBox* myCBSetDef;
68 QCheckBox* myCreateTable;
69 QCheckBox* myCurvesCheck;
71 QHButtonGroup* mySelPlane2;
72 QtxDblSpinBox* myNbSpn;
73 QtxDblSpinBox* myRotXSpn2;
74 QtxDblSpinBox* myRotYSpn2;
77 QtxDblSpinBox* myPosSpn2;
81 QDoubleValidator *mydvalidator;
82 VISU::CutLines_i* myCutLines;
84 VisuGUI_ScalarBarPane* myScalarPane;
86 VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
87 void setOrientation (const VISU::CutPlanes::Orientation orient);
88 void setOrientation2 (const VISU::CutPlanes::Orientation orient);
90 SALOME_Actor* myPreviewActor;
91 QCheckBox* myPreviewCheck;
93 VISU::CutLines_i* myPrs;
95 //jfa tmp:SUIT_ViewManager *myMgr;
96 //jfa tmp:SUIT_ViewWindow *myStudyWnd;
100 static bool MYGenerateTable;
101 static bool MYGenerateCurve;
103 #endif // VISUGUI_CUTLINESDLG_H