Dialog allowing to assign parameters of clipping plane.
#include <OCCViewer_ClippingDlg.h>

| OCCViewer_ClippingDlg::OCCViewer_ClippingDlg | ( | OCCViewer_ViewWindow * | view, |
| const char * | name = 0, |
||
| bool | modal = FALSE, |
||
| Qt::WindowFlags | fl = 0 |
||
| ) |
Constructor
| view | - view window |
| parent | - parent widget |
| name | - dialog name |
| modal | - is this dialog modal |
| fl | - flags |
References buttonApply, buttonClose, ClickOnApply(), ClickOnClose(), DirectionCB, GroupDirection, GroupPoint, invertButton, myBusy, onInvert(), onModeChanged(), onPreview(), onReset(), onValueChanged(), onViewHide(), onViewShow(), PreviewChB, resetButton, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelX, TextLabelY, and TextLabelZ.
| OCCViewer_ClippingDlg::~OCCViewer_ClippingDlg | ( | ) |
Destructor Destroys the object and frees any allocated resources
| void OCCViewer_ClippingDlg::closeEvent | ( | QCloseEvent * | e | ) | [private, virtual] |
Custom handling of close event: erases preview
References erasePreview(), and myAction.
| void OCCViewer_ClippingDlg::showEvent | ( | QShowEvent * | e | ) | [private, virtual] |
Custom handling of show event: displays preview
References onPreview(), and PreviewChB.
| void OCCViewer_ClippingDlg::hideEvent | ( | QHideEvent * | e | ) | [private, virtual] |
Custom handling of hide event: erases preview
References erasePreview().
| void OCCViewer_ClippingDlg::displayPreview | ( | ) | [private] |
Displays preview of clipping plane
References SUIT_ViewWindow.getViewManager(), SUIT_ViewManager.getViewModel(), Handle(), isFound(), isValid(), myBusy, myView, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, STANDARD_TYPE(), and OCCViewer_Viewer.update().
| void OCCViewer_ClippingDlg::erasePreview | ( | ) | [private] |
Erases preview of clipping plane
References SUIT_ViewWindow.getViewManager(), SUIT_ViewManager.getViewModel(), Handle(), myView, and OCCViewer_Viewer.update().
| void OCCViewer_ClippingDlg::ReserveClippingPlane | ( | ) | [private] |
Remember the current clipping plane
| bool OCCViewer_ClippingDlg::isValid | ( | ) | [private] |
References SpinBox_Dx, SpinBox_Dy, and SpinBox_Dz.
| OCCViewer_ClippingDlg.Handle | ( | AIS_Plane | ) | [private] |
| void OCCViewer_ClippingDlg::ClickOnApply | ( | ) | [private, slot] |
SLOT on apply button click: sets cutting plane
References erasePreview(), myView, OCCViewer_ViewWindow.setCuttingPlane(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, and SpinBox_Z.
| void OCCViewer_ClippingDlg::ClickOnClose | ( | ) | [private, slot] |
SLOT on close button click: erases preview and rejects dialog
References erasePreview(), and myAction.
| void OCCViewer_ClippingDlg::onReset | ( | ) | [private, slot] |
SLOT on reset button click: sets default values
References displayPreview(), erasePreview(), myBusy, PreviewChB, SpinBox_X, SpinBox_Y, and SpinBox_Z.
| void OCCViewer_ClippingDlg::onInvert | ( | ) | [private, slot] |
SLOT on invert button click: inverts normal of cutting plane
References displayPreview(), erasePreview(), myBusy, PreviewChB, SpinBox_Dx, SpinBox_Dy, and SpinBox_Dz.
| void OCCViewer_ClippingDlg::onModeChanged | ( | int | mode | ) | [private, slot] |
SLOT: called on mode changed
References displayPreview(), erasePreview(), myBusy, PreviewChB, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelX, TextLabelY, and TextLabelZ.
| void OCCViewer_ClippingDlg::onValueChanged | ( | ) | [private, slot] |
SLOT: called on value changes (co-ordinates of point or normal)
References displayPreview(), erasePreview(), and PreviewChB.
| void OCCViewer_ClippingDlg::onPreview | ( | bool | on | ) | [private, slot] |
SLOT: called on preview check box toggled
References displayPreview(), and erasePreview().
| void OCCViewer_ClippingDlg::onViewShow | ( | ) | [private, slot] |
References myAction.
| void OCCViewer_ClippingDlg::onViewHide | ( | ) | [private, slot] |
QGroupBox* OCCViewer_ClippingDlg.GroupPoint [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelX [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelY [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelZ [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_X [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_Y [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_Z [private] |
QPushButton* OCCViewer_ClippingDlg.resetButton [private] |
QGroupBox* OCCViewer_ClippingDlg.GroupDirection [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelDx [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelDy [private] |
QLabel* OCCViewer_ClippingDlg.TextLabelDz [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_Dx [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_Dy [private] |
QtxDoubleSpinBox* OCCViewer_ClippingDlg.SpinBox_Dz [private] |
QPushButton* OCCViewer_ClippingDlg.invertButton [private] |
QComboBox* OCCViewer_ClippingDlg.DirectionCB [private] |
QCheckBox* OCCViewer_ClippingDlg.PreviewChB [private] |
QPushButton* OCCViewer_ClippingDlg.buttonApply [private] |
QPushButton* OCCViewer_ClippingDlg.buttonClose [private] |
OCCViewer_ViewWindow* OCCViewer_ClippingDlg.myView [private] |
bool OCCViewer_ClippingDlg.myBusy [private] |
QtxAction* OCCViewer_ClippingDlg.myAction [private] |