Version: 6.3.1
Public Member Functions | Private Slots | Private Member Functions | Private Attributes

OCCViewer_ClippingDlg Class Reference

Dialog allowing to assign parameters of clipping plane.

#include <OCCViewer_ClippingDlg.h>

Inheritance diagram for OCCViewer_ClippingDlg:
Inheritance graph

Public Member Functions

 OCCViewer_ClippingDlg (OCCViewer_ViewWindow *, const char *name=0, bool modal=FALSE, Qt::WindowFlags fl=0)
 ~OCCViewer_ClippingDlg ()
void SetAction (QtxAction *theAction)

Private Slots

void ClickOnApply ()
void ClickOnClose ()
void onReset ()
void onInvert ()
void onModeChanged (int mode)
void onValueChanged ()
void onPreview (bool on)
void onViewShow ()
void onViewHide ()

Private Member Functions

virtual void closeEvent (QCloseEvent *e)
virtual void showEvent (QShowEvent *)
virtual void hideEvent (QHideEvent *)
void displayPreview ()
void erasePreview ()
void ReserveClippingPlane ()
bool isValid ()
 Handle (AIS_Plane) myPreviewPlane

Private Attributes

QGroupBoxGroupPoint
QLabelTextLabelX
QLabelTextLabelY
QLabelTextLabelZ
QtxDoubleSpinBoxSpinBox_X
QtxDoubleSpinBoxSpinBox_Y
QtxDoubleSpinBoxSpinBox_Z
QPushButton * resetButton
QGroupBoxGroupDirection
QLabelTextLabelDx
QLabelTextLabelDy
QLabelTextLabelDz
QtxDoubleSpinBoxSpinBox_Dx
QtxDoubleSpinBoxSpinBox_Dy
QtxDoubleSpinBoxSpinBox_Dz
QPushButton * invertButton
QComboBoxDirectionCB
QCheckBox * PreviewChB
QPushButton * buttonApply
QPushButton * buttonClose
OCCViewer_ViewWindowmyView
bool myBusy
QtxActionmyAction

Constructor & Destructor Documentation

OCCViewer_ClippingDlg::OCCViewer_ClippingDlg ( OCCViewer_ViewWindow view,
const char *  name = 0,
bool  modal = FALSE,
Qt::WindowFlags  fl = 0 
)
OCCViewer_ClippingDlg::~OCCViewer_ClippingDlg ( )

Destructor Destroys the object and frees any allocated resources


Member Function Documentation

void OCCViewer_ClippingDlg.SetAction ( QtxAction theAction)

References myAction.

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]
void OCCViewer_ClippingDlg::erasePreview ( ) [private]
void OCCViewer_ClippingDlg::ReserveClippingPlane ( ) [private]

Remember the current clipping plane

bool OCCViewer_ClippingDlg::isValid ( ) [private]
Returns:
true if plane parameters are valid

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]
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]

Field Documentation

QPushButton* OCCViewer_ClippingDlg.resetButton [private]
QPushButton* OCCViewer_ClippingDlg.invertButton [private]
QCheckBox* OCCViewer_ClippingDlg.PreviewChB [private]
QPushButton* OCCViewer_ClippingDlg.buttonApply [private]
QPushButton* OCCViewer_ClippingDlg.buttonClose [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS