#include <OCCViewer_ViewWindow.h>

Public Slots | |
| virtual void | onFrontView () |
| Perform "front view" transformation. More... | |
| virtual void | onViewFitAll () |
| Perform 'fit all' operation. More... | |
| virtual void | onBackView () |
| Perform "back view" transformation. More... | |
| virtual void | onClipping (bool on) |
| called if clipping operation is activated / deactivated. More... | |
| virtual void | onTopView () |
| Perform "top view" transformation. More... | |
| virtual void | onBottomView () |
| Perform "bottom view" transformation. More... | |
| virtual void | onLeftView () |
| Perform "left view" transformation. More... | |
| virtual void | onRightView () |
| Perform "right view" transformation. More... | |
| virtual void | onClockWiseView () |
| Rotate view 90 degrees clockwise. More... | |
| virtual void | onAntiClockWiseView () |
| Rotate view 90 degrees conterclockwise. More... | |
| virtual void | onProjectionType (QAction *theAction) |
| Set the given projection mode. More... | |
| virtual void | onStereoType (bool activate) |
| Sets Stereo projection mode. More... | |
| virtual void | onProjectionType () |
| Restore the view. More... | |
| virtual void | onResetView () |
| Perform "reset view" transformation. More... | |
| virtual void | onFitAll () |
| Perform "fit all" transformation. More... | |
| virtual void | onFitSelection () |
| Perform "fit selection" transformation. More... | |
| virtual void | activateZoom () |
| Start zooming operation. More... | |
| virtual void | activateWindowFit () |
| Starts fit operation. More... | |
| virtual void | activateRotation () |
| Start rotation operation. More... | |
| virtual void | activatePanning () |
| Start panning operation. More... | |
| virtual void | activateGlobalPanning () |
| Start global panning operation. More... | |
| virtual void | onSetRotationPoint (bool on) |
| Called if 'change rotation point' operation is activated. More... | |
| virtual void | onCloneView () |
| Create one more window with same content. More... | |
| virtual void | onAxialScale () |
| virtual void | onGraduatedAxes () |
| virtual void | onAmbientToogle () |
| virtual void | onMemorizeView () |
| Store view parameters. More... | |
| virtual void | onRestoreView () |
| Restore view parameters. More... | |
| virtual void | onTrihedronShow (bool) |
| Called when action "show/hide trihedron" is activated. More... | |
| virtual void | onViewCubeShow (bool) |
| Called when action "show/hide view cube" is activated. More... | |
| virtual void | setRestoreFlag () |
| Set restore flag. More... | |
| virtual void | onSwitchInteractionStyle (bool on) |
| Switches "keyboard free" interaction style on/off. More... | |
| virtual void | onSwitchZoomingStyle (bool on) |
| Toogles advanced zooming style (relatively to the cursor position) on/off. More... | |
| virtual void | onSwitchPreselection (bool on) |
| Toggles preselection (highlighting) on/off. More... | |
| virtual void | onSwitchSelection (bool on) |
| Toggles selection on/off. More... | |
| virtual void | onSwitchSelectionStyle (QAction *theAction) |
| Switches style of advanced multiple selection by Poligon/Circle. More... | |
| virtual void | onRayTracing () |
| virtual void | onEnvTexture () |
| virtual void | onLightSource () |
| virtual void | onPanning () |
| virtual void | activateSetRotationGravity () |
| Set the gravity center as a rotation point. More... | |
| virtual void | activateSetRotationSelected (double theX, double theY, double theZ) |
| Set the point selected by the user as a rotation point. More... | |
| virtual void | activateStartPointSelection (TopAbs_ShapeEnum) |
| Start the shape selection process. More... | |
| virtual void | updateGravityCoords () |
| Update gravity center in the "Set Rotation Point" dialog box. More... | |
| virtual void | showEvent (QShowEvent *) |
| Handle show event. More... | |
| virtual void | hideEvent (QHideEvent *) |
| Handle hide event. More... | |
| virtual void | onMaximizedView () |
| virtual void | returnTo3dView () |
Public Slots inherited from SUIT_ViewWindow | |
| virtual void | onDumpView () |
| void | setVisible (bool) |
Signals | |
| void | vpTransformationStarted (OCCViewer_ViewWindow::OperationType type) |
| void | vpTransformationFinished (OCCViewer_ViewWindow::OperationType type) |
| void | viewCloned (SUIT_ViewWindow *) |
| void | Show (QShowEvent *) |
| void | Hide (QHideEvent *) |
| void | maximized (OCCViewer_ViewWindow *, bool) |
| void | returnedTo3d () |
Signals inherited from SUIT_ViewWindow | |
| void | tryClosing (SUIT_ViewWindow *) |
| void | closing (SUIT_ViewWindow *) |
| void | mousePressed (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseReleased (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseMoving (SUIT_ViewWindow *, QMouseEvent *) |
| void | wheeling (SUIT_ViewWindow *, QWheelEvent *) |
| void | keyPressed (SUIT_ViewWindow *, QKeyEvent *) |
| void | keyReleased (SUIT_ViewWindow *, QKeyEvent *) |
| void | contextMenuRequested (QContextMenuEvent *e) |
| void | viewModified (SUIT_ViewWindow *) |
| void | vpStartRotate (int, int, qint64) |
| void | vpRotate (int, int, qint64) |
| void | vpEndRotate (int, int, qint64) |
Public Member Functions | |
| OCCViewer_ViewWindow (SUIT_Desktop *theDesktop, OCCViewer_Viewer *theModel) | |
| Constructor. More... | |
| virtual | ~OCCViewer_ViewWindow () |
| Destructor. More... | |
| virtual OCCViewer_ViewWindow * | getView (const int) const |
| virtual OCCViewer_ViewPort3d * | getViewPort () |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
| Customize event handling. More... | |
| virtual void | performRestoring (const viewAspect &, bool=false) |
| Restore view parameters. More... | |
| virtual void | initLayout () |
| Internal initialization. More... | |
| virtual bool | enableDrawMode (bool) |
| Enable / disable draw rect (rubber band) mode. More... | |
| virtual void | updateEnabledDrawMode () |
| Update state of enable draw mode state. More... | |
| virtual void | setCuttingPlane (bool on, const double x=0, const double y=0, const double z=0, const double dx=0, const double dy=0, const double dz=1) |
| Set parameters of the cutting plane. More... | |
| virtual void | setCuttingPlane (bool on, const gp_Pln thePln) |
| virtual bool | isCuttingPlane () |
| Check if any cutting plane is enabled. More... | |
| virtual QString | getVisualParameters () |
| Get visual parameters of this view window. More... | |
| virtual void | setVisualParameters (const QString ¶meters) |
| Restore visual parameters of the view window. More... | |
| virtual void | initSketchers () |
| virtual OCCViewer_ViewSketcher * | getSketcher (const int) const |
| virtual void | activateSketching (int) |
| virtual int | interactionStyle () const |
| Get current interaction style. More... | |
| virtual void | setInteractionStyle (const int) |
| Set current interaction style. More... | |
| virtual int | zoomingStyle () const |
| Get current zooming style. More... | |
| virtual void | setZoomingStyle (const int) |
| Set current zooming style. More... | |
| virtual bool | isPreselectionEnabled () const |
| Indicates whether preselection is enabled. More... | |
| virtual void | enablePreselection (bool) |
| Enables/disables preselection. More... | |
| virtual bool | isSelectionEnabled () const |
| Indicates whether selection is enabled. More... | |
| virtual void | enableSelection (bool) |
| Enables/disables selection. More... | |
| virtual int | projectionType () const |
| virtual void | setProjectionType (int) |
| virtual SelectionStyle | selectionStyle () const |
| virtual void | setSelectionStyle (SelectionStyle) |
| virtual int | stereoType () const |
| virtual void | setStereoType (const int) |
| virtual int | anaglyphFilter () const |
| virtual void | setAnaglyphFilter (const int) |
| virtual void | setStereographicFocus (const int, const double) |
| virtual int | stereographicFocusType () const |
| virtual double | stereographicFocusValue () const |
| virtual void | setInterocularDistance (const int, const double) |
| virtual int | interocularDistanceType () const |
| virtual double | interocularDistanceValue () const |
| virtual bool | isReverseStereo () const |
| virtual void | setReverseStereo (const bool) |
| virtual bool | isVSync () const |
| virtual void | setVSync (const bool) |
| virtual bool | isQuadBufferSupport () const |
| virtual void | setQuadBufferSupport (const bool) |
| virtual bool | isAutomaticZoom () const |
| virtual void | setAutomaticZoom (const bool) |
| virtual void | enableAutoRotation (const bool) |
| void | setTransformEnabled (const OperationType, const bool) |
| bool | transformEnabled (const OperationType) const |
| void | set2dMode (Mode2dType) |
| Mode2dType | get2dMode () const |
| void | setMaximized (bool, bool=true) |
| bool | isMaximized () const |
| void | setReturnedTo3dView (bool=true) |
| void | setSketcherStyle (bool enable) |
| bool | isSketcherStyle () const |
| virtual QColor | backgroundColor () const |
| virtual void | setBackgroundColor (const QColor &) |
| virtual void | showStaticTrihedron (bool) |
| virtual Qtx::BackgroundData | background () const |
| virtual void | setBackground (const Qtx::BackgroundData &) |
| virtual const viewAspectList & | getViewAspects () |
| virtual void | appendViewAspect (const viewAspect &) |
| virtual void | updateViewAspects (const viewAspectList &) |
| virtual void | clearViewAspects () |
| virtual SUIT_CameraProperties | cameraProperties () |
| bool | isActionVisible (ActionId theId) const |
| void | setActionVisible (ActionId theId, bool isVisible) |
| void | resetState () |
| Reset the viewport to its initial state ( no transformations in process etc. ) More... | |
| virtual QImage | dumpView () |
| Dump view window contents to the pixmap. More... | |
| virtual bool | dumpViewToFormat (const QImage &, const QString &fileName, const QString &format) |
Public Member Functions inherited from SUIT_ViewWindow | |
| SUIT_ViewWindow (SUIT_Desktop *) | |
| virtual | ~SUIT_ViewWindow () |
| virtual void | setViewManager (SUIT_ViewManager *) |
| SUIT_ViewManager * | getViewManager () const |
| bool | event (QEvent *) |
| bool | dumpViewToFormat (const QString &fileName, const QString &format) |
| bool | onAccelAction (int) |
| bool | closable () const |
| bool | setClosable (const bool) |
| void | setDestructiveClose (const bool) |
| int | getId () const |
| QtxActionToolMgr * | toolMgr () const |
| virtual void | setDropDownButtons (bool) |
Set buttons mode to drop-down (on = true) or ligned (on = false) More... | |
| bool | dropDownButtons () const |
| Get current buttons mode. More... | |
| virtual bool | isAutoRotationEnabled () const |
Protected Slots | |
| void | synchronize (SUIT_ViewWindow *) |
Protected Slots inherited from SUIT_ViewWindow | |
| void | updateSyncViews () |
| void | onSynchronizeView (bool) |
| virtual void | synchronize (SUIT_ViewWindow *) |
| void | emitViewModified () |
Protected Member Functions | |
| virtual QString | filter () const |
| bool | isOpenGlStereoSupport () const |
| bool | transformRequested () const |
| bool | setTransformRequested (OperationType) |
| Start delayed viewer operation. More... | |
| bool | transformInProcess () const |
| void | setTransformInProcess (bool) |
| void | vpMousePressEvent (QMouseEvent *theEvent) |
| Handle mouse press event. More... | |
| void | vpMouseReleaseEvent (QMouseEvent *theEvent) |
| Handle mouse release event. More... | |
| void | vpMouseMoveEvent (QMouseEvent *theEvent) |
| Handle mouse move event. More... | |
| void | drawRect () |
| Draw rubber band rectangle. More... | |
| void | endDrawRect () |
| Clear rubber band rectangle on the end on the dragging operation. More... | |
| void | createActions () |
| Create actions. More... | |
| void | createToolBar () |
| Create toolbar. More... | |
| virtual OperationType | getButtonState (QMouseEvent *theEvent, int theInteractionStyle) |
| Detect viewer operation according the the mouse button pressed and key modifiers used. More... | |
| viewAspect | getViewParams () const |
| Get the visual parameters of the view window. More... | |
| bool | computeGravityCenter (double &theX, double &theY, double &theZ) |
| Compute the gravity center. More... | |
| void | projAndPanToGravity (V3d_TypeOfOrientation CamOri) |
| virtual void | onSketchingStarted () |
| virtual void | onSketchingFinished () |
| virtual OCCViewer_ViewSketcher * | createSketcher (int) |
| void | saveCursor () |
Protected Member Functions inherited from SUIT_ViewWindow | |
| void | closeEvent (QCloseEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| virtual bool | action (const int) |
| virtual QAction * | synchronizeAction () |
Protected Attributes | |
| OCCViewer_ViewSketcher * | mypSketcher |
| QList< OCCViewer_ViewSketcher * > | mySketchers |
| int | myCurSketch |
| OperationType | myOperation |
| OCCViewer_Viewer * | myModel |
| OCCViewer_ViewPort3d * | myViewPort |
| OCCViewer_CubeAxesDlg * | myCubeAxesDlg |
| RotationPointType | myCurrPointType |
| RotationPointType | myPrevPointType |
| gp_Pnt | mySelectedPoint |
| bool | myRotationPointSelection |
| int | myRestoreFlag |
| int | myStartX |
| int | myStartY |
| qint64 | myStartTime |
| int | myCurrX |
| int | myCurrY |
| qint64 | myCurrTime |
| bool | myEventStarted |
| bool | myCursorIsHand |
| bool | myDrawRect |
| bool | myEnableDrawMode |
| bool | myDrawRectEnabled |
| bool | myPaintersRedrawing |
| bool | IsSketcherStyle |
| bool | myIsKeyFree |
| bool | myAutomaticZoom |
| QCursor | myCursor |
| double | myCurScale |
Protected Attributes inherited from SUIT_ViewWindow | |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
Private Types | |
| typedef QMap< OperationType, bool > | MapOfTransformStatus |
Private Member Functions | |
| Handle (V3d_Plane) myReserveClipPlane | |
Private Attributes | |
| OCCViewer_AxialScaleDlg * | myScalingDlg |
| OCCViewer_SetRotationPointDlg * | mySetRotationPointDlg |
| QtxAction * | mySetRotationPointAction |
| QtxRectRubberBand * | myRectBand |
| selection rectangle rubber band More... | |
| OCCViewer_AutoRotate * | myAutoRotate |
| bool | mySelectionEnabled |
| bool | myPreselectionEnabled |
| int | myInteractionStyle |
| MapOfTransformStatus | myStatus |
| Mode2dType | my2dMode |
| viewAspectList | myViewAspects |
| bool | myPanningByBtn |
Additional Inherited Members | |
Static Protected Member Functions inherited from SUIT_ViewWindow | |
| static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) |
|
private |
| OCCViewer_ViewWindow::OCCViewer_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| OCCViewer_Viewer * | theModel | ||
| ) |
Constructor.
| theDesktop | main window of application |
| theModel | OCC 3D viewer |
References clearViewAspects(), IsSketcherStyle, my2dMode, myAutomaticZoom, myCurSketch, myCursorIsHand, myDrawRect, myDrawRectEnabled, myEnableDrawMode, myInteractionStyle, myIsKeyFree, myModel, myPanningByBtn, myPreselectionEnabled, mypSketcher, myRectBand, myRestoreFlag, myScalingDlg, mySelectionEnabled, mySetRotationPointDlg, No2dMode, SUIT_ViewModel::STANDARD, and updateEnabledDrawMode().
|
virtual |
Destructor.
References endDrawRect(), myAutoRotate, and mySketchers.
|
virtualslot |
Start global panning operation.
Sets the corresponding cursor for the widget.
References OCCViewer_ViewPort3d::fitAll(), Handle(), imageCrossCursor, myCurScale, myViewPort, PANGLOBAL, saveCursor(), and setTransformRequested().
|
virtualslot |
Start panning operation.
Sets the corresponding cursor for the widget.
References myCursorIsHand, myOperation, myViewPort, PANVIEW, saveCursor(), setTransformRequested(), and transformRequested().
|
virtualslot |
Start rotation operation.
Sets the corresponding cursor for the widget.
References imageRotateCursor, myCursorIsHand, myOperation, myViewPort, ROTATE, saveCursor(), setTransformRequested(), and transformRequested().
|
virtualslot |
Set the gravity center as a rotation point.
References BBCENTER, OCCViewer_Utilities::computeVisibleBBCenter(), Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySetRotationPointDlg, myViewPort, NOVIEWOP, and OCCViewer_SetRotationPointDlg::setCoords().
|
virtualslot |
Set the point selected by the user as a rotation point.
| theX | X coordinate of the rotation point |
| theY | Y coordinate of the rotation point |
| theZ | Z coordinate of the rotation point |
References Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, myViewPort, NOVIEWOP, and SELECTED.
|
virtual |
Handles requests for sketching in the active view. [ virtual public ]
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewSketcher::activate(), OCCViewer_ViewSketcher::deactivate(), getSketcher(), getViewPort(), OCCViewer_ViewPort::isSketchingEnabled(), mypSketcher, NoSketching, onSketchingFinished(), and onSketchingStarted().
|
virtualslot |
Start the shape selection process.
References Handle(), myCurrPointType, myCursorIsHand, myModel, myPrevPointType, myRotationPointSelection, myViewPort, saveCursor(), and SELECTED.
|
virtualslot |
Starts fit operation.
Sets the corresponding cursor for the widget.
References myCursorIsHand, myOperation, myViewPort, saveCursor(), setTransformRequested(), transformRequested(), and WINDOWFIT.
|
virtualslot |
Start zooming operation.
Sets the corresponding cursor for the widget.
References imageZoomCursor, myCursorIsHand, myOperation, myViewPort, saveCursor(), setTransformRequested(), transformRequested(), and ZOOMVIEW.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References GreenMagenta, Handle(), myViewPort, RedCyan, and YellowBlue.
|
virtual |
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d::background(), and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d::backgroundColor(), and myViewPort.
|
virtual |
Get camera properties for the OCC view window.
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References SUIT_CameraProperties::Dim2D, SUIT_CameraProperties::Dim3D, get2dMode(), OCCViewer_ViewPort3d::getAxialScale(), getViewPort(), Handle(), No2dMode, SUIT_CameraProperties::PrjOrthogonal, SUIT_CameraProperties::PrjPerspective, SUIT_CameraProperties::setAxialScale(), SUIT_CameraProperties::setDimension(), SUIT_CameraProperties::setFocalPoint(), SUIT_CameraProperties::setMappingScale(), SUIT_CameraProperties::setPosition(), SUIT_CameraProperties::setProjection(), SUIT_CameraProperties::setViewAngle(), SUIT_CameraProperties::setViewSide(), and SUIT_CameraProperties::setViewUp().
|
virtual |
Clears view aspects
References myViewAspects.
|
protected |
Compute the gravity center.
| theX | used to return X coordinate of the gravity center |
| theY | used to return Y coordinate of the gravity center |
| theZ | used to return Z coordinate of the gravity center |
true if the gravity center is computed References Handle(), and myViewPort.
|
protected |
Create actions.
References SUIT_ViewWindow::action(), activateGlobalPanning(), activateRotation(), activateWindowFit(), activateZoom(), AmbientId, AntiClockWiseId, AxialScaleId, BackId, QtxResourceMgr::booleanValue(), BottomId, ChangeRotationPointId, CircleSelectionStyleId, ClippingId, ClockWiseId, CloneId, DumpId, EnvTextureId, FitAllId, FitRectId, FitSelectionId, FrontId, GlobalPanId, GraduatedAxesId, LeftId, LightSourceId, QtxResourceMgr::loadPixmap(), MaximizedId, MemId, my2dMode, myModel, mySetRotationPointAction, No2dMode, onAmbientToogle(), onAntiClockWiseView(), onAxialScale(), onBackView(), onBottomView(), onClipping(), onClockWiseView(), onCloneView(), SUIT_ViewWindow::onDumpView(), onEnvTexture(), onFitAll(), onFitSelection(), onFrontView(), onGraduatedAxes(), onLeftView(), onLightSource(), onMaximizedView(), onMemorizeView(), onPanning(), onProjectionType(), onRayTracing(), onResetView(), onRestoreView(), onRightView(), onSetRotationPoint(), onStereoType(), onSwitchInteractionStyle(), onSwitchPreselection(), onSwitchSelection(), onSwitchSelectionStyle(), onSwitchZoomingStyle(), onTopView(), onTrihedronShow(), onViewCubeShow(), OrthographicId, PanId, PerspectiveId, PolygonSelectionStyleId, RayTracingId, RectangleSelectionStyleId, QtxActionMgr::registerAction(), ResetId, SUIT_Session::resourceMgr(), RestoreId, returnTo3dView(), ReturnTo3dViewId, RightId, RotationId, SUIT_Session::session(), StereoId, SwitchInteractionStyleId, SwitchPreselectionId, SwitchSelectionId, SwitchZoomingStyleId, SUIT_ViewWindow::synchronizeAction(), SynchronizeId, SUIT_ViewWindow::toolMgr(), TopId, OCCViewer_Viewer::trihedronActivated(), TrihedronShowId, OCCViewer_Viewer::viewCubeActivated(), ViewCubeShowId, and ZoomId.
|
protectedvirtual |
|
protected |
Create toolbar.
References SUIT_ViewWindow::action(), AmbientId, AntiClockWiseId, QtxActionToolMgr::append(), AxialScaleId, BackId, BottomId, ChangeRotationPointId, CircleSelectionStyleId, ClippingId, ClockWiseId, CloneId, QtxActionToolMgr::createToolBar(), DumpId, EnvTextureId, FitAllId, FitRectId, FitSelectionId, FrontId, GlobalPanId, GraduatedAxesId, QtxActionSet::insertAction(), LeftId, LightSourceId, MaximizedId, MemId, my2dMode, myModel, No2dMode, OrthographicId, PanId, PerspectiveId, PolygonSelectionStyleId, RayTracingId, RectangleSelectionStyleId, ResetId, RestoreId, ReturnTo3dViewId, RightId, RotationId, StereoId, SwitchInteractionStyleId, SwitchPreselectionId, SwitchSelectionId, SwitchZoomingStyleId, SynchronizeId, SUIT_ViewWindow::toolMgr(), TopId, OCCViewer_Viewer::trihedronActivated(), TrihedronShowId, OCCViewer_Viewer::viewCubeActivated(), ViewCubeShowId, and ZoomId.
|
protected |
Draw rubber band rectangle.
References QtxRectRubberBand::initGeometry(), SUIT_Tools::makeRect(), myCurrX, myCurrY, myRectBand, myStartX, myStartY, and myViewPort.
|
virtual |
Dump view window contents to the pixmap.
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OpenGLUtils_FrameBuffer::bind(), OCCViewer::color(), Handle(), OpenGLUtils_FrameBuffer::init(), myViewPort, and OpenGLUtils_FrameBuffer::unbind().
|
virtual |
Saves image to file according to the format
| image | - image |
| fileName | - name of file |
| format | - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References myViewPort.
|
virtual |
Reimplemented from SUIT_ViewWindow.
References SUIT_ViewWindow::enableAutoRotation(), and myAutoRotate.
|
virtual |
Enable / disable draw rect (rubber band) mode.
Reimplemented in OCCViewer_ViewFrame.
References myDrawRectEnabled, and updateEnabledDrawMode().
|
virtual |
Enables/disables preselection.
| theIsToEnable | if true - preselection will be enabled |
Reimplemented in OCCViewer_ViewFrame.
References onSwitchPreselection().
|
virtual |
Enables/disables selection.
| theIsToEnable | if true - selection will be enabled |
Reimplemented in OCCViewer_ViewFrame.
References onSwitchSelection().
|
protected |
Clear rubber band rectangle on the end on the dragging operation.
References QtxRectRubberBand::clearGeometry(), and myRectBand.
Customize event handling.
| watched | event receiver object |
| e | event |
true if the event processing should be stopped Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow::contextMenuRequested(), ViewerTools_ScreenScaling::getDpiAwareEvent(), Handle(), isPreselectionEnabled(), SUIT_ViewWindow::keyPressed(), SUIT_ViewWindow::keyReleased(), SUIT_ViewWindow::mouseDoubleClicked(), myModel, myViewPort, OCCViewer_ViewPort3d::startZoomAtPoint(), vpMouseMoveEvent(), vpMousePressEvent(), vpMouseReleaseEvent(), vpTransformationFinished(), vpTransformationStarted(), OCCViewer_ViewPort3d::zoom(), and ZOOMVIEW.
|
protectedvirtual |
Reimplemented from SUIT_ViewWindow.
|
inline |
|
protectedvirtual |
Detect viewer operation according the the mouse button pressed and key modifiers used.
| theEvent | mouse event |
References my2dMode, SUIT_ViewModel::myButtonMap, SUIT_ViewModel::myStateMap, No2dMode, NOVIEWOP, SUIT_ViewModel::PAN, PANVIEW, ROTATE, SUIT_ViewModel::ROTATE, SUIT_ViewModel::ZOOM, and ZOOMVIEW.
|
virtual |
References mySketchers, and OCCViewer_ViewSketcher::type().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References get2dMode().
|
virtual |
References myViewAspects.
|
protected |
Get the visual parameters of the view window.
References viewAspect::atX, viewAspect::atY, viewAspect::atZ, OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, OCCViewer_CubeAxesDlg::GetData(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_Viewer::isTrihedronVisible(), OCCViewer_Viewer::isViewCubeVisible(), viewAspect::isVisible, myCubeAxesDlg, myModel, myViewPort, OCCViewer_AxisWidget::AxisData::Name, viewAspect::name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, viewAspect::projX, viewAspect::projY, viewAspect::projZ, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, viewAspect::size, OCCViewer_AxisWidget::AxisData::TickmarkLength, OCCViewer_Viewer::trihedronSize(), viewAspect::twist, and viewAspect::vcIsVisible.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort.
|
virtual |
Get visual parameters of this view window.
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteCustom, OCCViewer_ClipPlane::AbsoluteOrientation, aTexture, viewAspect::atX, viewAspect::atY, viewAspect::atZ, background(), Qtx::backgroundToString(), viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, OCCViewer_Viewer::getClipPlanes(), getViewParams(), getViewPort(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_ClipPlane::IsOn, viewAspect::isVisible, OCCViewer_ClipPlane::Mode, myModel, OCCViewer_ClipPlane::OrientationType, viewAspect::projX, viewAspect::projY, viewAspect::projZ, OCCViewer_ClipPlane::Relative, OCCViewer_ClipPlane::RelativeOrientation, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, viewAspect::size, viewAspect::twist, OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.
|
private |
|
signal |
|
virtualslot |
|
virtual |
Internal initialization.
Reimplemented in OCCViewer_ViewFrame.
References QtxActionMgr::action(), BBCENTER, createActions(), createToolBar(), SUIT_ViewWindow::emitViewModified(), GraduatedAxesId, OCCViewer_CubeAxesDlg::initialize(), my2dMode, myCubeAxesDlg, myCurrPointType, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, myViewPort, NOVIEWOP, onFrontView(), onLeftView(), onTopView(), setTransformInProcess(), setTransformRequested(), SUIT_ViewWindow::toolMgr(), XYPlane, XZPlane, and YZPlane.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References createSketcher(), mySketchers, Polygon, and Rect.
|
virtual |
Get current interaction style.
Reimplemented in OCCViewer_ViewFrame.
References myInteractionStyle.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, and Relative.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| bool OCCViewer_ViewWindow::isActionVisible | ( | ActionId | theId | ) | const |
References QtxActionMgr::action(), and SUIT_ViewWindow::toolMgr().
|
virtual |
References myAutomaticZoom.
|
virtual |
Check if any cutting plane is enabled.
true if at least one cutting plane is enabled Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| bool OCCViewer_ViewWindow::isMaximized | ( | ) | const |
References QtxActionMgr::action(), MaximizedId, and SUIT_ViewWindow::toolMgr().
|
protected |
|
virtual |
Indicates whether preselection is enabled.
Reimplemented in OCCViewer_ViewFrame.
References myPreselectionEnabled.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
|
virtual |
Indicates whether selection is enabled.
Reimplemented in OCCViewer_ViewFrame.
References mySelectionEnabled.
| bool OCCViewer_ViewWindow::isSketcherStyle | ( | ) | const |
References IsSketcherStyle.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
|
signal |
|
virtualslot |
References Handle(), and myViewPort.
|
virtualslot |
Rotate view 90 degrees conterclockwise.
References ANTICLOCKWISEVIEW, myViewPort, OCCViewer_ViewPort3d::rotateXY(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Creates one more window with same content
References myModel, myScalingDlg, and OCCViewer_AxialScaleDlg::Update().
|
virtualslot |
Perform "back view" transformation.
References BACKVIEW, Handle(), myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Perform "bottom view" transformation.
References BOTTOMVIEW, Handle(), myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
called if clipping operation is activated / deactivated.
Enables/disables clipping plane displaying.
\parma on action state
References QtxActionMgr::action(), ClippingId, OCCViewer_Viewer::getClippingDlg(), SUIT_ViewWindow::getViewManager(), SUIT_ViewManager::getViews(), myModel, OCCViewer_Viewer::setClippingDlg(), and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Rotate view 90 degrees clockwise.
References CLOCKWISEVIEW, myViewPort, OCCViewer_ViewPort3d::rotateXY(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Create one more window with same content.
References SUIT_ViewManager::createViewWindow(), getView(), OCCViewer_ViewFrame::MAIN_VIEW, SUIT_ViewWindow::myManager, synchronize(), and viewCloned().
|
virtualslot |
References OCCViewer_EnvTextureDlg::getName(), and OCCViewer_Utilities::isDialogOpened().
|
virtualslot |
Perform "fit all" transformation.
References OCCViewer_ViewPort3d::fitAll(), OCCViewer_Fitter::fitAll(), FITALLVIEW, OCCViewer_Viewer::fitter(), myModel, myViewPort, vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Perform "fit selection" transformation.
References FITSELECTION, getView(), getViewPort(), myModel, vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Perform "front view" transformation.
References FRONTVIEW, Handle(), myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Shows Graduated Axes dialog
References myCubeAxesDlg, and OCCViewer_CubeAxesDlg::Update().
|
virtualslot |
Perform "left view" transformation.
References Handle(), LEFTVIEW, myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
References OCCViewer_LightSourceDlg::getName(), OCCViewer_Utilities::isDialogOpened(), and myModel.
|
virtualslot |
References isMaximized(), and setMaximized().
|
virtualslot |
Store view parameters.
References appendViewAspect(), and getViewParams().
|
virtualslot |
|
virtualslot |
Restore the view.
Restore the projection mode based on tool-buttons states.
References SUIT_ViewWindow::action(), Orthographic, OrthographicId, Perspective, PerspectiveId, PROJECTION, setProjectionType(), Stereo, StereoId, SUIT_ViewWindow::toolMgr(), vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Set the given projection mode.
Set the given projection mode: Orthographic or Perspective.
References SUIT_ViewWindow::action(), Handle(), myModel, myViewPort, onViewFitAll(), Orthographic, OrthographicId, Perspective, PerspectiveId, OCCViewer_Viewer::setProjectionType(), StereoId, and SUIT_ViewWindow::toolMgr().
|
virtualslot |
References OCCViewer_RayTracingDlg::getName(), and OCCViewer_Utilities::isDialogOpened().
|
virtualslot |
Perform "reset view" transformation.
Sets default orientation of the viewport camera.
References OCCViewer_ViewPort3d::fitAll(), myViewPort, onProjectionType(), RESETVIEW, vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Restore view parameters.
References OCCViewer_CreateRestoreViewDlg::currentItem(), myRestoreFlag, OCCViewer_CreateRestoreViewDlg::parameters(), performRestoring(), setRestoreFlag(), and updateViewAspects().
|
virtualslot |
Perform "right view" transformation.
References Handle(), myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), RIGHTVIEW, vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Called if 'change rotation point' operation is activated.
| on | action state |
References BBCENTER, OCCViewer_Utilities::computeVisibleBBCenter(), myCurrPointType, mySetRotationPointAction, mySetRotationPointDlg, myViewPort, OCCViewer_SetRotationPointDlg::SetAction(), and OCCViewer_SetRotationPointDlg::setCoords().
|
protectedvirtual |
Selection by rectangle or polygon. [ virtual protected ]
References OCCViewer_ViewSketcher::Accept, OCCViewer_ViewSketcher::data(), OCCViewer_ViewManager::getOCCViewer(), ViewerTools_ScreenScaling::getPR(), getView(), SUIT_ViewWindow::getViewManager(), getViewPort(), Handle(), OCCViewer_ViewSketcher::isHasShift(), myModel, mypSketcher, OCCViewer_Viewer::performSelectionChanged(), Polygon, Rect, OCCViewer_ViewSketcher::result(), and OCCViewer_ViewSketcher::type().
|
protectedvirtual |
Unhilights detected entities. [ virtual protected ]
|
virtualslot |
Sets Stereo projection mode.
Sets Stereo projection mode.
References SUIT_ViewWindow::action(), QtxActionMgr::action(), QtxResourceMgr::booleanValue(), Handle(), QtxResourceMgr::integerValue(), isOpenGlStereoSupport(), isQuadBufferSupport(), myModel, myViewPort, onViewFitAll(), Orthographic, OrthographicId, Perspective, PerspectiveId, OCCViewer_Viewer::projectionType(), QuadBuffer, SUIT_Session::resourceMgr(), SUIT_Session::session(), setAnaglyphFilter(), setQuadBufferSupport(), setReverseStereo(), setStereoType(), setVSync(), StereoId, stereoType(), SUIT_ViewWindow::toolMgr(), and SUIT_MessageBox::warning().
|
virtualslot |
Switches "keyboard free" interaction style on/off.
References QtxActionMgr::action(), SUIT_ViewModel::KEY_FREE, myInteractionStyle, SUIT_ViewModel::STANDARD, SwitchInteractionStyleId, and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Toggles preselection (highlighting) on/off.
References QtxActionMgr::action(), isPreselectionEnabled(), OCCViewer_Viewer::isSelectionEnabled(), myModel, myPreselectionEnabled, OCCViewer_Viewer::setSelectionOptions(), SwitchPreselectionId, and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Toggles selection on/off.
References QtxActionMgr::action(), OCCViewer_Viewer::isPreselectionEnabled(), isSelectionEnabled(), myModel, mySelectionEnabled, OCCViewer_Viewer::setSelectionOptions(), SwitchPreselectionId, SwitchSelectionId, and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Switches style of advanced multiple selection by Poligon/Circle.
References SUIT_ViewWindow::action(), OCCViewer_PolygonSketcher::Circle, CircleSelectionStyleId, getSketcher(), OCCViewer_PolygonSketcher::Poligone, Polygon, PolygonSelectionStyleId, OCCViewer_ViewSketcher::setSketcherMode(), and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Toogles advanced zooming style (relatively to the cursor position) on/off.
References QtxActionMgr::action(), myViewPort, OCCViewer_ViewPort3d::setAdvancedZoomingEnabled(), SwitchZoomingStyleId, and SUIT_ViewWindow::toolMgr().
|
virtualslot |
Perform "top view" transformation.
References Handle(), myAutomaticZoom, myViewPort, onViewFitAll(), projAndPanToGravity(), TOPVIEW, vpTransformationFinished(), and vpTransformationStarted().
|
virtualslot |
Called when action "show/hide trihedron" is activated.
References myModel, and OCCViewer_Viewer::setTrihedronShown().
|
virtualslot |
Called when action "show/hide view cube" is activated.
References myModel, and OCCViewer_Viewer::setViewCubeShown().
|
virtualslot |
Perform 'fit all' operation.
References OCCViewer_ViewPort3d::fitAll(), and myViewPort.
|
virtual |
Restore view parameters.
| anItem | view parameters |
References OCCViewer_CubeAxesDlg::ApplyData(), viewAspect::atX, viewAspect::atY, viewAspect::atZ, viewAspect::centerX, viewAspect::centerY, OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), viewAspect::isVisible, myCubeAxesDlg, myModel, myRestoreFlag, myViewPort, OCCViewer_AxisWidget::AxisData::Name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, viewAspect::projX, viewAspect::projY, viewAspect::projZ, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, OCCViewer_CubeAxesDlg::SetData(), OCCViewer_Viewer::setTrihedronShown(), OCCViewer_Viewer::setTrihedronSize(), OCCViewer_Viewer::setViewCubeShown(), viewAspect::size, OCCViewer_AxisWidget::AxisData::TickmarkLength, viewAspect::twist, and viewAspect::vcIsVisible.
|
protected |
References computeGravityCenter(), OCCViewer_Utilities::computeSceneBBCenter(), EPS, Handle(), and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, Orthographic, Perspective, and Stereo.
| void OCCViewer_ViewWindow::resetState | ( | ) |
Reset the viewport to its initial state ( no transformations in process etc. )
References myCursor, myCursorIsHand, myDrawRect, myOperation, myPanningByBtn, myRotationPointSelection, myViewPort, NOVIEWOP, setTransformInProcess(), setTransformRequested(), transformRequested(), and vpTransformationFinished().
|
signal |
|
virtualslot |
References setReturnedTo3dView().
|
protected |
Save old cursor. [ protected ]
References OCCViewer_ViewPort3d::getDefaultCursor(), myCursor, and myViewPort.
|
virtual |
Returns currently selected selection style
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow::action(), CircleSelectionStyleId, CyrcleStyle, PolygonSelectionStyleId, PolygonStyle, RectStyle, and SUIT_ViewWindow::toolMgr().
| void OCCViewer_ViewWindow::set2dMode | ( | Mode2dType | theType | ) |
References my2dMode.
| void OCCViewer_ViewWindow::setActionVisible | ( | ActionId | theId, |
| bool | isVisible | ||
| ) |
References QtxActionMgr::action(), and SUIT_ViewWindow::toolMgr().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References GreenMagenta, Handle(), myViewPort, RedCyan, and YellowBlue.
|
virtual |
References myAutomaticZoom.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort, and OCCViewer_ViewPort3d::setBackground().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort, and OCCViewer_ViewPort3d::setBackgroundColor().
|
virtual |
Set parameters of the cutting plane.
| on | if true, cutting plane is enabled |
| x | X position of plane point |
| y | Y position of plane point |
| z | Z position of plane point |
| dx | X coordinate of plane normal |
| dy | Y coordinate of plane normal |
| dz | Z coordinate of plane normal |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myModel, and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References setCuttingPlane().
|
virtual |
Set current interaction style.
| theStyle | interaction style |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewModel::KEY_FREE, and onSwitchInteractionStyle().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| void OCCViewer_ViewWindow::setMaximized | ( | bool | toMaximize, |
| bool | toSendSignal = true |
||
| ) |
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow::action(), QtxActionMgr::action(), isOpenGlStereoSupport(), isQuadBufferSupport(), myModel, onProjectionType(), onStereoType(), Orthographic, OrthographicId, Perspective, PerspectiveId, OCCViewer_Viewer::projectionType(), QuadBuffer, Stereo, StereoId, stereoType(), SUIT_ViewWindow::toolMgr(), and SUIT_MessageBox::warning().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
|
virtualslot |
Set restore flag.
References myRestoreFlag.
| void OCCViewer_ViewWindow::setReturnedTo3dView | ( | bool | isVisible3dView = true | ) |
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References QtxActionMgr::action(), CircleSelectionStyleId, CyrcleStyle, PolygonSelectionStyleId, PolygonStyle, RectangleSelectionStyleId, RectStyle, and SUIT_ViewWindow::toolMgr().
| void OCCViewer_ViewWindow::setSketcherStyle | ( | bool | enable | ) |
References IsSketcherStyle.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| void OCCViewer_ViewWindow::setTransformEnabled | ( | const OperationType | id, |
| const bool | on | ||
| ) |
|
protected |
References myEventStarted.
|
protected |
Start delayed viewer operation.
References myOperation, myViewPort, NOVIEWOP, and transformEnabled().
|
virtual |
Restore visual parameters of the view window.
| parameters | visual parameters of view window |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteOrientation, aTexture, viewAspect::atX, viewAspect::atY, viewAspect::atZ, viewAspect::centerX, viewAspect::centerY, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, getViewPort(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_ClipPlane::IsOn, viewAspect::isVisible, OCCViewer_ClipPlane::Mode, myModel, OCCViewer_ClipPlane::OrientationType, performRestoring(), viewAspect::projX, viewAspect::projY, viewAspect::projZ, OCCViewer_ClipPlane::Relative, OCCViewer_ClipPlane::RelativeOrientation, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, setBackground(), OCCViewer_Viewer::setClipPlanes(), viewAspect::size, Qtx::stringToBackground(), viewAspect::twist, OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
|
virtual |
Set current zooming style.
| theStyle | zooming style |
Reimplemented in OCCViewer_ViewFrame.
References onSwitchZoomingStyle().
|
signal |
|
virtualslot |
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort, and OCCViewer_ViewPort3d::showStaticTrihedron().
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, and Relative.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
|
virtual |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, and QuadBuffer.
|
protectedslot |
Synchronize views. This implementation synchronizes OCC view's camera propreties.
References cameraProperties(), SUIT_ViewWindow::cameraProperties(), SUIT_CameraProperties::getAxialScale(), SUIT_CameraProperties::getFocalPoint(), SUIT_CameraProperties::getMappingScale(), SUIT_CameraProperties::getPosition(), getViewPort(), SUIT_CameraProperties::getViewUp(), Handle(), OCCViewer_ViewPort3d::setAxialScale(), and SUIT_ViewWindow::updateSyncViews().
| bool OCCViewer_ViewWindow::transformEnabled | ( | const OperationType | id | ) | const |
References myStatus.
|
protected |
References myEventStarted.
|
protected |
References myOperation, and NOVIEWOP.
|
virtual |
Update state of enable draw mode state.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_Viewer::isMultiSelectionEnabled(), OCCViewer_Viewer::isSelectionEnabled(), myDrawRectEnabled, myEnableDrawMode, and myModel.
|
virtualslot |
Update gravity center in the "Set Rotation Point" dialog box.
References BBCENTER, OCCViewer_Utilities::computeVisibleBBCenter(), myCurrPointType, mySetRotationPointDlg, myViewPort, and OCCViewer_SetRotationPointDlg::setCoords().
|
virtual |
Replaces old view aspects by new ones
| aViewList | - list of new view aspects |
References myViewAspects.
|
signal |
|
protected |
Handle mouse move event.
| theEvent | mouse event |
References activatePanning(), activateRotation(), activateSketching(), activateZoom(), getButtonState(), getViewPort(), interactionStyle(), isSketcherStyle(), SUIT_ViewModel::KEY_FREE, l_mbPressEvent, SUIT_ViewWindow::mouseMoving(), myCurrPointType, myCurrTime, myCurrX, myCurrY, myDrawRect, myEnableDrawMode, myIsKeyFree, myOperation, mypSketcher, myRotationPointSelection, mySelectedPoint, myStartTime, myStartX, myStartY, myViewPort, OCCViewer_ViewPort3d::pan(), PANGLOBAL, PANVIEW, Polygon, Rect, RectStyle, OCCViewer_ViewPort3d::rotate(), ROTATE, selectionStyle(), SUIT_ViewModel::STANDARD, OCCViewer_ViewPort3d::startRotation(), OCCViewer_ViewPort3d::startZoomAtPoint(), SUIT_ViewWindow::vpRotate(), SUIT_ViewWindow::vpStartRotate(), OCCViewer_ViewPort3d::zoom(), and ZOOMVIEW.
|
protected |
Handle mouse press event.
| theEvent | mouse event |
References activatePanning(), activateRotation(), activateZoom(), getButtonState(), Handle(), interactionStyle(), SUIT_ViewModel::KEY_FREE, l_mbPressEvent, SUIT_ViewWindow::mousePressed(), myCurrPointType, myCursor, myCursorIsHand, myIsKeyFree, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, mySetRotationPointDlg, myStartTime, myStartX, myStartY, myViewPort, NOVIEWOP, PANGLOBAL, PANVIEW, ROTATE, OCCViewer_SetRotationPointDlg::setCoords(), setTransformInProcess(), SUIT_ViewModel::STANDARD, OCCViewer_ViewPort3d::startRotation(), OCCViewer_ViewPort3d::startZoomAtPoint(), OCCViewer_SetRotationPointDlg::toggleChange(), transformRequested(), SUIT_ViewWindow::vpStartRotate(), vpTransformationStarted(), WINDOWFIT, and ZOOMVIEW.
|
protected |
Handle mouse release event.
| theEvent | mouse event |
References SUIT_ViewWindow::contextMenuRequested(), drawRect(), endDrawRect(), OCCViewer_ViewPort3d::endRotation(), OCCViewer_ViewPort3d::fitRect(), ViewerTools_ScreenScaling::getPR(), SUIT_ViewWindow::getViewManager(), OCCViewer_ViewManager::isChainedOperations(), l_mbPressEvent, SUIT_Tools::makeRect(), SUIT_ViewWindow::mouseReleased(), myCurrTime, myCurrX, myCurrY, myCurScale, myCurSketch, myDrawRect, myOperation, myPanningByBtn, mySketchers, myStartX, myStartY, myViewPort, NOVIEWOP, PANGLOBAL, PANVIEW, resetState(), ROTATE, OCCViewer_ViewPort3d::setCenter(), OCCViewer_ViewSketcher::sketchButton(), SUIT_ViewWindow::vpEndRotate(), WINDOWFIT, and ZOOMVIEW.
|
signal |
|
signal |
|
virtual |
Get current zooming style.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d::isAdvancedZoomingEnabled(), and myViewPort.
|
protected |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
private |
selection rectangle rubber band
|
protected |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
protected |