#include <qhbuttongroup.h>
#include <qvalidator.h>
+class SUIT_ViewManager;
+class SalomeApp_Module;
+
namespace VISU{
class CutLines_i;
}
Q_OBJECT
public:
- VisuGUI_CutLinesDlg(bool theIsCreation);
+ VisuGUI_CutLinesDlg (SalomeApp_Module* theModule);
~VisuGUI_CutLinesDlg();
- void initFromPrsObject(VISU::CutLines_i* thePrs);
- int storeToPrsObject(VISU::CutLines_i* thePrs);
+ void initFromPrsObject (VISU::CutLines_i* thePrs);
+ int storeToPrsObject (VISU::CutLines_i* thePrs);
bool isGenerateTable() { return myCreateTable->isChecked(); }
bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
void reject();
private slots:
- void onPlaneSelect(int theId);
- void onCutSelect(int theId, bool theUpdate = true);
- void setBaseDefault(bool theUpdate = true);
- void setDefault( int all = -1);
+ void onPlaneSelect (int theId);
+ void onCutSelect (int theId, bool theUpdate = true);
+ void setBaseDefault (bool theUpdate = true);
+ void setDefault (int all = -1);
void DrawTable();
- void onValueChanged(int theRow, int theCol);
- void onPreviewCheck(bool thePreview);
- void onRotation(double theValue);
- void onPlanePos(const QString& theValue);
- void onFrameActivated(QAD_StudyFrame* );
+ void onValueChanged (int theRow, int theCol);
+ void onPreviewCheck (bool thePreview);
+ void onAllCurvesInvertedCheck(bool theInvert);
+ void onRotation (double theValue);
+ void onPlanePos (const QString& theValue);
+ //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
private:
void createPlanes();
void deletePlanes();
-
+ void updateGlyphs(bool update);
QHButtonGroup* mySelPlane;
- QAD_SpinBoxDbl* myRotXSpn;
- QAD_SpinBoxDbl* myRotYSpn;
+ QtxDblSpinBox* myRotXSpn;
+ QtxDblSpinBox* myRotYSpn;
QLabel* myRotXLbl;
QLabel* myRotYLbl;
- QAD_SpinBoxDbl* myPosSpn;
+ QtxDblSpinBox* myPosSpn;
QLineEdit* myBasePlanePos;
QCheckBox* myCBSetDef;
QCheckBox* myCreateTable;
QCheckBox* myCurvesCheck;
- QHButtonGroup* mySelPlane2;
- QAD_SpinBoxDbl* myNbSpn;
- QAD_SpinBoxDbl* myRotXSpn2;
- QAD_SpinBoxDbl* myRotYSpn2;
+ QHButtonGroup* mySelPlane2;
+ QtxDblSpinBox* myNbSpn;
+ QtxDblSpinBox* myRotXSpn2;
+ QtxDblSpinBox* myRotYSpn2;
QLabel* myRotXLbl2;
QLabel* myRotYLbl2;
- QAD_SpinBoxDbl* myPosSpn2;
+ QtxDblSpinBox* myPosSpn2;
QTable* myPosTable;
bool hasInit;
VisuGUI_ScalarBarPane* myScalarPane;
- VISU::CutPlanes::Orientation getOrientaion(bool IsBasePlane = true);
- void setOrientation( const VISU::CutPlanes::Orientation orient);
- void setOrientation2( const VISU::CutPlanes::Orientation orient);
-
+ VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
+ void setOrientation (const VISU::CutPlanes::Orientation orient);
+ void setOrientation2 (const VISU::CutPlanes::Orientation orient);
+
SALOME_Actor* myPreviewActor;
+ SALOME_Actor* myPreviewActorGlyphs;
QCheckBox* myPreviewCheck;
-
- VISU::CutLines_i* myPrs;
+ QCheckBox* myAllCurvesInvertedCheck;
- QAD_Study *myStudy;
- QAD_StudyFrame *myStudyFrame;
+ VISU::CutLines_i* myPrs;
- bool myIsCreation;
+ //jfa tmp:SUIT_ViewManager *myMgr;
+ //jfa tmp:SUIT_ViewWindow *myStudyWnd;
static bool MYGenerateTable;
static bool MYGenerateCurve;
};
-#endif // VISUGUI_CUTLINESDLG_H
+#endif // VISUGUI_CUTLINESDLG_H