1 #ifndef OCCVIEWER_CLIPPINGDLG_H
2 #define OCCVIEWER_CLIPPINGDLG_H
8 #include <AIS_Plane.hxx>
17 class OCCViewer_ViewWindow;
20 //=================================================================================
21 // class : OCCViewer_ClippingDlg
23 //=================================================================================
24 class OCCViewer_ClippingDlg : public QDialog
29 OCCViewer_ClippingDlg(OCCViewer_ViewWindow* , QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
30 ~OCCViewer_ClippingDlg();
34 virtual void closeEvent( QCloseEvent* e );
35 virtual void showEvent ( QShowEvent * );
36 virtual void hideEvent ( QHideEvent * );
37 void displayPreview();
42 QGroupBox* GroupPoint;
46 QtxDblSpinBox* SpinBox_X;
47 QtxDblSpinBox* SpinBox_Y;
48 QtxDblSpinBox* SpinBox_Z;
49 QPushButton* resetButton;
51 QGroupBox* GroupDirection;
55 QtxDblSpinBox* SpinBox_Dx;
56 QtxDblSpinBox* SpinBox_Dy;
57 QtxDblSpinBox* SpinBox_Dz;
58 QPushButton* invertButton;
60 QComboBox* DirectionCB;
62 QCheckBox* PreviewChB;
64 QPushButton* buttonApply;
65 QPushButton* buttonClose;
67 OCCViewer_ViewWindow* myView;
69 Handle(AIS_Plane) myPreviewPlane;
79 void onModeChanged( int mode );
80 void onValueChanged();
81 void onPreview( bool on );
84 #endif // OCCVIEWER_CLIPPINGDLG_H