#include <OCCViewer_ViewWindow.h>

Public Types | |
| enum | { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, ChangeRotationPointId, RotationId, FrontId, BackId, TopId, BottomId, LeftId, RightId, ClockWiseId, AntiClockWiseId, ResetId, CloneId, ClippingId, MemId, RestoreId, TrihedronShowId, AxialScaleId, GraduatedAxesId, AmbientId, SwitchInteractionStyleId, SwitchZoomingStyleId, MaximizedId, UserId } |
| enum | OperationType { NOTHING, PANVIEW, ZOOMVIEW, ROTATE, PANGLOBAL, WINDOWFIT, FITALLVIEW, RESETVIEW, FRONTVIEW, BACKVIEW, TOPVIEW, BOTTOMVIEW, LEFTVIEW, RIGHTVIEW, CLOCKWISEVIEW, ANTICLOCKWISEVIEW } |
| enum | RotationPointType { GRAVITY, SELECTED } |
| enum | SketchingType { NoSketching, Rect, Polygon } |
| enum | Mode2dType { No2dMode, XYPlane, XZPlane, YZPlane } |
Public Slots | |
| virtual void | onFrontView () |
| Perform "front view" transformation. | |
| virtual void | onViewFitAll () |
| Perform 'fit all' operation. | |
| virtual void | onBackView () |
| Perform "back view" transformation. | |
| virtual void | onTopView () |
| Perform "top view" transformation. | |
| virtual void | onBottomView () |
| Perform "bottom view" transformation. | |
| virtual void | onLeftView () |
| Perform "left view" transformation. | |
| virtual void | onRightView () |
| Perform "right view" transformation. | |
| virtual void | onClockWiseView () |
| Rotate view 90 degrees clockwise. | |
| virtual void | onAntiClockWiseView () |
| Rotate view 90 degrees conterclockwise. | |
| virtual void | onResetView () |
| Perform "reset view" transformation. | |
| virtual void | onFitAll () |
| Perform "fit all" transformation. | |
| virtual void | activateZoom () |
| Start zooming operation. | |
| virtual void | activateWindowFit () |
| Starts fit operation. | |
| virtual void | activateRotation () |
| Start rotation operation. | |
| virtual void | activatePanning () |
| Start panning operation. | |
| virtual void | activateGlobalPanning () |
| Start global panning operation. | |
| virtual void | onSetRotationPoint (bool on) |
| Called if 'change rotation point' operation is activated. | |
| virtual void | onCloneView () |
| Create one more window with same content. | |
| virtual void | onClipping (bool on) |
| called if clipping operation is activated. | |
| virtual void | onAxialScale () |
| virtual void | onGraduatedAxes () |
| virtual void | onAmbientToogle () |
| virtual void | onMemorizeView () |
| Store view parameters. | |
| virtual void | onRestoreView () |
| Restore view parameters. | |
| virtual void | onTrihedronShow () |
| Called when action "show/hide trihedron" is activated. | |
| virtual void | setRestoreFlag () |
| Set restore flag. | |
| virtual void | onSwitchInteractionStyle (bool on) |
| Switches "keyboard free" interaction style on/off. | |
| virtual void | onSwitchZoomingStyle (bool on) |
| Toogles advanced zooming style (relatively to the cursor position) on/off. | |
| virtual void | activateSetRotationGravity () |
| Set the gravity center as a rotation point. | |
| virtual void | activateSetRotationSelected (double theX, double theY, double theZ) |
| Set the point selected by the user as a rotation point. | |
| virtual void | activateStartPointSelection () |
| Start the point selection process. | |
| virtual void | updateGravityCoords () |
| Update gravity center in the "Set Rotation Point" dialog box. | |
| virtual void | showEvent (QShowEvent *) |
| Handle show event. | |
| virtual void | hideEvent (QHideEvent *) |
| Handle hide event. | |
| virtual void | onMaximizedView () |
| virtual void | onDumpView () |
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 | 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) |
Public Member Functions | |
| OCCViewer_ViewWindow (SUIT_Desktop *theDesktop, OCCViewer_Viewer *theModel) | |
| Constructor. | |
| virtual | ~OCCViewer_ViewWindow () |
| Destructor. | |
| virtual OCCViewer_ViewPort3d * | getViewPort () |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
| Customize event handling. | |
| virtual void | performRestoring (const viewAspect &) |
| Restore view parameters. | |
| virtual void | initLayout () |
| Internal initialization. | |
| virtual void | updateEnabledDrawMode () |
| Update state of enable draw mode state. | |
| 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. | |
| virtual void | setCuttingPlane (bool on, const gp_Pln thePln) |
| virtual bool | isCuttingPlane () |
| Check if any cutting plane is enabled. | |
| virtual QString | getVisualParameters () |
| Get visual parameters of this view window. | |
| virtual void | setVisualParameters (const QString ¶meters) |
| Restore visual parameters of the view window. | |
| virtual void | initSketchers () |
| virtual OCCViewer_ViewSketcher * | getSketcher (const int) |
| virtual void | activateSketching (int) |
| virtual int | interactionStyle () const |
| Get current interaction style. | |
| virtual void | setInteractionStyle (const int) |
| Set current interaction style. | |
| virtual int | zoomingStyle () const |
| Get current zooming style. | |
| virtual void | setZoomingStyle (const int) |
| Set current zooming style. | |
| 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 |
| virtual QColor | backgroundColor () const |
| virtual void | setBackgroundColor (const QColor &) |
| virtual const viewAspectList & | getViewAspects () |
| virtual void | appendViewAspect (const viewAspect &) |
| virtual void | updateViewAspects (const viewAspectList &) |
| virtual void | clearViewAspects () |
| virtual QImage | dumpView () |
| Dump view window contents to the pixmap. | |
| virtual bool | dumpViewToFormat (const QImage &, const QString &fileName, const QString &format) |
| 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) | |
| bool | dropDownButtons () const |
| Get current buttons mode. | |
Protected Member Functions | |
| virtual QString | filter () const |
| bool | transformRequested () const |
| bool | setTransformRequested (OperationType) |
| Start delayed viewer operation. | |
| bool | transformInProcess () const |
| void | setTransformInProcess (bool) |
| void | vpMousePressEvent (QMouseEvent *theEvent) |
| Handle mouse press event. | |
| void | vpMouseReleaseEvent (QMouseEvent *theEvent) |
| Handle mouse release event. | |
| void | vpMouseMoveEvent (QMouseEvent *theEvent) |
| Handle mouse move event. | |
| void | resetState () |
| Reset the viewport to its initial state ( no transformations in process etc. ) | |
| void | drawRect () |
| Draw rubber band rectangle. | |
| void | endDrawRect () |
| Clear rubber band rectangle on the end on the dragging operation. | |
| void | createActions () |
| Create actions. | |
| void | createToolBar () |
| Create toolbar. | |
| virtual OperationType | getButtonState (QMouseEvent *theEvent, int theInteractionStyle) |
| Detect viewer operation according the the mouse button pressed and key modifiers used. | |
| viewAspect | getViewParams () const |
| Get the visual parameters of the view window. | |
| bool | computeGravityCenter (double &theX, double &theY, double &theZ) |
| Compute the gravity center. | |
| virtual void | onSketchingStarted () |
| virtual void | onSketchingFinished () |
| virtual OCCViewer_ViewSketcher * | createSketcher (int) |
| void | closeEvent (QCloseEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| virtual bool | action (const int) |
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 |
| int | myCurrX |
| int | myCurrY |
| bool | myEventStarted |
| bool | myCursorIsHand |
| bool | myDrawRect |
| bool | myEnableDrawMode |
| bool | myPaintersRedrawing |
| QCursor | myCursor |
| double | myCurScale |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
Private Types | |
| typedef QMap< OperationType, bool > | MapOfTransformStatus |
Private Member Functions | |
| Handle (V3d_Plane) myReserveClippingPlane | |
Private Attributes | |
| OCCViewer_ClippingDlg * | myClippingDlg |
| QtxAction * | myClippingAction |
| OCCViewer_AxialScaleDlg * | myScalingDlg |
| OCCViewer_SetRotationPointDlg * | mySetRotationPointDlg |
| QtxAction * | mySetRotationPointAction |
| QtxRectRubberBand * | myRectBand |
| selection rectangle rubber band | |
| int | myInteractionStyle |
| MapOfTransformStatus | myStatus |
| Mode2dType | my2dMode |
| viewAspectList | myViewAspects |
typedef QMap<OperationType, bool> OCCViewer_ViewWindow.MapOfTransformStatus [private] |
| anonymous enum |
| OCCViewer_ViewWindow::OCCViewer_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| OCCViewer_Viewer * | theModel | ||
| ) |
| theDesktop | main window of application |
| theModel | OCC 3D viewer |
References clearViewAspects(), my2dMode, myClippingDlg, myCurSketch, myEnableDrawMode, myInteractionStyle, myModel, mypSketcher, myRectBand, myRestoreFlag, myScalingDlg, mySetRotationPointDlg, No2dMode, SUIT_ViewModel.STANDARD, and updateEnabledDrawMode().
| OCCViewer_ViewWindow::~OCCViewer_ViewWindow | ( | ) | [virtual] |
References endDrawRect(), and mySketchers.
| OCCViewer_ViewPort3d * OCCViewer_ViewWindow::getViewPort | ( | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort.
| watched | event receiver object |
| e | event |
true if the event processing should be stopped Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow.contextMenuRequested(), SUIT_ViewWindow.keyPressed(), SUIT_ViewWindow.mouseDoubleClicked(), myViewPort, OCCViewer_ViewPort3d.startZoomAtPoint(), vpMouseMoveEvent(), vpMousePressEvent(), vpMouseReleaseEvent(), and OCCViewer_ViewPort3d.zoom().
| void OCCViewer_ViewWindow::performRestoring | ( | const viewAspect & | anItem | ) | [virtual] |
| anItem | view parameters |
Reimplemented in OCCViewer_ViewFrame.
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(), viewAspect.size, OCCViewer_AxisWidget.AxisData.TickmarkLength, and viewAspect.twist.
| void OCCViewer_ViewWindow::initLayout | ( | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References QtxActionMgr.action(), createActions(), createToolBar(), GraduatedAxesId, GRAVITY, OCCViewer_CubeAxesDlg.initialize(), my2dMode, myCubeAxesDlg, myCurrPointType, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, myViewPort, NOTHING, onFrontView(), onLeftView(), onTopView(), OCCViewer_ViewPort3d.setBackgroundColor(), setTransformInProcess(), setTransformRequested(), SUIT_ViewWindow.toolMgr(), XYPlane, XZPlane, and YZPlane.
| void OCCViewer_ViewWindow::updateEnabledDrawMode | ( | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_Viewer.isMultiSelectionEnabled(), OCCViewer_Viewer.isSelectionEnabled(), myEnableDrawMode, and myModel.
| void OCCViewer_ViewWindow::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 |
||
| ) | [virtual] |
| 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 test_table.a, test_table.c, Handle(), and myViewPort.
| void OCCViewer_ViewWindow::setCuttingPlane | ( | bool | on, |
| const gp_Pln | thePln | ||
| ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References setCuttingPlane().
| bool OCCViewer_ViewWindow::isCuttingPlane | ( | ) | [virtual] |
true if at least one cutting plane is enabled Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| QString OCCViewer_ViewWindow::getVisualParameters | ( | ) | [virtual] |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References viewAspect.atX, viewAspect.atY, viewAspect.atZ, viewAspect.centerX, viewAspect.centerY, viewAspect.eyeX, viewAspect.eyeY, viewAspect.eyeZ, getViewParams(), 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, viewAspect.isVisible, viewAspect.projX, viewAspect.projY, viewAspect.projZ, viewAspect.scale, viewAspect.scaleX, viewAspect.scaleY, viewAspect.scaleZ, viewAspect.size, and viewAspect.twist.
| void OCCViewer_ViewWindow::setVisualParameters | ( | const QString & | parameters | ) | [virtual] |
| parameters | visual parameters of view window |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References viewAspect.atX, viewAspect.atY, viewAspect.atZ, viewAspect.centerX, viewAspect.centerY, 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.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, viewAspect.isVisible, performRestoring(), viewAspect.projX, viewAspect.projY, viewAspect.projZ, viewAspect.scale, viewAspect.scaleX, viewAspect.scaleY, viewAspect.scaleZ, viewAspect.size, and viewAspect.twist.
| void OCCViewer_ViewWindow::initSketchers | ( | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References createSketcher(), mySketchers, Polygon, and Rect.
| OCCViewer_ViewSketcher * OCCViewer_ViewWindow::getSketcher | ( | const int | typ | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References mySketchers, and OCCViewer_ViewSketcher.type().
| void OCCViewer_ViewWindow::activateSketching | ( | int | type | ) | [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().
| int OCCViewer_ViewWindow::interactionStyle | ( | ) | const [virtual] |
| void OCCViewer_ViewWindow::setInteractionStyle | ( | const int | theStyle | ) | [virtual] |
| theStyle | interaction style |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewModel.KEY_FREE, and onSwitchInteractionStyle().
| int OCCViewer_ViewWindow::zoomingStyle | ( | ) | const [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.isAdvancedZoomingEnabled(), and myViewPort.
| void OCCViewer_ViewWindow::setZoomingStyle | ( | const int | theStyle | ) | [virtual] |
| theStyle | zooming style |
Reimplemented in OCCViewer_ViewFrame.
References onSwitchZoomingStyle().
| void OCCViewer_ViewWindow::setTransformEnabled | ( | const OperationType | id, |
| const bool | on | ||
| ) |
| bool OCCViewer_ViewWindow::transformEnabled | ( | const OperationType | id | ) | const |
References myStatus.
| void OCCViewer_ViewWindow::set2dMode | ( | Mode2dType | theType | ) |
References my2dMode.
| Mode2dType OCCViewer_ViewWindow.get2dMode | ( | ) | const |
| void OCCViewer_ViewWindow::setMaximized | ( | bool | toMaximize, |
| bool | toSendSignal = true |
||
| ) |
| bool OCCViewer_ViewWindow::isMaximized | ( | ) | const |
References QtxActionMgr.action(), MaximizedId, and SUIT_ViewWindow.toolMgr().
| QColor OCCViewer_ViewWindow::backgroundColor | ( | ) | const [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.backgroundColor(), and myViewPort.
| void OCCViewer_ViewWindow::setBackgroundColor | ( | const QColor & | theColor | ) | [virtual] |
Reimplemented in OCCViewer_ViewFrame.
References myViewPort, and OCCViewer_ViewPort3d.setBackgroundColor().
| const viewAspectList & OCCViewer_ViewWindow::getViewAspects | ( | ) | [virtual] |
References myViewAspects.
| void OCCViewer_ViewWindow::appendViewAspect | ( | const viewAspect & | aParams | ) | [virtual] |
| void OCCViewer_ViewWindow::updateViewAspects | ( | const viewAspectList & | aViewList | ) | [virtual] |
Replaces old view aspects by new ones
| aViewList | - list of new view aspects |
References myViewAspects.
| void OCCViewer_ViewWindow::clearViewAspects | ( | ) | [virtual] |
Clears view aspects
References myViewAspects.
| void OCCViewer_ViewWindow::onFrontView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References FRONTVIEW, Handle(), myViewPort, onViewFitAll(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onViewFitAll | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), and myViewPort.
| void OCCViewer_ViewWindow::onBackView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References BACKVIEW, Handle(), myViewPort, onViewFitAll(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onTopView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, onViewFitAll(), TOPVIEW, vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onBottomView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References BOTTOMVIEW, Handle(), myViewPort, onViewFitAll(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onLeftView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), LEFTVIEW, myViewPort, onViewFitAll(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onRightView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myViewPort, onViewFitAll(), RIGHTVIEW, vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onClockWiseView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References CLOCKWISEVIEW, myViewPort, OCCViewer_ViewPort3d.rotateXY(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onAntiClockWiseView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References ANTICLOCKWISEVIEW, myViewPort, OCCViewer_ViewPort3d.rotateXY(), vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onResetView | ( | ) | [virtual, slot] |
Sets default orientation of the viewport camera.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), myViewPort, RESETVIEW, vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::onFitAll | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), FITALLVIEW, myViewPort, vpTransformationFinished(), and vpTransformationStarted().
| void OCCViewer_ViewWindow::activateZoom | ( | ) | [virtual, slot] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References imageZoomCursor, myCursor, myCursorIsHand, myOperation, myViewPort, setTransformRequested(), transformRequested(), and ZOOMVIEW.
| void OCCViewer_ViewWindow::activateWindowFit | ( | ) | [virtual, slot] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References myCursor, myCursorIsHand, myOperation, myViewPort, setTransformRequested(), transformRequested(), and WINDOWFIT.
| void OCCViewer_ViewWindow::activateRotation | ( | ) | [virtual, slot] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References imageRotateCursor, myCursor, myCursorIsHand, myOperation, myViewPort, ROTATE, setTransformRequested(), and transformRequested().
| void OCCViewer_ViewWindow::activatePanning | ( | ) | [virtual, slot] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References myCursor, myCursorIsHand, myOperation, myViewPort, PANVIEW, setTransformRequested(), and transformRequested().
| void OCCViewer_ViewWindow::activateGlobalPanning | ( | ) | [virtual, slot] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), Handle(), imageCrossCursor, myCurScale, myCursor, myViewPort, PANGLOBAL, and setTransformRequested().
| void OCCViewer_ViewWindow::onSetRotationPoint | ( | bool | on | ) | [virtual, slot] |
| on | action state |
Reimplemented in OCCViewer_ViewFrame.
References computeGravityCenter(), GRAVITY, myCurrPointType, mySetRotationPointAction, mySetRotationPointDlg, OCCViewer_SetRotationPointDlg.SetAction(), and OCCViewer_SetRotationPointDlg.setCoords().
| void OCCViewer_ViewWindow::onCloneView | ( | ) | [virtual, slot] |
References SUIT_ViewManager.createViewWindow(), SUIT_ViewWindow.myManager, and viewCloned().
| void OCCViewer_ViewWindow::onClipping | ( | bool | on | ) | [virtual, slot] |
Enables/disables clipping plane displaying.
on action state
References myClippingAction, myClippingDlg, OCCViewer_ClippingDlg.SetAction(), and setCuttingPlane().
| void OCCViewer_ViewWindow::onAxialScale | ( | ) | [virtual, slot] |
Creates one more window with same content
Reimplemented in OCCViewer_ViewFrame.
References myScalingDlg.
| void OCCViewer_ViewWindow::onGraduatedAxes | ( | ) | [virtual, slot] |
Shows Graduated Axes dialog
References myCubeAxesDlg, and OCCViewer_CubeAxesDlg.Update().
| void OCCViewer_ViewWindow::onAmbientToogle | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| void OCCViewer_ViewWindow::onMemorizeView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References appendViewAspect(), and getViewParams().
| void OCCViewer_ViewWindow::onRestoreView | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_CreateRestoreViewDlg.currentItem(), myRestoreFlag, OCCViewer_CreateRestoreViewDlg.parameters(), performRestoring(), setRestoreFlag(), and updateViewAspects().
| void OCCViewer_ViewWindow::onTrihedronShow | ( | ) | [virtual, slot] |
References myModel, and OCCViewer_Viewer.toggleTrihedron().
| void OCCViewer_ViewWindow::setRestoreFlag | ( | ) | [virtual, slot] |
References myRestoreFlag.
| void OCCViewer_ViewWindow::onSwitchInteractionStyle | ( | bool | on | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References test_table.a, QtxActionMgr.action(), SUIT_ViewModel.KEY_FREE, myInteractionStyle, SUIT_ViewModel.STANDARD, SwitchInteractionStyleId, and SUIT_ViewWindow.toolMgr().
| void OCCViewer_ViewWindow::onSwitchZoomingStyle | ( | bool | on | ) | [virtual, slot] |
| void OCCViewer_ViewWindow::activateSetRotationGravity | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References computeGravityCenter(), GRAVITY, Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySetRotationPointDlg, myViewPort, NOTHING, and OCCViewer_SetRotationPointDlg.setCoords().
| void OCCViewer_ViewWindow::activateSetRotationSelected | ( | double | theX, |
| double | theY, | ||
| double | theZ | ||
| ) | [virtual, slot] |
| theX | X coordinate of the rotation point |
| theY | Y coordinate of the rotation point |
| theZ | Z coordinate of the rotation point |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, myViewPort, NOTHING, and SELECTED.
| void OCCViewer_ViewWindow::activateStartPointSelection | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myPrevPointType, myRotationPointSelection, myViewPort, SELECTED, and STANDARD_TYPE().
| void OCCViewer_ViewWindow::updateGravityCoords | ( | ) | [virtual, slot] |
Reimplemented in OCCViewer_ViewFrame.
References computeGravityCenter(), GRAVITY, myCurrPointType, mySetRotationPointDlg, and OCCViewer_SetRotationPointDlg.setCoords().
| void OCCViewer_ViewWindow::showEvent | ( | QShowEvent * | theEvent | ) | [virtual, slot] |
| void OCCViewer_ViewWindow::hideEvent | ( | QHideEvent * | theEvent | ) | [virtual, slot] |
| void OCCViewer_ViewWindow::onMaximizedView | ( | ) | [virtual, slot] |
References isMaximized(), and setMaximized().
| void OCCViewer_ViewWindow.vpTransformationStarted | ( | OCCViewer_ViewWindow::OperationType | type | ) | [signal] |
| void OCCViewer_ViewWindow.vpTransformationFinished | ( | OCCViewer_ViewWindow::OperationType | type | ) | [signal] |
| void OCCViewer_ViewWindow.viewCloned | ( | SUIT_ViewWindow * | ) | [signal] |
| void OCCViewer_ViewWindow.Show | ( | QShowEvent * | ) | [signal] |
| void OCCViewer_ViewWindow.Hide | ( | QHideEvent * | ) | [signal] |
| void OCCViewer_ViewWindow.maximized | ( | OCCViewer_ViewWindow * | , |
| bool | |||
| ) | [signal] |
| QImage OCCViewer_ViewWindow::dumpView | ( | ) | [virtual] |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OpenGLUtils_FrameBuffer.bind(), Handle(), OpenGLUtils_FrameBuffer.init(), myViewPort, and OpenGLUtils_FrameBuffer.unbind().
| bool OCCViewer_ViewWindow::dumpViewToFormat | ( | const QImage & | img, |
| const QString & | fileName, | ||
| const QString & | format | ||
| ) | [virtual] |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References Handle(), and myViewPort.
| QString OCCViewer_ViewWindow::filter | ( | ) | const [protected, virtual] |
Reimplemented from SUIT_ViewWindow.
| bool OCCViewer_ViewWindow::transformRequested | ( | ) | const [protected] |
References myOperation, and NOTHING.
| bool OCCViewer_ViewWindow::setTransformRequested | ( | OperationType | op | ) | [protected] |
References myOperation, myViewPort, NOTHING, and transformEnabled().
| bool OCCViewer_ViewWindow::transformInProcess | ( | ) | const [protected] |
References myEventStarted.
| void OCCViewer_ViewWindow::setTransformInProcess | ( | bool | bOn | ) | [protected] |
References myEventStarted.
| void OCCViewer_ViewWindow::vpMousePressEvent | ( | QMouseEvent * | theEvent | ) | [protected] |
| theEvent | mouse event |
References activatePanning(), activateRotation(), activateZoom(), getButtonState(), Handle(), interactionStyle(), SUIT_ViewModel.KEY_FREE, l_mbPressEvent, SUIT_ViewWindow.mousePressed(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, mySetRotationPointDlg, myStartX, myStartY, myViewPort, NOTHING, PANGLOBAL, PANVIEW, ROTATE, OCCViewer_SetRotationPointDlg.setCoords(), setTransformInProcess(), OCCViewer_ViewPort3d.startRotation(), OCCViewer_ViewPort3d.startZoomAtPoint(), OCCViewer_SetRotationPointDlg.toggleChange(), transformRequested(), vpTransformationStarted(), WINDOWFIT, and ZOOMVIEW.
| void OCCViewer_ViewWindow::vpMouseReleaseEvent | ( | QMouseEvent * | theEvent | ) | [protected] |
| theEvent | mouse event |
References SUIT_ViewWindow.contextMenuRequested(), drawRect(), endDrawRect(), OCCViewer_ViewPort3d.endRotation(), OCCViewer_ViewPort3d.fitRect(), l_mbPressEvent, SUIT_Tools.makeRect(), SUIT_ViewWindow.mouseReleased(), myCurrX, myCurrY, myCurScale, myCurSketch, myDrawRect, myOperation, mySketchers, myStartX, myStartY, myViewPort, NOTHING, PANGLOBAL, PANVIEW, resetState(), ROTATE, OCCViewer_ViewPort3d.setCenter(), OCCViewer_ViewSketcher.sketchButton(), WINDOWFIT, and ZOOMVIEW.
| void OCCViewer_ViewWindow::vpMouseMoveEvent | ( | QMouseEvent * | theEvent | ) | [protected] |
| theEvent | mouse event |
References activateSketching(), drawRect(), getViewPort(), interactionStyle(), OCCViewer_ViewSketcher.isDefault(), l_mbPressEvent, SUIT_ViewWindow.mouseMoving(), myCurrPointType, myCurrX, myCurrY, myCurSketch, myCursor, myCursorIsHand, myDrawRect, myEnableDrawMode, myOperation, mypSketcher, myRotationPointSelection, mySelectedPoint, mySketchers, myStartX, myStartY, myViewPort, OCCViewer_ViewPort3d.pan(), PANGLOBAL, PANVIEW, OCCViewer_ViewPort3d.rotate(), ROTATE, OCCViewer_ViewSketcher.sketchButton(), SUIT_ViewModel.STANDARD, OCCViewer_ViewSketcher.type(), OCCViewer_ViewPort3d.zoom(), and ZOOMVIEW.
| void OCCViewer_ViewWindow::resetState | ( | ) | [protected] |
| void OCCViewer_ViewWindow::drawRect | ( | ) | [protected] |
References QtxRectRubberBand.initGeometry(), SUIT_Tools.makeRect(), myCurrX, myCurrY, myRectBand, myStartX, myStartY, and myViewPort.
| void OCCViewer_ViewWindow::endDrawRect | ( | ) | [protected] |
References QtxRectRubberBand.clearGeometry(), and myRectBand.
| void OCCViewer_ViewWindow::createActions | ( | ) | [protected] |
References activateGlobalPanning(), activatePanning(), activateRotation(), activateWindowFit(), activateZoom(), AmbientId, AntiClockWiseId, AxialScaleId, BackId, BottomId, ChangeRotationPointId, ClippingId, ClockWiseId, CloneId, DumpId, FitAllId, FitRectId, FrontId, GlobalPanId, GraduatedAxesId, LeftId, QtxResourceMgr.loadPixmap(), MaximizedId, MemId, myClippingAction, myModel, mySetRotationPointAction, onAmbientToogle(), onAntiClockWiseView(), onAxialScale(), onBackView(), onBottomView(), onClipping(), onClockWiseView(), onCloneView(), SUIT_ViewWindow.onDumpView(), onFitAll(), onFrontView(), onGraduatedAxes(), onLeftView(), onMaximizedView(), onMemorizeView(), onResetView(), onRestoreView(), onRightView(), onSetRotationPoint(), onSwitchInteractionStyle(), onSwitchZoomingStyle(), onTopView(), onTrihedronShow(), PanId, QtxActionMgr.registerAction(), ResetId, SUIT_Session.resourceMgr(), RestoreId, RightId, RotationId, SUIT_Session.session(), SwitchInteractionStyleId, SwitchZoomingStyleId, SUIT_ViewWindow.toolMgr(), TopId, OCCViewer_Viewer.trihedronActivated(), TrihedronShowId, and ZoomId.
| void OCCViewer_ViewWindow::createToolBar | ( | ) | [protected] |
References SUIT_ViewWindow.action(), AmbientId, AntiClockWiseId, QtxActionToolMgr.append(), AxialScaleId, BackId, BottomId, ChangeRotationPointId, ClippingId, ClockWiseId, CloneId, QtxActionToolMgr.createToolBar(), DumpId, FitAllId, FitRectId, FrontId, GlobalPanId, GraduatedAxesId, QtxActionSet.insertAction(), LeftId, MaximizedId, MemId, my2dMode, myModel, No2dMode, PanId, ResetId, RestoreId, RightId, RotationId, SwitchInteractionStyleId, SwitchZoomingStyleId, SUIT_ViewWindow.toolMgr(), TopId, OCCViewer_Viewer.trihedronActivated(), TrihedronShowId, XYPlane, XZPlane, YZPlane, and ZoomId.
| OCCViewer_ViewWindow::OperationType OCCViewer_ViewWindow::getButtonState | ( | QMouseEvent * | theEvent, |
| int | theInteractionStyle | ||
| ) | [protected, virtual] |
| theEvent | mouse event |
References my2dMode, SUIT_ViewModel.myButtonMap, SUIT_ViewModel.myStateMap, No2dMode, NOTHING, SUIT_ViewModel.PAN, PANVIEW, ROTATE, SUIT_ViewModel.ZOOM, and ZOOMVIEW.
| viewAspect OCCViewer_ViewWindow::getViewParams | ( | ) | const [protected] |
References test_big_table.aName, 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, 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(), 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(), and viewAspect.twist.
| bool OCCViewer_ViewWindow::computeGravityCenter | ( | double & | theX, |
| double & | theY, | ||
| double & | theZ | ||
| ) | [protected] |
| 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.
| void OCCViewer_ViewWindow::onSketchingStarted | ( | ) | [protected, virtual] |
Unhilights detected entities. [ virtual protected ]
| void OCCViewer_ViewWindow::onSketchingFinished | ( | ) | [protected, virtual] |
Selection by rectangle or polygon. [ virtual protected ]
References OCCViewer_ViewSketcher.Accept, OCCViewer_ViewSketcher.buttonState(), OCCViewer_ViewSketcher.data(), OCCViewer_ViewManager.getOCCViewer(), SUIT_ViewWindow.getViewManager(), getViewPort(), Handle(), myModel, mypSketcher, OCCViewer_Viewer.performSelectionChanged(), Polygon, Rect, OCCViewer_ViewSketcher.result(), and OCCViewer_ViewSketcher.type().
| OCCViewer_ViewSketcher * OCCViewer_ViewWindow::createSketcher | ( | int | type | ) | [protected, virtual] |
| OCCViewer_ViewWindow.Handle | ( | V3d_Plane | ) | [private] |
| void SUIT_ViewWindow::setViewManager | ( | SUIT_ViewManager * | theManager | ) | [virtual, inherited] |
Sets new view manager for window
| theManager | - new view manager |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow.myManager.
| SUIT_ViewManager * SUIT_ViewWindow::getViewManager | ( | ) | const [inherited] |
References SUIT_ViewWindow.myManager.
| bool SUIT_ViewWindow::event | ( | QEvent * | e | ) | [inherited] |
Reaction view window on event e.
References SUIT_Study.application(), SUIT_MessageBox.critical(), DUMP_EVENT, SUIT_ViewWindow.dumpView(), SUIT_ViewWindow.dumpViewToFormat(), Qtx.extension(), SUIT_ViewWindow.filter(), SUIT_Application.getFileName(), SUIT_ViewWindow.myManager, and SUIT_ViewManager.study().
| bool SUIT_ViewWindow::dumpViewToFormat | ( | const QString & | fileName, |
| const QString & | format | ||
| ) | [inherited] |
Saves scene rendering in window to file
| fileName | - name of file |
| format | - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") |
References SUIT_ViewWindow.dumpView().
| bool SUIT_ViewWindow::onAccelAction | ( | int | _action | ) | [inherited] |
Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active
References SUIT_ViewWindow.action().
| bool SUIT_ViewWindow::closable | ( | ) | const [inherited] |
Returns true if view window can be closed by the user
| bool SUIT_ViewWindow::setClosable | ( | const bool | on | ) | [inherited] |
Set / reset "closable" option of the view window
References SUIT_ViewWindow.closable().
| void SUIT_ViewWindow::setDestructiveClose | ( | const bool | on | ) | [inherited] |
Set or clear flag Qt.WDestructiveClose
| int SUIT_ViewWindow::getId | ( | ) | const [inherited] |
| QtxActionToolMgr * SUIT_ViewWindow::toolMgr | ( | ) | const [inherited] |
References SUIT_ViewWindow.myToolMgr.
| void SUIT_ViewWindow::setDropDownButtons | ( | bool | on | ) | [virtual, inherited] |
| on | new buttons mode |
Reimplemented in OCCViewer_ViewFrame.
References test_table.a, QtxActionMgr.action(), QtxActionSet.actions(), QtxActionMgr.idList(), QtxActionToolMgr.index(), QtxActionToolMgr.insert(), SUIT_ViewWindow.myIsDropDown, SUIT_ViewWindow.myMultiActions, QtxActionToolMgr.remove(), QtxActionToolMgr.toolBarsIds(), and SUIT_ViewWindow.toolMgr().
| bool SUIT_ViewWindow::dropDownButtons | ( | ) | const [inherited] |
| void SUIT_ViewWindow::onDumpView | ( | ) | [virtual, slot, inherited] |
Post events on dump view.
Reimplemented in OCCViewer_ViewFrame, and Plot2d_ViewWindow.
References DUMP_EVENT.
| void SUIT_ViewWindow.tryClosing | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void SUIT_ViewWindow.closing | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void SUIT_ViewWindow.mousePressed | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseReleased | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseDoubleClicked | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseMoving | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.wheeling | ( | SUIT_ViewWindow * | , |
| QWheelEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.keyPressed | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.keyReleased | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.contextMenuRequested | ( | QContextMenuEvent * | e | ) | [signal, inherited] |
| void SUIT_ViewWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected, inherited] |
Close event theEvent.
References SUIT_ViewWindow.closable(), SUIT_ViewWindow.closing(), and SUIT_ViewWindow.tryClosing().
| void SUIT_ViewWindow::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [protected, virtual, inherited] |
Context menu requested for event e.
References SUIT_ViewWindow.contextMenuRequested().
| bool SUIT_ViewWindow::action | ( | const int | ) | [protected, virtual, inherited] |
action handle standard action (zoom, pan) or custom action. to be redefined in successors.
Reimplemented in SOCC_ViewWindow, SPlot2d_ViewWindow, and SVTK_ViewWindow.
OCCViewer_ViewSketcher* OCCViewer_ViewWindow.mypSketcher [protected] |
QList<OCCViewer_ViewSketcher*> OCCViewer_ViewWindow.mySketchers [protected] |
int OCCViewer_ViewWindow.myCurSketch [protected] |
OperationType OCCViewer_ViewWindow.myOperation [protected] |
OCCViewer_Viewer* OCCViewer_ViewWindow.myModel [protected] |
OCCViewer_ViewPort3d* OCCViewer_ViewWindow.myViewPort [protected] |
OCCViewer_CubeAxesDlg* OCCViewer_ViewWindow.myCubeAxesDlg [protected] |
gp_Pnt OCCViewer_ViewWindow.mySelectedPoint [protected] |
bool OCCViewer_ViewWindow.myRotationPointSelection [protected] |
int OCCViewer_ViewWindow.myRestoreFlag [protected] |
int OCCViewer_ViewWindow.myStartX [protected] |
int OCCViewer_ViewWindow.myStartY [protected] |
int OCCViewer_ViewWindow.myCurrX [protected] |
int OCCViewer_ViewWindow.myCurrY [protected] |
bool OCCViewer_ViewWindow.myEventStarted [protected] |
bool OCCViewer_ViewWindow.myCursorIsHand [protected] |
bool OCCViewer_ViewWindow.myDrawRect [protected] |
bool OCCViewer_ViewWindow.myEnableDrawMode [protected] |
bool OCCViewer_ViewWindow.myPaintersRedrawing [protected] |
QCursor OCCViewer_ViewWindow.myCursor [protected] |
double OCCViewer_ViewWindow.myCurScale [protected] |
QtxAction* OCCViewer_ViewWindow.myClippingAction [private] |
QtxRectRubberBand* OCCViewer_ViewWindow.myRectBand [private] |
int OCCViewer_ViewWindow.myInteractionStyle [private] |
Mode2dType OCCViewer_ViewWindow.my2dMode [private] |
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited] |
SUIT_ViewManager* SUIT_ViewWindow.myManager [protected, inherited] |