23 #ifndef OCCVIEWER_VIEWFRAME_H
24 #define OCCVIEWER_VIEWFRAME_H
30 #include <TopAbs_ShapeEnum.hxx>
40 enum { MAIN_VIEW, BOTTOM_RIGHT=MAIN_VIEW,
BOTTOM_LEFT, TOP_LEFT, TOP_RIGHT };
58 virtual void setCuttingPlane(
bool on,
const double x = 0 ,
const double y = 0 ,
const double z = 0,
59 const double dx = 0,
const double dy = 0,
const double dz = 1);
167 virtual bool dumpViewToFormat(
const QImage&,
const QString&,
const QString& );
170 void onContextMenuRequested(QContextMenuEvent*);
176 void createSubViews();
177 void splitSubViews();
#define OCCVIEWER_EXPORT
Definition: OCCViewer.h:33
Definition: OCCViewer_ViewFrame.h:37
virtual OCCViewer_ViewPort3d * getViewPort()
Definition: OCCViewer_ViewFrame.h:51
QList< OCCViewer_ViewWindow * > myViews
Definition: OCCViewer_ViewFrame.h:180
virtual void updateGravityCoords()
Definition: OCCViewer_ViewFrame.h:158
virtual void onFrontView()
Definition: OCCViewer_ViewFrame.h:132
QGridLayout * myLayout
Definition: OCCViewer_ViewFrame.h:181
QList< int > myViewsMode
Definition: OCCViewer_ViewFrame.h:185
virtual void activateStartPointSelection(TopAbs_ShapeEnum)
Definition: OCCViewer_ViewFrame.h:157
virtual int interactionStyle() const
Get current interaction style.
Definition: OCCViewer_ViewFrame.h:72
OCCViewer_ViewWindow * myMaximizedView
Definition: OCCViewer_ViewFrame.h:182
@ BOTTOM_LEFT
Definition: OCCViewer_ViewFrame.h:40
virtual void onClockWiseView()
Definition: OCCViewer_ViewFrame.h:139
virtual void onSetRotationPoint(bool)
Definition: OCCViewer_ViewFrame.h:148
virtual void activateRotation()
Definition: OCCViewer_ViewFrame.h:145
virtual void onAxialScale()
Definition: OCCViewer_ViewFrame.h:149
virtual void activateGlobalPanning()
Definition: OCCViewer_ViewFrame.h:147
virtual bool isCuttingPlane()
Check if any cutting plane is enabled.
Definition: OCCViewer_ViewFrame.h:63
int mySplitMode
Definition: OCCViewer_ViewFrame.h:184
virtual void onSwitchInteractionStyle(bool)
Definition: OCCViewer_ViewFrame.h:153
virtual void onLeftView()
Definition: OCCViewer_ViewFrame.h:137
virtual void onTopView()
Definition: OCCViewer_ViewFrame.h:135
virtual void activateSetRotationGravity()
Definition: OCCViewer_ViewFrame.h:155
virtual void performRestoring(const viewAspect &theAspect)
Definition: OCCViewer_ViewFrame.h:54
virtual void onResetView()
Definition: OCCViewer_ViewFrame.h:141
virtual void activateZoom()
Definition: OCCViewer_ViewFrame.h:143
virtual void onBackView()
Definition: OCCViewer_ViewFrame.h:134
OCCViewer_ViewWindow * myActiveView
Definition: OCCViewer_ViewFrame.h:183
virtual void initLayout()
Internal initialization.
Definition: OCCViewer_ViewFrame.h:55
virtual bool isPreselectionEnabled() const
Indicates whether preselection is enabled.
Definition: OCCViewer_ViewFrame.h:110
virtual int zoomingStyle() const
Get current zooming style.
Definition: OCCViewer_ViewFrame.h:104
virtual OCCViewer_ViewSketcher * getSketcher(const int i)
Definition: OCCViewer_ViewFrame.h:69
virtual void onMemorizeView()
Definition: OCCViewer_ViewFrame.h:151
virtual void activatePanning()
Definition: OCCViewer_ViewFrame.h:146
virtual void initSketchers()
Definition: OCCViewer_ViewFrame.h:68
virtual void onAmbientToogle()
Definition: OCCViewer_ViewFrame.h:150
OCCViewer_ViewWindow * myPopupRequestedView
Definition: OCCViewer_ViewFrame.h:187
virtual void onAntiClockWiseView()
Definition: OCCViewer_ViewFrame.h:140
virtual void onRestoreView()
Definition: OCCViewer_ViewFrame.h:152
virtual void onRightView()
Definition: OCCViewer_ViewFrame.h:138
virtual void onBottomView()
Definition: OCCViewer_ViewFrame.h:136
virtual bool isSelectionEnabled() const
Indicates whether selection is enabled.
Definition: OCCViewer_ViewFrame.h:107
virtual void activateWindowFit()
Definition: OCCViewer_ViewFrame.h:144
virtual void activateSketching(int i)
Definition: OCCViewer_ViewFrame.h:70
virtual bool eventFilter(QObject *watched, QEvent *e)
Customize event handling.
Definition: OCCViewer_ViewFrame.h:117
virtual void activateSetRotationSelected(double, double, double)
Definition: OCCViewer_ViewFrame.h:156
Definition: OCCViewer_ViewPort3d.h:43
Definition: OCCViewer_ViewSketcher.h:47
Definition: OCCViewer_ViewWindow.h:147
virtual QString getVisualParameters()
Get visual parameters of this view window.
Definition: OCCViewer_ViewWindow.cxx:2643
virtual bool isVSync() const
Definition: OCCViewer_ViewWindow.cxx:3471
virtual void returnTo3dView()
Definition: OCCViewer_ViewWindow.cxx:3248
virtual void setProjectionType(int)
Definition: OCCViewer_ViewWindow.cxx:1893
virtual void showStaticTrihedron(bool)
Definition: OCCViewer_ViewWindow.cxx:3536
virtual void onRightView()
Perform "right view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1752
virtual void activateSketching(int)
Definition: OCCViewer_ViewWindow.cxx:3106
virtual OCCViewer_ViewPort3d * getViewPort()
Definition: OCCViewer_ViewWindow.cxx:3207
virtual void onFrontView()
Perform "front view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1662
virtual void setAnaglyphFilter(const int)
Definition: OCCViewer_ViewWindow.cxx:3349
virtual QColor backgroundColor() const
Definition: OCCViewer_ViewWindow.cxx:3515
virtual QImage dumpView()
Dump view window contents to the pixmap.
Definition: OCCViewer_ViewWindow.cxx:2362
virtual double stereographicFocusValue() const
Definition: OCCViewer_ViewWindow.cxx:3399
virtual int zoomingStyle() const
Get current zooming style.
Definition: OCCViewer_ViewWindow.cxx:2343
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.
Definition: OCCViewer_ViewWindow.cxx:2472
virtual int projectionType() const
Definition: OCCViewer_ViewWindow.cxx:3313
virtual void onLeftView()
Perform "left view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1734
virtual int stereographicFocusType() const
Definition: OCCViewer_ViewWindow.cxx:3388
virtual void setSelectionStyle(SelectionStyle)
Definition: OCCViewer_ViewWindow.cxx:2278
virtual bool isReverseStereo() const
Definition: OCCViewer_ViewWindow.cxx:3450
virtual double interocularDistanceValue() const
Definition: OCCViewer_ViewWindow.cxx:3430
virtual void onTopView()
Perform "top view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1698
virtual int stereoType() const
Definition: OCCViewer_ViewWindow.cxx:3338
virtual void setZoomingStyle(const int)
Set current zooming style.
Definition: OCCViewer_ViewWindow.cxx:2352
virtual bool enableDrawMode(bool)
Enable / disable draw rect (rubber band) mode.
Definition: OCCViewer_ViewWindow.cxx:448
virtual void setQuadBufferSupport(const bool)
Definition: OCCViewer_ViewWindow.cxx:3483
virtual SelectionStyle selectionStyle() const
Definition: OCCViewer_ViewWindow.cxx:2269
virtual void setVSync(const bool)
Definition: OCCViewer_ViewWindow.cxx:3461
virtual void onMaximizedView()
Definition: OCCViewer_ViewWindow.cxx:3243
virtual OCCViewer_ViewSketcher * getSketcher(const int) const
Definition: OCCViewer_ViewWindow.cxx:3090
virtual bool isPreselectionEnabled() const
Indicates whether preselection is enabled.
Definition: OCCViewer_ViewWindow.cxx:3683
virtual void initSketchers()
Definition: OCCViewer_ViewWindow.cxx:3081
virtual void setInterocularDistance(const int, const double)
Definition: OCCViewer_ViewWindow.cxx:3410
virtual int anaglyphFilter() const
Definition: OCCViewer_ViewWindow.cxx:3363
virtual bool isCuttingPlane()
Check if any cutting plane is enabled.
Definition: OCCViewer_ViewWindow.cxx:2524
virtual void setBackgroundColor(const QColor &)
Definition: OCCViewer_ViewWindow.cxx:3521
virtual Qtx::BackgroundData background() const
Definition: OCCViewer_ViewWindow.cxx:3526
virtual int interactionStyle() const
Get current interaction style.
Definition: OCCViewer_ViewWindow.cxx:2325
virtual bool isSelectionEnabled() const
Indicates whether selection is enabled.
Definition: OCCViewer_ViewWindow.cxx:3701
virtual int interocularDistanceType() const
Definition: OCCViewer_ViewWindow.cxx:3419
virtual void onAntiClockWiseView()
Rotate view 90 degrees conterclockwise.
Definition: OCCViewer_ViewWindow.cxx:1780
SelectionStyle
Definition: OCCViewer_ViewWindow.h:173
virtual bool dumpViewToFormat(const QImage &, const QString &fileName, const QString &format)
Definition: OCCViewer_ViewWindow.cxx:2440
virtual void onFitAll()
Perform "fit all" transformation.
Definition: OCCViewer_ViewWindow.cxx:1955
virtual void enableSelection(bool)
Enables/disables selection.
Definition: OCCViewer_ViewWindow.cxx:3710
virtual void onBackView()
Perform "back view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1680
virtual bool isQuadBufferSupport() const
Definition: OCCViewer_ViewWindow.cxx:3493
virtual SUIT_CameraProperties cameraProperties()
Definition: OCCViewer_ViewWindow.cxx:3579
virtual void setStereoType(const int)
Definition: OCCViewer_ViewWindow.cxx:3329
virtual void performRestoring(const viewAspect &, bool=false)
Restore view parameters.
Definition: OCCViewer_ViewWindow.cxx:2089
virtual void setBackground(const Qtx::BackgroundData &)
Definition: OCCViewer_ViewWindow.cxx:3531
virtual void onViewFitAll()
Perform 'fit all' operation.
Definition: OCCViewer_ViewWindow.cxx:1654
virtual void onBottomView()
Perform "bottom view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1716
virtual void onClockWiseView()
Rotate view 90 degrees clockwise.
Definition: OCCViewer_ViewWindow.cxx:1770
virtual void setReverseStereo(const bool)
Definition: OCCViewer_ViewWindow.cxx:3441
virtual void onResetView()
Perform "reset view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1792
virtual OCCViewer_ViewWindow * getView(const int) const
Definition: OCCViewer_ViewWindow.cxx:337
virtual void setInteractionStyle(const int)
Set current interaction style.
Definition: OCCViewer_ViewWindow.cxx:2334
virtual void enablePreselection(bool)
Enables/disables preselection.
Definition: OCCViewer_ViewWindow.cxx:3692
virtual void setVisualParameters(const QString ¶meters)
Restore visual parameters of the view window.
Definition: OCCViewer_ViewWindow.cxx:2812
virtual void setStereographicFocus(const int, const double)
Definition: OCCViewer_ViewWindow.cxx:3379
virtual void updateEnabledDrawMode()
Update state of enable draw mode state.
Definition: OCCViewer_ViewWindow.cxx:459
Definition: OCCViewer_ViewModel.h:77
For more information see QT documentation.
Definition: SUIT_Application.h:42
Stores background data.
Definition: Qtx.h:178
Base class for Camera Properties.
Definition: SUIT_CameraProperties.h:29
Definition: SUIT_Desktop.h:47
Definition: SUIT_ViewManager.h:50
Definition: SUIT_ViewWindow.h:42
virtual void setViewManager(SUIT_ViewManager *)
Definition: SUIT_ViewWindow.cxx:76
bool event(QEvent *)
Definition: SUIT_ViewWindow.cxx:182
virtual void setDropDownButtons(bool)
Set buttons mode to drop-down (on = true) or ligned (on = false)
Definition: SUIT_ViewWindow.cxx:276
virtual void onDumpView()
Definition: SUIT_ViewWindow.cxx:165
Definition: OCCViewer_ViewWindow.h:45