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:2650
virtual bool isVSync() const
Definition: OCCViewer_ViewWindow.cxx:3483
virtual void returnTo3dView()
Definition: OCCViewer_ViewWindow.cxx:3260
virtual void setProjectionType(int)
Definition: OCCViewer_ViewWindow.cxx:1899
virtual void showStaticTrihedron(bool)
Definition: OCCViewer_ViewWindow.cxx:3548
virtual void onRightView()
Perform "right view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1758
virtual void activateSketching(int)
Definition: OCCViewer_ViewWindow.cxx:3113
virtual OCCViewer_ViewPort3d * getViewPort()
Definition: OCCViewer_ViewWindow.cxx:3219
virtual void onFrontView()
Perform "front view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1668
virtual void setAnaglyphFilter(const int)
Definition: OCCViewer_ViewWindow.cxx:3361
virtual QColor backgroundColor() const
Definition: OCCViewer_ViewWindow.cxx:3527
virtual QImage dumpView()
Dump view window contents to the pixmap.
Definition: OCCViewer_ViewWindow.cxx:2368
virtual double stereographicFocusValue() const
Definition: OCCViewer_ViewWindow.cxx:3411
virtual int zoomingStyle() const
Get current zooming style.
Definition: OCCViewer_ViewWindow.cxx:2349
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:2478
virtual int projectionType() const
Definition: OCCViewer_ViewWindow.cxx:3325
virtual void onLeftView()
Perform "left view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1740
virtual int stereographicFocusType() const
Definition: OCCViewer_ViewWindow.cxx:3400
virtual void setSelectionStyle(SelectionStyle)
Definition: OCCViewer_ViewWindow.cxx:2284
virtual bool isReverseStereo() const
Definition: OCCViewer_ViewWindow.cxx:3462
virtual double interocularDistanceValue() const
Definition: OCCViewer_ViewWindow.cxx:3442
virtual void onTopView()
Perform "top view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1704
virtual int stereoType() const
Definition: OCCViewer_ViewWindow.cxx:3350
virtual void setZoomingStyle(const int)
Set current zooming style.
Definition: OCCViewer_ViewWindow.cxx:2358
virtual bool enableDrawMode(bool)
Enable / disable draw rect (rubber band) mode.
Definition: OCCViewer_ViewWindow.cxx:452
virtual void setQuadBufferSupport(const bool)
Definition: OCCViewer_ViewWindow.cxx:3495
virtual SelectionStyle selectionStyle() const
Definition: OCCViewer_ViewWindow.cxx:2275
virtual void setVSync(const bool)
Definition: OCCViewer_ViewWindow.cxx:3473
virtual void onMaximizedView()
Definition: OCCViewer_ViewWindow.cxx:3255
virtual OCCViewer_ViewSketcher * getSketcher(const int) const
Definition: OCCViewer_ViewWindow.cxx:3097
virtual bool isPreselectionEnabled() const
Indicates whether preselection is enabled.
Definition: OCCViewer_ViewWindow.cxx:3695
virtual void initSketchers()
Definition: OCCViewer_ViewWindow.cxx:3088
virtual void setInterocularDistance(const int, const double)
Definition: OCCViewer_ViewWindow.cxx:3422
virtual int anaglyphFilter() const
Definition: OCCViewer_ViewWindow.cxx:3375
virtual bool isCuttingPlane()
Check if any cutting plane is enabled.
Definition: OCCViewer_ViewWindow.cxx:2531
virtual void setBackgroundColor(const QColor &)
Definition: OCCViewer_ViewWindow.cxx:3533
virtual Qtx::BackgroundData background() const
Definition: OCCViewer_ViewWindow.cxx:3538
virtual int interactionStyle() const
Get current interaction style.
Definition: OCCViewer_ViewWindow.cxx:2331
virtual bool isSelectionEnabled() const
Indicates whether selection is enabled.
Definition: OCCViewer_ViewWindow.cxx:3713
virtual int interocularDistanceType() const
Definition: OCCViewer_ViewWindow.cxx:3431
virtual void onAntiClockWiseView()
Rotate view 90 degrees conterclockwise.
Definition: OCCViewer_ViewWindow.cxx:1786
SelectionStyle
Definition: OCCViewer_ViewWindow.h:173
virtual bool dumpViewToFormat(const QImage &, const QString &fileName, const QString &format)
Definition: OCCViewer_ViewWindow.cxx:2446
virtual void onFitAll()
Perform "fit all" transformation.
Definition: OCCViewer_ViewWindow.cxx:1961
virtual void enableSelection(bool)
Enables/disables selection.
Definition: OCCViewer_ViewWindow.cxx:3722
virtual void onBackView()
Perform "back view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1686
virtual bool isQuadBufferSupport() const
Definition: OCCViewer_ViewWindow.cxx:3505
virtual SUIT_CameraProperties cameraProperties()
Definition: OCCViewer_ViewWindow.cxx:3591
virtual void setStereoType(const int)
Definition: OCCViewer_ViewWindow.cxx:3341
virtual void performRestoring(const viewAspect &, bool=false)
Restore view parameters.
Definition: OCCViewer_ViewWindow.cxx:2095
virtual void setBackground(const Qtx::BackgroundData &)
Definition: OCCViewer_ViewWindow.cxx:3543
virtual void onViewFitAll()
Perform 'fit all' operation.
Definition: OCCViewer_ViewWindow.cxx:1660
virtual void onBottomView()
Perform "bottom view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1722
virtual void onClockWiseView()
Rotate view 90 degrees clockwise.
Definition: OCCViewer_ViewWindow.cxx:1776
virtual void setReverseStereo(const bool)
Definition: OCCViewer_ViewWindow.cxx:3453
virtual void onResetView()
Perform "reset view" transformation.
Definition: OCCViewer_ViewWindow.cxx:1798
virtual OCCViewer_ViewWindow * getView(const int) const
Definition: OCCViewer_ViewWindow.cxx:338
virtual void setInteractionStyle(const int)
Set current interaction style.
Definition: OCCViewer_ViewWindow.cxx:2340
virtual void enablePreselection(bool)
Enables/disables preselection.
Definition: OCCViewer_ViewWindow.cxx:3704
virtual void setVisualParameters(const QString ¶meters)
Restore visual parameters of the view window.
Definition: OCCViewer_ViewWindow.cxx:2819
virtual void setStereographicFocus(const int, const double)
Definition: OCCViewer_ViewWindow.cxx:3391
virtual void updateEnabledDrawMode()
Update state of enable draw mode state.
Definition: OCCViewer_ViewWindow.cxx:463
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