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);
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 onAllCurvesInvertedCheck(bool theInvert);
53 void onRotation (double theValue);
54 void onPlanePos (const QString& theValue);
56 //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
61 void updateGlyphs(bool update);
63 QHButtonGroup* mySelPlane;
64 QtxDblSpinBox* myRotXSpn;
65 QtxDblSpinBox* myRotYSpn;
68 QtxDblSpinBox* myPosSpn;
69 QLineEdit* myBasePlanePos;
70 QCheckBox* myCBSetDef;
71 QCheckBox* myCreateTable;
72 QCheckBox* myCurvesCheck;
74 QHButtonGroup* mySelPlane2;
75 QtxDblSpinBox* myNbSpn;
76 QtxDblSpinBox* myRotXSpn2;
77 QtxDblSpinBox* myRotYSpn2;
80 QtxDblSpinBox* myPosSpn2;
84 QDoubleValidator *mydvalidator;
85 VISU::CutLines_i* myCutLines;
87 VisuGUI_ScalarBarPane* myScalarPane;
89 VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
90 void setOrientation (const VISU::CutPlanes::Orientation orient);
91 void setOrientation2 (const VISU::CutPlanes::Orientation orient);
93 SALOME_Actor* myPreviewActor;
94 SALOME_Actor* myPreviewActorGlyphs;
95 QCheckBox* myPreviewCheck;
96 QCheckBox* myAllCurvesInvertedCheck;
98 VISU::CutLines_i* myPrs;
100 //jfa tmp:SUIT_ViewManager *myMgr;
101 //jfa tmp:SUIT_ViewWindow *myStudyWnd;
103 static bool MYGenerateTable;
104 static bool MYGenerateCurve;
107 #endif // VISUGUI_CUTLINESDLG_H