#include <SOCC_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 | |
| SOCC_ViewWindow (SUIT_Desktop *, OCCViewer_Viewer *) | |
| virtual | ~SOCC_ViewWindow () |
| 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) |
| bool | dumpViewToFormat (const QString &fileName, const QString &format) |
| virtual void | setViewManager (SUIT_ViewManager *) |
| SUIT_ViewManager * | getViewManager () const |
| bool | event (QEvent *) |
| 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 bool | action (const int) |
| 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 *) |
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 |
anonymous enum [inherited] |
enum OCCViewer_ViewWindow::OperationType [inherited] |
enum OCCViewer_ViewWindow::RotationPointType [inherited] |
enum OCCViewer_ViewWindow::SketchingType [inherited] |
enum OCCViewer_ViewWindow::Mode2dType [inherited] |
| SOCC_ViewWindow::SOCC_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| OCCViewer_Viewer * | theModel | ||
| ) |
Constructor
| SOCC_ViewWindow::~SOCC_ViewWindow | ( | ) | [virtual] |
Destructor
| bool SOCC_ViewWindow::action | ( | const int | theAction | ) | [protected, virtual] |
Performs action
| theAction | - type of action |
Reimplemented from SUIT_ViewWindow.
References SUIT_Accel.PanDown, SUIT_Accel.PanLeft, SUIT_Accel.PanRight, SUIT_Accel.PanUp, SUIT_Accel.RotateDown, SUIT_Accel.RotateLeft, SUIT_Accel.RotateRight, SUIT_Accel.RotateUp, SUIT_Accel.ZoomFit, SUIT_Accel.ZoomIn, and SUIT_Accel.ZoomOut.
| OCCViewer_ViewPort3d * OCCViewer_ViewWindow::getViewPort | ( | ) | [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.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(), OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewPort3d.startZoomAtPoint(), OCCViewer_ViewWindow.vpMouseMoveEvent(), OCCViewer_ViewWindow.vpMousePressEvent(), OCCViewer_ViewWindow.vpMouseReleaseEvent(), and OCCViewer_ViewPort3d.zoom().
| void OCCViewer_ViewWindow::performRestoring | ( | const viewAspect & | anItem | ) | [virtual, inherited] |
| 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, OCCViewer_ViewWindow.Handle(), viewAspect.isVisible, OCCViewer_ViewWindow.myCubeAxesDlg, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myRestoreFlag, OCCViewer_ViewWindow.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, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References QtxActionMgr.action(), OCCViewer_ViewWindow.createActions(), OCCViewer_ViewWindow.createToolBar(), OCCViewer_ViewWindow.GraduatedAxesId, OCCViewer_ViewWindow.GRAVITY, OCCViewer_CubeAxesDlg.initialize(), OCCViewer_ViewWindow.my2dMode, OCCViewer_ViewWindow.myCubeAxesDlg, OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myPrevPointType, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.mySelectedPoint, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, OCCViewer_ViewWindow.onFrontView(), OCCViewer_ViewWindow.onLeftView(), OCCViewer_ViewWindow.onTopView(), OCCViewer_ViewPort3d.setBackgroundColor(), OCCViewer_ViewWindow.setTransformInProcess(), OCCViewer_ViewWindow.setTransformRequested(), SUIT_ViewWindow.toolMgr(), OCCViewer_ViewWindow.XYPlane, OCCViewer_ViewWindow.XZPlane, and OCCViewer_ViewWindow.YZPlane.
| void OCCViewer_ViewWindow::updateEnabledDrawMode | ( | ) | [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_Viewer.isMultiSelectionEnabled(), OCCViewer_Viewer.isSelectionEnabled(), OCCViewer_ViewWindow.myEnableDrawMode, and OCCViewer_ViewWindow.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, inherited] |
| 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, OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::setCuttingPlane | ( | bool | on, |
| const gp_Pln | thePln | ||
| ) | [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.setCuttingPlane().
| bool OCCViewer_ViewWindow::isCuttingPlane | ( | ) | [virtual, inherited] |
true if at least one cutting plane is enabled Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.
| QString OCCViewer_ViewWindow::getVisualParameters | ( | ) | [virtual, inherited] |
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, OCCViewer_ViewWindow.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, inherited] |
| 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, OCCViewer_ViewWindow.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, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.createSketcher(), OCCViewer_ViewWindow.mySketchers, OCCViewer_ViewWindow.Polygon, and OCCViewer_ViewWindow.Rect.
| OCCViewer_ViewSketcher * OCCViewer_ViewWindow::getSketcher | ( | const int | typ | ) | [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.mySketchers, and OCCViewer_ViewSketcher.type().
| void OCCViewer_ViewWindow::activateSketching | ( | int | type | ) | [virtual, inherited] |
Handles requests for sketching in the active view. [ virtual public ]
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewSketcher.activate(), OCCViewer_ViewSketcher.deactivate(), OCCViewer_ViewWindow.getSketcher(), OCCViewer_ViewWindow.getViewPort(), OCCViewer_ViewPort.isSketchingEnabled(), OCCViewer_ViewWindow.mypSketcher, OCCViewer_ViewWindow.NoSketching, OCCViewer_ViewWindow.onSketchingFinished(), and OCCViewer_ViewWindow.onSketchingStarted().
| int OCCViewer_ViewWindow::interactionStyle | ( | ) | const [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.myInteractionStyle.
| void OCCViewer_ViewWindow::setInteractionStyle | ( | const int | theStyle | ) | [virtual, inherited] |
| theStyle | interaction style |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewModel.KEY_FREE, and OCCViewer_ViewWindow.onSwitchInteractionStyle().
| int OCCViewer_ViewWindow::zoomingStyle | ( | ) | const [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.isAdvancedZoomingEnabled(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::setZoomingStyle | ( | const int | theStyle | ) | [virtual, inherited] |
| theStyle | zooming style |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.onSwitchZoomingStyle().
| void OCCViewer_ViewWindow::setTransformEnabled | ( | const OperationType | id, |
| const bool | on | ||
| ) | [inherited] |
Set enabled state of transformation (rotate, zoom, etc)
References OCCViewer_ViewWindow.myStatus, and OCCViewer_ViewWindow.NOTHING.
| bool OCCViewer_ViewWindow::transformEnabled | ( | const OperationType | id | ) | const [inherited] |
References OCCViewer_ViewWindow.myStatus.
| void OCCViewer_ViewWindow::set2dMode | ( | Mode2dType | theType | ) | [inherited] |
References OCCViewer_ViewWindow.my2dMode.
| Mode2dType OCCViewer_ViewWindow.get2dMode | ( | ) | const [inherited] |
| void OCCViewer_ViewWindow::setMaximized | ( | bool | toMaximize, |
| bool | toSendSignal = true |
||
| ) | [inherited] |
| bool OCCViewer_ViewWindow::isMaximized | ( | ) | const [inherited] |
References QtxActionMgr.action(), OCCViewer_ViewWindow.MaximizedId, and SUIT_ViewWindow.toolMgr().
| QColor OCCViewer_ViewWindow::backgroundColor | ( | ) | const [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.backgroundColor(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::setBackgroundColor | ( | const QColor & | theColor | ) | [virtual, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.myViewPort, and OCCViewer_ViewPort3d.setBackgroundColor().
| const viewAspectList & OCCViewer_ViewWindow::getViewAspects | ( | ) | [virtual, inherited] |
References OCCViewer_ViewWindow.myViewAspects.
| void OCCViewer_ViewWindow::appendViewAspect | ( | const viewAspect & | aParams | ) | [virtual, inherited] |
Appends new view aspect
| aParams | - new view aspects |
References OCCViewer_ViewWindow.myViewAspects.
| void OCCViewer_ViewWindow::updateViewAspects | ( | const viewAspectList & | aViewList | ) | [virtual, inherited] |
Replaces old view aspects by new ones
| aViewList | - list of new view aspects |
References OCCViewer_ViewWindow.myViewAspects.
| void OCCViewer_ViewWindow::clearViewAspects | ( | ) | [virtual, inherited] |
Clears view aspects
References OCCViewer_ViewWindow.myViewAspects.
| void OCCViewer_ViewWindow::onFrontView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onViewFitAll | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::onBackView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onTopView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onBottomView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onLeftView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onRightView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onClockWiseView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onAntiClockWiseView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onResetView | ( | ) | [virtual, slot, inherited] |
Sets default orientation of the viewport camera.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.RESETVIEW, OCCViewer_ViewWindow.vpTransformationFinished(), and OCCViewer_ViewWindow.vpTransformationStarted().
| void OCCViewer_ViewWindow::onFitAll | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::activateZoom | ( | ) | [virtual, slot, inherited] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References imageZoomCursor, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.setTransformRequested(), OCCViewer_ViewWindow.transformRequested(), and OCCViewer_ViewWindow.ZOOMVIEW.
| void OCCViewer_ViewWindow::activateWindowFit | ( | ) | [virtual, slot, inherited] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.setTransformRequested(), OCCViewer_ViewWindow.transformRequested(), and OCCViewer_ViewWindow.WINDOWFIT.
| void OCCViewer_ViewWindow::activateRotation | ( | ) | [virtual, slot, inherited] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References imageRotateCursor, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.ROTATE, OCCViewer_ViewWindow.setTransformRequested(), and OCCViewer_ViewWindow.transformRequested().
| void OCCViewer_ViewWindow::activatePanning | ( | ) | [virtual, slot, inherited] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.PANVIEW, OCCViewer_ViewWindow.setTransformRequested(), and OCCViewer_ViewWindow.transformRequested().
| void OCCViewer_ViewWindow::activateGlobalPanning | ( | ) | [virtual, slot, inherited] |
Sets the corresponding cursor for the widget.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewPort3d.fitAll(), OCCViewer_ViewWindow.Handle(), imageCrossCursor, OCCViewer_ViewWindow.myCurScale, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.PANGLOBAL, and OCCViewer_ViewWindow.setTransformRequested().
| void OCCViewer_ViewWindow::onSetRotationPoint | ( | bool | on | ) | [virtual, slot, inherited] |
| on | action state |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.computeGravityCenter(), OCCViewer_ViewWindow.GRAVITY, OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.mySetRotationPointAction, OCCViewer_ViewWindow.mySetRotationPointDlg, OCCViewer_SetRotationPointDlg.SetAction(), and OCCViewer_SetRotationPointDlg.setCoords().
| void OCCViewer_ViewWindow::onCloneView | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onClipping | ( | bool | on | ) | [virtual, slot, inherited] |
Enables/disables clipping plane displaying.
on action state
References OCCViewer_ViewWindow.myClippingAction, OCCViewer_ViewWindow.myClippingDlg, OCCViewer_ClippingDlg.SetAction(), and OCCViewer_ViewWindow.setCuttingPlane().
| void OCCViewer_ViewWindow::onAxialScale | ( | ) | [virtual, slot, inherited] |
Creates one more window with same content
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.myScalingDlg.
| void OCCViewer_ViewWindow::onGraduatedAxes | ( | ) | [virtual, slot, inherited] |
Shows Graduated Axes dialog
References OCCViewer_ViewWindow.myCubeAxesDlg, and OCCViewer_CubeAxesDlg.Update().
| void OCCViewer_ViewWindow::onAmbientToogle | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::onMemorizeView | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.appendViewAspect(), and OCCViewer_ViewWindow.getViewParams().
| void OCCViewer_ViewWindow::onRestoreView | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_CreateRestoreViewDlg.currentItem(), OCCViewer_ViewWindow.myRestoreFlag, OCCViewer_CreateRestoreViewDlg.parameters(), OCCViewer_ViewWindow.performRestoring(), OCCViewer_ViewWindow.setRestoreFlag(), and OCCViewer_ViewWindow.updateViewAspects().
| void OCCViewer_ViewWindow::onTrihedronShow | ( | ) | [virtual, slot, inherited] |
References OCCViewer_ViewWindow.myModel, and OCCViewer_Viewer.toggleTrihedron().
| void OCCViewer_ViewWindow::setRestoreFlag | ( | ) | [virtual, slot, inherited] |
References OCCViewer_ViewWindow.myRestoreFlag.
| void OCCViewer_ViewWindow::onSwitchInteractionStyle | ( | bool | on | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onSwitchZoomingStyle | ( | bool | on | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::activateSetRotationGravity | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.computeGravityCenter(), OCCViewer_ViewWindow.GRAVITY, OCCViewer_ViewWindow.Handle(), OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myPrevPointType, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.mySetRotationPointDlg, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, and OCCViewer_SetRotationPointDlg.setCoords().
| void OCCViewer_ViewWindow::activateSetRotationSelected | ( | double | theX, |
| double | theY, | ||
| double | theZ | ||
| ) | [virtual, slot, inherited] |
| 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 OCCViewer_ViewWindow.Handle(), OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myPrevPointType, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.mySelectedPoint, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, and OCCViewer_ViewWindow.SELECTED.
| void OCCViewer_ViewWindow::activateStartPointSelection | ( | ) | [virtual, slot, inherited] |
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.Handle(), OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myPrevPointType, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.SELECTED, and STANDARD_TYPE().
| void OCCViewer_ViewWindow::updateGravityCoords | ( | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::showEvent | ( | QShowEvent * | theEvent | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::hideEvent | ( | QHideEvent * | theEvent | ) | [virtual, slot, inherited] |
| void OCCViewer_ViewWindow::onMaximizedView | ( | ) | [virtual, slot, inherited] |
References OCCViewer_ViewWindow.isMaximized(), and OCCViewer_ViewWindow.setMaximized().
| void OCCViewer_ViewWindow.vpTransformationStarted | ( | OCCViewer_ViewWindow::OperationType | type | ) | [signal, inherited] |
| void OCCViewer_ViewWindow.vpTransformationFinished | ( | OCCViewer_ViewWindow::OperationType | type | ) | [signal, inherited] |
| void OCCViewer_ViewWindow.viewCloned | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void OCCViewer_ViewWindow.Show | ( | QShowEvent * | ) | [signal, inherited] |
| void OCCViewer_ViewWindow.Hide | ( | QHideEvent * | ) | [signal, inherited] |
| void OCCViewer_ViewWindow.maximized | ( | OCCViewer_ViewWindow * | , |
| bool | |||
| ) | [signal, inherited] |
| QImage OCCViewer_ViewWindow::dumpView | ( | ) | [virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OpenGLUtils_FrameBuffer.bind(), OCCViewer_ViewWindow.Handle(), OpenGLUtils_FrameBuffer.init(), OCCViewer_ViewWindow.myViewPort, and OpenGLUtils_FrameBuffer.unbind().
| bool OCCViewer_ViewWindow::dumpViewToFormat | ( | const QImage & | img, |
| const QString & | fileName, | ||
| const QString & | format | ||
| ) | [virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
Reimplemented in OCCViewer_ViewFrame.
References OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.
| 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().
| QString OCCViewer_ViewWindow::filter | ( | ) | const [protected, virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
| bool OCCViewer_ViewWindow::transformRequested | ( | ) | const [protected, inherited] |
References OCCViewer_ViewWindow.myOperation, and OCCViewer_ViewWindow.NOTHING.
| bool OCCViewer_ViewWindow::setTransformRequested | ( | OperationType | op | ) | [protected, inherited] |
| bool OCCViewer_ViewWindow::transformInProcess | ( | ) | const [protected, inherited] |
References OCCViewer_ViewWindow.myEventStarted.
| void OCCViewer_ViewWindow::setTransformInProcess | ( | bool | bOn | ) | [protected, inherited] |
References OCCViewer_ViewWindow.myEventStarted.
| void OCCViewer_ViewWindow::vpMousePressEvent | ( | QMouseEvent * | theEvent | ) | [protected, inherited] |
| theEvent | mouse event |
References OCCViewer_ViewWindow.activatePanning(), OCCViewer_ViewWindow.activateRotation(), OCCViewer_ViewWindow.activateZoom(), OCCViewer_ViewWindow.getButtonState(), OCCViewer_ViewWindow.Handle(), OCCViewer_ViewWindow.interactionStyle(), SUIT_ViewModel.KEY_FREE, l_mbPressEvent, SUIT_ViewWindow.mousePressed(), OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myPrevPointType, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.mySelectedPoint, OCCViewer_ViewWindow.mySetRotationPointDlg, OCCViewer_ViewWindow.myStartX, OCCViewer_ViewWindow.myStartY, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, OCCViewer_ViewWindow.PANGLOBAL, OCCViewer_ViewWindow.PANVIEW, OCCViewer_ViewWindow.ROTATE, OCCViewer_SetRotationPointDlg.setCoords(), OCCViewer_ViewWindow.setTransformInProcess(), OCCViewer_ViewPort3d.startRotation(), OCCViewer_ViewPort3d.startZoomAtPoint(), OCCViewer_SetRotationPointDlg.toggleChange(), OCCViewer_ViewWindow.transformRequested(), OCCViewer_ViewWindow.vpTransformationStarted(), OCCViewer_ViewWindow.WINDOWFIT, and OCCViewer_ViewWindow.ZOOMVIEW.
| void OCCViewer_ViewWindow::vpMouseReleaseEvent | ( | QMouseEvent * | theEvent | ) | [protected, inherited] |
| theEvent | mouse event |
References SUIT_ViewWindow.contextMenuRequested(), OCCViewer_ViewWindow.drawRect(), OCCViewer_ViewWindow.endDrawRect(), OCCViewer_ViewPort3d.endRotation(), OCCViewer_ViewPort3d.fitRect(), l_mbPressEvent, SUIT_Tools.makeRect(), SUIT_ViewWindow.mouseReleased(), OCCViewer_ViewWindow.myCurrX, OCCViewer_ViewWindow.myCurrY, OCCViewer_ViewWindow.myCurScale, OCCViewer_ViewWindow.myCurSketch, OCCViewer_ViewWindow.myDrawRect, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.mySketchers, OCCViewer_ViewWindow.myStartX, OCCViewer_ViewWindow.myStartY, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, OCCViewer_ViewWindow.PANGLOBAL, OCCViewer_ViewWindow.PANVIEW, OCCViewer_ViewWindow.resetState(), OCCViewer_ViewWindow.ROTATE, OCCViewer_ViewPort3d.setCenter(), OCCViewer_ViewSketcher.sketchButton(), OCCViewer_ViewWindow.WINDOWFIT, and OCCViewer_ViewWindow.ZOOMVIEW.
| void OCCViewer_ViewWindow::vpMouseMoveEvent | ( | QMouseEvent * | theEvent | ) | [protected, inherited] |
| theEvent | mouse event |
References OCCViewer_ViewWindow.activateSketching(), OCCViewer_ViewWindow.drawRect(), OCCViewer_ViewWindow.getViewPort(), OCCViewer_ViewWindow.interactionStyle(), OCCViewer_ViewSketcher.isDefault(), l_mbPressEvent, SUIT_ViewWindow.mouseMoving(), OCCViewer_ViewWindow.myCurrPointType, OCCViewer_ViewWindow.myCurrX, OCCViewer_ViewWindow.myCurrY, OCCViewer_ViewWindow.myCurSketch, OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myDrawRect, OCCViewer_ViewWindow.myEnableDrawMode, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.mypSketcher, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.mySelectedPoint, OCCViewer_ViewWindow.mySketchers, OCCViewer_ViewWindow.myStartX, OCCViewer_ViewWindow.myStartY, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewPort3d.pan(), OCCViewer_ViewWindow.PANGLOBAL, OCCViewer_ViewWindow.PANVIEW, OCCViewer_ViewPort3d.rotate(), OCCViewer_ViewWindow.ROTATE, OCCViewer_ViewSketcher.sketchButton(), SUIT_ViewModel.STANDARD, OCCViewer_ViewSketcher.type(), OCCViewer_ViewPort3d.zoom(), and OCCViewer_ViewWindow.ZOOMVIEW.
| void OCCViewer_ViewWindow::resetState | ( | ) | [protected, inherited] |
References OCCViewer_ViewWindow.myCursor, OCCViewer_ViewWindow.myCursorIsHand, OCCViewer_ViewWindow.myDrawRect, OCCViewer_ViewWindow.myOperation, OCCViewer_ViewWindow.myRotationPointSelection, OCCViewer_ViewWindow.myViewPort, OCCViewer_ViewWindow.NOTHING, OCCViewer_ViewWindow.setTransformInProcess(), OCCViewer_ViewWindow.setTransformRequested(), OCCViewer_ViewWindow.transformRequested(), and OCCViewer_ViewWindow.vpTransformationFinished().
| void OCCViewer_ViewWindow::drawRect | ( | ) | [protected, inherited] |
| void OCCViewer_ViewWindow::endDrawRect | ( | ) | [protected, inherited] |
References QtxRectRubberBand.clearGeometry(), and OCCViewer_ViewWindow.myRectBand.
| void OCCViewer_ViewWindow::createActions | ( | ) | [protected, inherited] |
References OCCViewer_ViewWindow.activateGlobalPanning(), OCCViewer_ViewWindow.activatePanning(), OCCViewer_ViewWindow.activateRotation(), OCCViewer_ViewWindow.activateWindowFit(), OCCViewer_ViewWindow.activateZoom(), OCCViewer_ViewWindow.AmbientId, OCCViewer_ViewWindow.AntiClockWiseId, OCCViewer_ViewWindow.AxialScaleId, OCCViewer_ViewWindow.BackId, OCCViewer_ViewWindow.BottomId, OCCViewer_ViewWindow.ChangeRotationPointId, OCCViewer_ViewWindow.ClippingId, OCCViewer_ViewWindow.ClockWiseId, OCCViewer_ViewWindow.CloneId, OCCViewer_ViewWindow.DumpId, OCCViewer_ViewWindow.FitAllId, OCCViewer_ViewWindow.FitRectId, OCCViewer_ViewWindow.FrontId, OCCViewer_ViewWindow.GlobalPanId, OCCViewer_ViewWindow.GraduatedAxesId, OCCViewer_ViewWindow.LeftId, QtxResourceMgr.loadPixmap(), OCCViewer_ViewWindow.MaximizedId, OCCViewer_ViewWindow.MemId, OCCViewer_ViewWindow.myClippingAction, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.mySetRotationPointAction, OCCViewer_ViewWindow.onAmbientToogle(), OCCViewer_ViewWindow.onAntiClockWiseView(), OCCViewer_ViewWindow.onAxialScale(), OCCViewer_ViewWindow.onBackView(), OCCViewer_ViewWindow.onBottomView(), OCCViewer_ViewWindow.onClipping(), OCCViewer_ViewWindow.onClockWiseView(), OCCViewer_ViewWindow.onCloneView(), SUIT_ViewWindow.onDumpView(), OCCViewer_ViewWindow.onFitAll(), OCCViewer_ViewWindow.onFrontView(), OCCViewer_ViewWindow.onGraduatedAxes(), OCCViewer_ViewWindow.onLeftView(), OCCViewer_ViewWindow.onMaximizedView(), OCCViewer_ViewWindow.onMemorizeView(), OCCViewer_ViewWindow.onResetView(), OCCViewer_ViewWindow.onRestoreView(), OCCViewer_ViewWindow.onRightView(), OCCViewer_ViewWindow.onSetRotationPoint(), OCCViewer_ViewWindow.onSwitchInteractionStyle(), OCCViewer_ViewWindow.onSwitchZoomingStyle(), OCCViewer_ViewWindow.onTopView(), OCCViewer_ViewWindow.onTrihedronShow(), OCCViewer_ViewWindow.PanId, QtxActionMgr.registerAction(), OCCViewer_ViewWindow.ResetId, SUIT_Session.resourceMgr(), OCCViewer_ViewWindow.RestoreId, OCCViewer_ViewWindow.RightId, OCCViewer_ViewWindow.RotationId, SUIT_Session.session(), OCCViewer_ViewWindow.SwitchInteractionStyleId, OCCViewer_ViewWindow.SwitchZoomingStyleId, SUIT_ViewWindow.toolMgr(), OCCViewer_ViewWindow.TopId, OCCViewer_Viewer.trihedronActivated(), OCCViewer_ViewWindow.TrihedronShowId, and OCCViewer_ViewWindow.ZoomId.
| void OCCViewer_ViewWindow::createToolBar | ( | ) | [protected, inherited] |
References SUIT_ViewWindow.action(), OCCViewer_ViewWindow.AmbientId, OCCViewer_ViewWindow.AntiClockWiseId, QtxActionToolMgr.append(), OCCViewer_ViewWindow.AxialScaleId, OCCViewer_ViewWindow.BackId, OCCViewer_ViewWindow.BottomId, OCCViewer_ViewWindow.ChangeRotationPointId, OCCViewer_ViewWindow.ClippingId, OCCViewer_ViewWindow.ClockWiseId, OCCViewer_ViewWindow.CloneId, QtxActionToolMgr.createToolBar(), OCCViewer_ViewWindow.DumpId, OCCViewer_ViewWindow.FitAllId, OCCViewer_ViewWindow.FitRectId, OCCViewer_ViewWindow.FrontId, OCCViewer_ViewWindow.GlobalPanId, OCCViewer_ViewWindow.GraduatedAxesId, QtxActionSet.insertAction(), OCCViewer_ViewWindow.LeftId, OCCViewer_ViewWindow.MaximizedId, OCCViewer_ViewWindow.MemId, OCCViewer_ViewWindow.my2dMode, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.No2dMode, OCCViewer_ViewWindow.PanId, OCCViewer_ViewWindow.ResetId, OCCViewer_ViewWindow.RestoreId, OCCViewer_ViewWindow.RightId, OCCViewer_ViewWindow.RotationId, OCCViewer_ViewWindow.SwitchInteractionStyleId, OCCViewer_ViewWindow.SwitchZoomingStyleId, SUIT_ViewWindow.toolMgr(), OCCViewer_ViewWindow.TopId, OCCViewer_Viewer.trihedronActivated(), OCCViewer_ViewWindow.TrihedronShowId, OCCViewer_ViewWindow.XYPlane, OCCViewer_ViewWindow.XZPlane, OCCViewer_ViewWindow.YZPlane, and OCCViewer_ViewWindow.ZoomId.
| OCCViewer_ViewWindow::OperationType OCCViewer_ViewWindow::getButtonState | ( | QMouseEvent * | theEvent, |
| int | theInteractionStyle | ||
| ) | [protected, virtual, inherited] |
| theEvent | mouse event |
References OCCViewer_ViewWindow.my2dMode, SUIT_ViewModel.myButtonMap, SUIT_ViewModel.myStateMap, OCCViewer_ViewWindow.No2dMode, OCCViewer_ViewWindow.NOTHING, SUIT_ViewModel.PAN, OCCViewer_ViewWindow.PANVIEW, OCCViewer_ViewWindow.ROTATE, SUIT_ViewModel.ZOOM, and OCCViewer_ViewWindow.ZOOMVIEW.
| viewAspect OCCViewer_ViewWindow::getViewParams | ( | ) | const [protected, inherited] |
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, OCCViewer_ViewWindow.Handle(), OCCViewer_Viewer.isTrihedronVisible(), viewAspect.isVisible, OCCViewer_ViewWindow.myCubeAxesDlg, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.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, inherited] |
| 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 OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.
| void OCCViewer_ViewWindow::onSketchingStarted | ( | ) | [protected, virtual, inherited] |
Unhilights detected entities. [ virtual protected ]
| void OCCViewer_ViewWindow::onSketchingFinished | ( | ) | [protected, virtual, inherited] |
Selection by rectangle or polygon. [ virtual protected ]
References OCCViewer_ViewSketcher.Accept, OCCViewer_ViewSketcher.buttonState(), OCCViewer_ViewSketcher.data(), OCCViewer_ViewManager.getOCCViewer(), SUIT_ViewWindow.getViewManager(), OCCViewer_ViewWindow.getViewPort(), OCCViewer_ViewWindow.Handle(), OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.mypSketcher, OCCViewer_Viewer.performSelectionChanged(), OCCViewer_ViewWindow.Polygon, OCCViewer_ViewWindow.Rect, OCCViewer_ViewSketcher.result(), and OCCViewer_ViewSketcher.type().
| OCCViewer_ViewSketcher * OCCViewer_ViewWindow::createSketcher | ( | int | type | ) | [protected, virtual, inherited] |
Creates default sketcher. [ virtual protected ]
References OCCViewer_ViewWindow.Polygon, and OCCViewer_ViewWindow.Rect.
| 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::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().
OCCViewer_ViewSketcher* OCCViewer_ViewWindow.mypSketcher [protected, inherited] |
QList<OCCViewer_ViewSketcher*> OCCViewer_ViewWindow.mySketchers [protected, inherited] |
int OCCViewer_ViewWindow.myCurSketch [protected, inherited] |
OperationType OCCViewer_ViewWindow.myOperation [protected, inherited] |
OCCViewer_Viewer* OCCViewer_ViewWindow.myModel [protected, inherited] |
OCCViewer_ViewPort3d* OCCViewer_ViewWindow.myViewPort [protected, inherited] |
OCCViewer_CubeAxesDlg* OCCViewer_ViewWindow.myCubeAxesDlg [protected, inherited] |
RotationPointType OCCViewer_ViewWindow.myCurrPointType [protected, inherited] |
RotationPointType OCCViewer_ViewWindow.myPrevPointType [protected, inherited] |
gp_Pnt OCCViewer_ViewWindow.mySelectedPoint [protected, inherited] |
bool OCCViewer_ViewWindow.myRotationPointSelection [protected, inherited] |
int OCCViewer_ViewWindow.myRestoreFlag [protected, inherited] |
int OCCViewer_ViewWindow.myStartX [protected, inherited] |
int OCCViewer_ViewWindow.myStartY [protected, inherited] |
int OCCViewer_ViewWindow.myCurrX [protected, inherited] |
int OCCViewer_ViewWindow.myCurrY [protected, inherited] |
bool OCCViewer_ViewWindow.myEventStarted [protected, inherited] |
bool OCCViewer_ViewWindow.myCursorIsHand [protected, inherited] |
bool OCCViewer_ViewWindow.myDrawRect [protected, inherited] |
bool OCCViewer_ViewWindow.myEnableDrawMode [protected, inherited] |
bool OCCViewer_ViewWindow.myPaintersRedrawing [protected, inherited] |
QCursor OCCViewer_ViewWindow.myCursor [protected, inherited] |
double OCCViewer_ViewWindow.myCurScale [protected, inherited] |
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited] |
SUIT_ViewManager* SUIT_ViewWindow.myManager [protected, inherited] |