// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef DIALOGBOX_CLIPPING_H
#define DIALOGBOX_CLIPPING_H
+#include "SMESH_SMESHGUI.hxx"
+
#include <SMESHGUI_SpinBox.h>
#include <vtkSmartPointer.h>
class QTable;
class QCheckBox;
class QComboBox;
-class SALOME_Selection;
+
+class LightApp_SelectionMgr;
+class SVTK_Selector;
+
+class SMESHGUI;
class SMESH_Actor;
class OrientedPlane;
-namespace SMESH{
-
+namespace SMESH {
+
typedef vtkSmartPointer<OrientedPlane> TVTKPlane;
typedef std::vector<TVTKPlane> TPlanes;
enum Orientation {XY, YZ, ZX};
-
+
};
// class : SMESHGUI_ClippingDlg
// purpose :
//=================================================================================
-class SMESHGUI_ClippingDlg : public QDialog
-{
+class SMESHGUI_EXPORT 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;
-
+ LightApp_SelectionMgr* mySelectionMgr;
+ SVTK_Selector* mySelector;
+ SMESHGUI* mySMESHGUI;
+ SMESH_Actor* myActor;
+ SMESH::TPlanes myPlanes;
+
QComboBox* ComboBoxPlanes;
QPushButton* buttonNew;
QPushButton* buttonDelete;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
+ QPushButton* buttonHelp;
bool myIsSelectPlane;
-
+ QString myHelpFileName;
+
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();
+ void ClickOnHelp();
};
#endif // DIALOGBOX_TRANSPARENCYDLG_H
-