X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_ClippingDlg.h;h=28872443402c3745bdc63155a2bf030bd13c74a1;hb=6cbd23c4f48e096c74dae22231adf2bc9b0021a0;hp=6a2bb493ffffec99751f753d70a0dd25b7a545dd;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.h b/src/SMESHGUI/SMESHGUI_ClippingDlg.h index 6a2bb493f..288724434 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.h +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.h @@ -45,18 +45,22 @@ class QPushButton; class QTable; class QCheckBox; class QComboBox; -class SALOME_Selection; + +class SalomeApp_SelectionMgr; +class SVTK_Selector; + +class SMESHGUI; class SMESH_Actor; class OrientedPlane; -namespace SMESH{ - +namespace SMESH { + typedef vtkSmartPointer TVTKPlane; typedef std::vector TPlanes; enum Orientation {XY, YZ, ZX}; - + }; @@ -65,30 +69,32 @@ namespace SMESH{ // purpose : //================================================================================= class SMESHGUI_ClippingDlg : public QDialog -{ +{ Q_OBJECT public: - SMESHGUI_ClippingDlg( QWidget* parent = 0, + SMESHGUI_ClippingDlg (SMESHGUI* theModule, const char* name = 0, bool modal = false, - WFlags fl = 0 ); - - float getDistance() {return (float)SpinBoxDistance->GetValue();} - void setDistance( const float theDistance) {SpinBoxDistance->SetValue(theDistance);} - double getRotation1() {return SpinBoxRot1->GetValue();} - double getRotation2() {return SpinBoxRot2->GetValue();} - void setRotation( const double theRot1, const double theRot2 ); - void Sinchronize(); - + WFlags fl = 0); + + float getDistance() { return (float)SpinBoxDistance->GetValue(); } + void setDistance (const float theDistance) { SpinBoxDistance->SetValue(theDistance); } + double getRotation1() { return SpinBoxRot1->GetValue(); } + double getRotation2() { return SpinBoxRot2->GetValue(); } + void setRotation (const double theRot1, const double theRot2); + void Sinchronize(); + ~SMESHGUI_ClippingDlg(); private: - SALOME_Selection* mySelection; - SMESH_Actor* myActor; - SMESH::TPlanes myPlanes; - + SalomeApp_SelectionMgr* mySelectionMgr; + SVTK_Selector* mySelector; + SMESHGUI* mySMESHGUI; + SMESH_Actor* myActor; + SMESH::TPlanes myPlanes; + QComboBox* ComboBoxPlanes; QPushButton* buttonNew; QPushButton* buttonDelete; @@ -107,20 +113,19 @@ private: QPushButton* buttonApply; bool myIsSelectPlane; - + public slots: - - void onSelectPlane(int theIndex); + + void onSelectPlane (int theIndex); void ClickOnNew(); void ClickOnDelete(); - void onSelectOrientation(int theItem); + void onSelectOrientation (int theItem); void SetCurrentPlaneParam(); void onSelectionChanged(); - void OnPreviewToggle(bool theIsToggled); + void OnPreviewToggle (bool theIsToggled); void ClickOnOk(); void ClickOnCancel(); void ClickOnApply(); }; #endif // DIALOGBOX_TRANSPARENCYDLG_H -