1 // Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
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/
19 #ifndef OCCVIEWER_CLIPPINGDLG_H
20 #define OCCVIEWER_CLIPPINGDLG_H
22 #include "OCCViewer.h"
26 #include <AIS_Plane.hxx>
27 #include <V3d_Plane.hxx>
37 class OCCViewer_ViewWindow;
41 \class OCCViewer_ClippingDlg
42 \brief Dialog allowing to assign parameters of clipping plane
44 class OCCViewer_ClippingDlg : public QDialog
49 OCCViewer_ClippingDlg(OCCViewer_ViewWindow* , QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
50 ~OCCViewer_ClippingDlg();
52 void SetAction( QtxAction* theAction ) { myAction = theAction; }
56 virtual void closeEvent( QCloseEvent* e );
57 virtual void showEvent ( QShowEvent * );
58 virtual void hideEvent ( QHideEvent * );
59 void displayPreview();
61 void ReserveClippingPlane();
65 QGroupBox* GroupPoint;
69 QtxDblSpinBox* SpinBox_X;
70 QtxDblSpinBox* SpinBox_Y;
71 QtxDblSpinBox* SpinBox_Z;
72 QPushButton* resetButton;
74 QGroupBox* GroupDirection;
78 QtxDblSpinBox* SpinBox_Dx;
79 QtxDblSpinBox* SpinBox_Dy;
80 QtxDblSpinBox* SpinBox_Dz;
81 QPushButton* invertButton;
83 QComboBox* DirectionCB;
85 QCheckBox* PreviewChB;
87 QPushButton* buttonApply;
88 QPushButton* buttonClose;
90 OCCViewer_ViewWindow* myView;
92 Handle(AIS_Plane) myPreviewPlane;
93 Handle(V3d_Plane) myClippingPlane;
105 void onModeChanged( int mode );
106 void onValueChanged();
107 void onPreview( bool on );
110 #endif // OCCVIEWER_CLIPPINGDLG_H