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);
55 //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
60 void updateGlyphs(bool update);
62 QHButtonGroup* mySelPlane;
63 QtxDblSpinBox* myRotXSpn;
64 QtxDblSpinBox* myRotYSpn;
67 QtxDblSpinBox* myPosSpn;
68 QLineEdit* myBasePlanePos;
69 QCheckBox* myCBSetDef;
70 QCheckBox* myCreateTable;
71 QCheckBox* myCurvesCheck;
73 QHButtonGroup* mySelPlane2;
74 QtxDblSpinBox* myNbSpn;
75 QtxDblSpinBox* myRotXSpn2;
76 QtxDblSpinBox* myRotYSpn2;
79 QtxDblSpinBox* myPosSpn2;
83 QDoubleValidator *mydvalidator;
84 VISU::CutLines_i* myCutLines;
86 VisuGUI_ScalarBarPane* myScalarPane;
88 VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
89 void setOrientation (const VISU::CutPlanes::Orientation orient);
90 void setOrientation2 (const VISU::CutPlanes::Orientation orient);
92 SALOME_Actor* myPreviewActor;
93 SALOME_Actor* myPreviewActorGlyphs;
94 QCheckBox* myPreviewCheck;
95 QCheckBox* myAllCurvesInvertedCheck;
97 VISU::CutLines_i* myPrs;
99 //jfa tmp:SUIT_ViewManager *myMgr;
100 //jfa tmp:SUIT_ViewWindow *myStudyWnd;
102 static bool MYGenerateTable;
103 static bool MYGenerateCurve;
106 #endif // VISUGUI_CUTLINESDLG_H