1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef DIALOGBOX_CLIPPINGPLANEDLG_H
21 #define DIALOGBOX_CLIPPINGPLANEDLG_H
27 class SalomeApp_DoubleSpinBox;
28 class vtkImplicitPlaneWidget;
29 class vtkCallbackCommand;
31 class SVTK_ViewWindow;
34 #include <vtkSmartPointer.h>
35 #include "VisuGUI_ClippingPanel.h"
36 #include <SALOMEDSClient_SObject.hxx>
39 class VisuGUI_ClippingPlaneDlg: public QDialog
43 VisuGUI_ClippingPlaneDlg(VisuGUI* theModule);
44 ~VisuGUI_ClippingPlaneDlg();
46 void setOrigin(double theVal[3]);
47 void setDirection(double theVal[3]);
49 void setPlaneId(int theId);
50 int planeId() const { return myPlaneId; }
51 //void setPlaneObj(_PTR(SObject) thePlaneObj);
52 //_PTR(SObject) getPlaneObj() const { return myPlaneObj; }
55 virtual void accept();
59 void onValueChanged();
62 //void setEmptyPlane(PlaneDef& thePlane) const;
63 vtkImplicitPlaneWidget* createPreviewWidget();
66 static void ProcessEvents(vtkObject* theObject, unsigned long theEvent,
67 void* theClientData, void* theCallData);
70 SVTK_ViewWindow* myViewWindow;
74 SalomeApp_DoubleSpinBox* myXOrigin;
75 SalomeApp_DoubleSpinBox* myYOrigin;
76 SalomeApp_DoubleSpinBox* myZOrigin;
78 SalomeApp_DoubleSpinBox* myXDir;
79 SalomeApp_DoubleSpinBox* myYDir;
80 SalomeApp_DoubleSpinBox* myZDir;
82 QCheckBox* myAutoApply;
84 vtkImplicitPlaneWidget* myPreviewWidget;
85 vtkSmartPointer<vtkCallbackCommand> myCallback;
88 //_PTR(SObject) myPlaneObj;