Dialog allowing to assign parameters of clipping plane.  
#include <OCCViewer_ClippingDlg.h>
Constructor 
- Parameters
 - 
  
    | view | - view window  | 
    | parent | - parent widget  | 
  
   
References AutoApplyCheckBox, buttonApply, buttonClose, buttonDelete, buttonDisableAll, buttonNew, buttonOk, CBAbsoluteOrientation, CBRelativeOrientation, ClickOnApply(), ClickOnClose(), ClickOnDelete(), ClickOnDisableAll(), ClickOnHelp(), ClickOnOk(), ComboBoxPlanes, QtxDoubleSpinSlider::font(), OCCViewer_Viewer::getClipPlanes(), SUIT_ViewModel::getViewManager(), GroupAbsoluteDirection, GroupAbsolutePoint, Handle(), initParam(), invertButton, isActivePlane, MenuMode, ModeStackedLayout, myBusy, myInteractor, myIsPlaneCreation, myIsSelectPlane, myIsUpdatingControls, myLocalPlanes, myModel, onAutoApply(), onInvert(), onModeAbsolute(), onModeRelative(), onOrientationAbsoluteChanged(), onOrientationRelativeChanged(), onPlaneClicked(), onPlaneDragged(), onPreview(), onReset(), onSelectPlane(), onValueChanged(), PreviewCheckBox, resetButton, QtxIntSpinSlider::setFont(), QtxDoubleSpinSlider::setFont(), QtxDoubleSpinBox::setPrecision(), QtxDoubleSpinSlider::setPrecision(), QtxIntSpinSlider::setUnit(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, SpinSliderDistance, SpinSliderRotation1, SpinSliderRotation2, synchronize(), TextLabelDistance, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelOrientation, TextLabelRotation1, TextLabelRotation2, TextLabelX, TextLabelY, and TextLabelZ.
 
 
      
        
          | OCCViewer_ClippingDlg::~OCCViewer_ClippingDlg  | 
          ( | 
           | ) | 
           | 
        
      
 
Destructor Destroys the object and frees any allocated resources 
References myLocalPlanes.
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnApply  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnClose  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnDelete  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnDisableAll  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
SLOT on disable all button click: Restore initial state of viewer, erase all clipping planes 
References AutoApplyCheckBox, clipPlanesCount(), erasePreview(), getClipPlane(), isActivePlane, OCCViewer_ClipPlane::IsOn, myLocalPlanes, myModel, OCCViewer_Viewer::setClipPlanes(), and OCCViewer_Viewer::update().
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnHelp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnNew  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::ClickOnOk  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | int OCCViewer_ClippingDlg::clipPlanesCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::closeEvent  | 
          ( | 
          QCloseEvent *  | 
          e | ) | 
           | 
         
       
   | 
  
privatevirtual   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::displayPreview  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Displays preview of clipping plane 
References clipPlaneParams(), clipPlanesCount(), ComboBoxPlanes, getClipPlane(), getMinMaxFromContext(), Handle(), OCCViewer_ClipPlane::IsOn, isValid(), myBusy, myInteractor, myModel, myPreviewPlaneVector, OCCViewer_ClipPlaneInteractor::setEnabled(), OCCViewer_ClipPlaneInteractor::setMinMax(), OCCViewer_ClipPlaneInteractor::setPlanes(), OCCViewer_ClipPlaneInteractor::setRotationCenter(), OCCViewer_Viewer::trihedronSize(), and OCCViewer_Viewer::update().
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::erasePreview  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | OCCViewer_ClippingDlg::Handle  | 
          ( | 
          V3d_View  | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::hideEvent  | 
          ( | 
          QHideEvent *  | 
          e | ) | 
           | 
         
       
   | 
  
privatevirtual   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::initParam  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Initialization of initial values of widgets 
References CBAbsoluteOrientation, CBRelativeOrientation, isActivePlane, QtxDoubleSpinSlider::setValue(), QtxIntSpinSlider::setValue(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, SpinSliderDistance, SpinSliderRotation1, and SpinSliderRotation2.
 
 
  
  
      
        
          | bool OCCViewer_ClippingDlg::isValid  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onApply  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onAutoApply  | 
          ( | 
          bool  | 
          toggled | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onInvert  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onModeAbsolute  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onModeRelative  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onOrientationAbsoluteChanged  | 
          ( | 
          int  | 
          mode | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
SLOT: called on orientation of clipping plane in absolute mode changed 
References OCCViewer_ClipPlane::AbsoluteOrientation, ComboBoxPlanes, getClipPlane(), myBusy, myIsUpdatingControls, SetCurrentPlaneParam(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelX, TextLabelY, TextLabelZ, and updateClipping().
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onOrientationRelativeChanged  | 
          ( | 
          int  | 
          theItem | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onPlaneClicked  | 
          ( | 
          const Handle_AIS_Plane &  | 
          thePlane | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onPlaneDragged  | 
          ( | 
          const Handle_AIS_Plane &  | 
          thePlane | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
SLOT: Called when clip plane is changed by dragging in viewer. 
References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteCustom, OCCViewer_ClipPlane::AbsoluteOrientation, AutoApplyCheckBox, OCCViewer_ClipPlane::DXYZToRelative(), getClipPlane(), Handle(), OCCViewer_ClipPlane::Mode, myIsUpdatingControls, myPreviewPlaneVector, onApply(), OCCViewer_ClipPlane::OrientationType, OCCViewer_ClipPlane::RelativeOrientation, updateControls(), OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onPreview  | 
          ( | 
          bool  | 
          on | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onReset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onSelectPlane  | 
          ( | 
          int  | 
          theIndex | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::onValueChanged  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
privateslot   | 
  
 
 
      
        
          | void OCCViewer_ClippingDlg::SetCurrentPlaneParam  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Set plane parameters from widgets. 
References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteCustom, OCCViewer_ClipPlane::AbsoluteOrientation, CBAbsoluteOrientation, CBRelativeOrientation, currentPlaneMode(), DistanceToXYZ(), isActivePlane, OCCViewer_ClipPlane::IsOn, OCCViewer_ClipPlane::Mode, myModel, OCCViewer_ClipPlane::OrientationType, OCCViewer_ClipPlane::RelativeOrientation, OCCViewer_ClipPlane::RelativeToDXYZ(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, SpinSliderDistance, SpinSliderRotation1, SpinSliderRotation2, OCCViewer_Viewer::trihedronSize(), QtxDoubleSpinSlider::value(), QtxIntSpinSlider::value(), OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::showEvent  | 
          ( | 
          QShowEvent *  | 
          e | ) | 
           | 
         
       
   | 
  
privatevirtual   | 
  
 
 
      
        
          | void OCCViewer_ClippingDlg::synchronize  | 
          ( | 
           | ) | 
           | 
        
      
 
Synchronize dialog's widgets with data 
References OCCViewer_ClipPlane::Absolute, CBAbsoluteOrientation, CBRelativeOrientation, ComboBoxPlanes, currentPlaneMode(), initParam(), invertButton, isActivePlane, myLocalPlanes, onSelectPlane(), OCCViewer_ClipPlane::Relative, resetButton, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, SpinSliderDistance, SpinSliderRotation1, and SpinSliderRotation2.
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::updateClipping  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::updateControls  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Updates state of user controls. 
References OCCViewer_ClipPlane::Absolute, CBAbsoluteOrientation, CBRelativeOrientation, clipPlanesCount(), ComboBoxPlanes, getClipPlane(), initParam(), isActivePlane, OCCViewer_ClipPlane::IsOn, OCCViewer_ClipPlane::Mode, ModeStackedLayout, myModel, onOrientationAbsoluteChanged(), onOrientationRelativeChanged(), OCCViewer_ClipPlane::OrientationToXYZ(), OCCViewer_ClipPlane::OrientationType, OCCViewer_ClipPlane::Relative, OCCViewer_ClipPlane::RelativeOrientation, QtxDoubleSpinSlider::setValue(), QtxIntSpinSlider::setValue(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_X, SpinBox_Y, SpinBox_Z, SpinSliderDistance, SpinSliderRotation1, SpinSliderRotation2, OCCViewer_Viewer::trihedronSize(), OCCViewer_ClipPlane::X, XYZToDistance(), OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.
 
 
  
  
      
        
          | void OCCViewer_ClippingDlg::updatePreview  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
References clipPlaneParams(), clipPlanesCount(), ComboBoxPlanes, getClipPlane(), getMinMaxFromContext(), Handle(), OCCViewer_ClipPlane::IsOn, isValid(), myBusy, myInteractor, myIsPlaneCreation, myModel, myPreviewPlaneVector, PreviewCheckBox, OCCViewer_ClipPlaneInteractor::setMinMax(), OCCViewer_ClipPlaneInteractor::setPlanes(), OCCViewer_ClipPlaneInteractor::setRotationCenter(), OCCViewer_Viewer::trihedronSize(), and OCCViewer_Viewer::update().
 
 
  
  
      
        
          | QCheckBox* OCCViewer_ClippingDlg::AutoApplyCheckBox | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonApply | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonClose | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonDelete | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonDisableAll | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonNew | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::buttonOk | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QComboBox* OCCViewer_ClippingDlg::CBAbsoluteOrientation | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QComboBox* OCCViewer_ClippingDlg::CBRelativeOrientation | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QComboBox* OCCViewer_ClippingDlg::ComboBoxPlanes | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QGroupBox* OCCViewer_ClippingDlg::GroupAbsoluteDirection | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QGroupBox* OCCViewer_ClippingDlg::GroupAbsolutePoint | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QGroupBox* OCCViewer_ClippingDlg::GroupRelative | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::invertButton | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QCheckBox* OCCViewer_ClippingDlg::isActivePlane | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QMenu* OCCViewer_ClippingDlg::MenuMode | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QStackedLayout* OCCViewer_ClippingDlg::ModeStackedLayout | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool OCCViewer_ClippingDlg::myBusy | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool OCCViewer_ClippingDlg::myIsPlaneCreation | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool OCCViewer_ClippingDlg::myIsSelectPlane | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool OCCViewer_ClippingDlg::myIsUpdatingControls | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | std::vector<Handle(AIS_Plane)> OCCViewer_ClippingDlg::myPreviewPlaneVector | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QCheckBox* OCCViewer_ClippingDlg::PreviewCheckBox | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QPushButton* OCCViewer_ClippingDlg::resetButton | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelDistance | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelDx | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelDy | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelDz | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelOrientation | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelRotation1 | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelRotation2 | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelX | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelY | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | QLabel* OCCViewer_ClippingDlg::TextLabelZ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: