Version: 9.15.0
OCCViewer_ViewWindow Class Reference

#include <OCCViewer_ViewWindow.h>

Inheritance diagram for OCCViewer_ViewWindow:
Inheritance graph

Public Types

enum  ActionId {
  DumpId , FitAllId , FitRectId , FitSelectionId ,
  ZoomId , PanId , GlobalPanId , ChangeRotationPointId ,
  RotationId , FrontId , BackId , TopId ,
  BottomId , LeftId , RightId , ClockWiseId ,
  AntiClockWiseId , ResetId , CloneId , ClippingId ,
  MemId , RestoreId , TrihedronShowId , AxialScaleId ,
  GraduatedAxesId , AmbientId , SwitchInteractionStyleId , SwitchZoomingStyleId ,
  SwitchPreselectionId , SwitchSelectionId , MaximizedId , SynchronizeId ,
  ReturnTo3dViewId , OrthographicId , PerspectiveId , StereoId ,
  RayTracingId , EnvTextureId , LightSourceId , RectangleSelectionStyleId ,
  PolygonSelectionStyleId , CircleSelectionStyleId , ViewCubeShowId , UserId
}
 
enum  OperationType {
  NOVIEWOP , PANVIEW , ZOOMVIEW , ROTATE ,
  PANGLOBAL , WINDOWFIT , FITALLVIEW , FITSELECTION ,
  RESETVIEW , FRONTVIEW , BACKVIEW , TOPVIEW ,
  BOTTOMVIEW , LEFTVIEW , RIGHTVIEW , CLOCKWISEVIEW ,
  ANTICLOCKWISEVIEW , PROJECTION
}
 
enum  RotationPointType { BBCENTER , SELECTED }
 
enum  SketchingType { NoSketching , Rect , Polygon }
 
enum  SelectionStyle { RectStyle , PolygonStyle , CyrcleStyle }
 
enum  Mode2dType { No2dMode , XYPlane , XZPlane , YZPlane }
 
enum  ProjectionType { Orthographic , Perspective , Stereo }
 
enum  StereoType {
  QuadBuffer , Anaglyph , RowInterlaced , ColumnInterlaced ,
  ChessBoard , SideBySide , OverUnder , SoftPageFlip ,
  NumberOfModes
}
 
enum  AnaglyphFilter { RedCyan , YellowBlue , GreenMagenta }
 
enum  FocusIODType { Absolute , Relative }
 

Public Slots

virtual void onFrontView ()
 Perform "front view" transformation. More...
 
virtual void onViewFitAll ()
 Perform 'fit all' operation. More...
 
virtual void onBackView ()
 Perform "back view" transformation. More...
 
virtual void onClipping (bool on)
 called if clipping operation is activated / deactivated. More...
 
virtual void onTopView ()
 Perform "top view" transformation. More...
 
virtual void onBottomView ()
 Perform "bottom view" transformation. More...
 
virtual void onLeftView ()
 Perform "left view" transformation. More...
 
virtual void onRightView ()
 Perform "right view" transformation. More...
 
virtual void onClockWiseView ()
 Rotate view 90 degrees clockwise. More...
 
virtual void onAntiClockWiseView ()
 Rotate view 90 degrees conterclockwise. More...
 
virtual void onProjectionType (QAction *theAction)
 Set the given projection mode. More...
 
virtual void onStereoType (bool activate)
 Sets Stereo projection mode. More...
 
virtual void onProjectionType ()
 Restore the view. More...
 
virtual void onResetView ()
 Perform "reset view" transformation. More...
 
virtual void onFitAll ()
 Perform "fit all" transformation. More...
 
virtual void onFitSelection ()
 Perform "fit selection" transformation. More...
 
virtual void activateZoom ()
 Start zooming operation. More...
 
virtual void activateWindowFit ()
 Starts fit operation. More...
 
virtual void activateRotation ()
 Start rotation operation. More...
 
virtual void activatePanning ()
 Start panning operation. More...
 
virtual void activateGlobalPanning ()
 Start global panning operation. More...
 
virtual void onSetRotationPoint (bool on)
 Called if 'change rotation point' operation is activated. More...
 
virtual void onCloneView ()
 Create one more window with same content. More...
 
virtual void onAxialScale ()
 
virtual void onGraduatedAxes ()
 
virtual void onAmbientToogle ()
 
virtual void onMemorizeView ()
 Store view parameters. More...
 
virtual void onRestoreView ()
 Restore view parameters. More...
 
virtual void onTrihedronShow (bool)
 Called when action "show/hide trihedron" is activated. More...
 
virtual void onViewCubeShow (bool)
 Called when action "show/hide view cube" is activated. More...
 
virtual void setRestoreFlag ()
 Set restore flag. More...
 
virtual void onSwitchInteractionStyle (bool on)
 Switches "keyboard free" interaction style on/off. More...
 
virtual void onSwitchZoomingStyle (bool on)
 Toogles advanced zooming style (relatively to the cursor position) on/off. More...
 
virtual void onSwitchPreselection (bool on)
 Toggles preselection (highlighting) on/off. More...
 
virtual void onSwitchSelection (bool on)
 Toggles selection on/off. More...
 
virtual void onSwitchSelectionStyle (QAction *theAction)
 Switches style of advanced multiple selection by Poligon/Circle. More...
 
virtual void onRayTracing ()
 
virtual void onEnvTexture ()
 
virtual void onLightSource ()
 
virtual void onPanning ()
 
virtual void activateSetRotationGravity ()
 Set the gravity center as a rotation point. More...
 
virtual void activateSetRotationSelected (double theX, double theY, double theZ)
 Set the point selected by the user as a rotation point. More...
 
virtual void activateStartPointSelection (TopAbs_ShapeEnum)
 Start the shape selection process. More...
 
virtual void updateGravityCoords ()
 Update gravity center in the "Set Rotation Point" dialog box. More...
 
virtual void showEvent (QShowEvent *)
 Handle show event. More...
 
virtual void hideEvent (QHideEvent *)
 Handle hide event. More...
 
virtual void onMaximizedView ()
 
virtual void returnTo3dView ()
 
- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
void setVisible (bool)
 

Signals

void vpTransformationStarted (OCCViewer_ViewWindow::OperationType type)
 
void vpTransformationFinished (OCCViewer_ViewWindow::OperationType type)
 
void viewCloned (SUIT_ViewWindow *)
 
void Show (QShowEvent *)
 
void Hide (QHideEvent *)
 
void maximized (OCCViewer_ViewWindow *, bool)
 
void returnedTo3d ()
 
- Signals inherited from SUIT_ViewWindow
void tryClosing (SUIT_ViewWindow *)
 
void closing (SUIT_ViewWindow *)
 
void mousePressed (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseReleased (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseMoving (SUIT_ViewWindow *, QMouseEvent *)
 
void wheeling (SUIT_ViewWindow *, QWheelEvent *)
 
void keyPressed (SUIT_ViewWindow *, QKeyEvent *)
 
void keyReleased (SUIT_ViewWindow *, QKeyEvent *)
 
void contextMenuRequested (QContextMenuEvent *e)
 
void viewModified (SUIT_ViewWindow *)
 
void vpStartRotate (int, int, qint64)
 
void vpRotate (int, int, qint64)
 
void vpEndRotate (int, int, qint64)
 

Public Member Functions

 OCCViewer_ViewWindow (SUIT_Desktop *theDesktop, OCCViewer_Viewer *theModel)
 Constructor. More...
 
virtual ~OCCViewer_ViewWindow ()
 Destructor. More...
 
virtual OCCViewer_ViewWindowgetView (const int) const
 
virtual OCCViewer_ViewPort3dgetViewPort ()
 
virtual bool eventFilter (QObject *watched, QEvent *e)
 Customize event handling. More...
 
virtual void performRestoring (const viewAspect &, bool=false)
 Restore view parameters. More...
 
virtual void initLayout ()
 Internal initialization. More...
 
virtual bool enableDrawMode (bool)
 Enable / disable draw rect (rubber band) mode. More...
 
virtual void updateEnabledDrawMode ()
 Update state of enable draw mode state. More...
 
virtual void setCuttingPlane (bool on, const double x=0, const double y=0, const double z=0, const double dx=0, const double dy=0, const double dz=1)
 Set parameters of the cutting plane. More...
 
virtual void setCuttingPlane (bool on, const gp_Pln thePln)
 
virtual bool isCuttingPlane ()
 Check if any cutting plane is enabled. More...
 
virtual QString getVisualParameters ()
 Get visual parameters of this view window. More...
 
virtual void setVisualParameters (const QString &parameters)
 Restore visual parameters of the view window. More...
 
virtual void initSketchers ()
 
virtual OCCViewer_ViewSketchergetSketcher (const int) const
 
virtual void activateSketching (int)
 
virtual int interactionStyle () const
 Get current interaction style. More...
 
virtual void setInteractionStyle (const int)
 Set current interaction style. More...
 
virtual int zoomingStyle () const
 Get current zooming style. More...
 
virtual void setZoomingStyle (const int)
 Set current zooming style. More...
 
virtual bool isPreselectionEnabled () const
 Indicates whether preselection is enabled. More...
 
virtual void enablePreselection (bool)
 Enables/disables preselection. More...
 
virtual bool isSelectionEnabled () const
 Indicates whether selection is enabled. More...
 
virtual void enableSelection (bool)
 Enables/disables selection. More...
 
virtual int projectionType () const
 
virtual void setProjectionType (int)
 
virtual SelectionStyle selectionStyle () const
 
virtual void setSelectionStyle (SelectionStyle)
 
virtual int stereoType () const
 
virtual void setStereoType (const int)
 
virtual int anaglyphFilter () const
 
virtual void setAnaglyphFilter (const int)
 
virtual void setStereographicFocus (const int, const double)
 
virtual int stereographicFocusType () const
 
virtual double stereographicFocusValue () const
 
virtual void setInterocularDistance (const int, const double)
 
virtual int interocularDistanceType () const
 
virtual double interocularDistanceValue () const
 
virtual bool isReverseStereo () const
 
virtual void setReverseStereo (const bool)
 
virtual bool isVSync () const
 
virtual void setVSync (const bool)
 
virtual bool isQuadBufferSupport () const
 
virtual void setQuadBufferSupport (const bool)
 
virtual bool isAutomaticZoom () const
 
virtual void setAutomaticZoom (const bool)
 
virtual void enableAutoRotation (const bool)
 
void setTransformEnabled (const OperationType, const bool)
 
bool transformEnabled (const OperationType) const
 
void set2dMode (Mode2dType)
 
Mode2dType get2dMode () const
 
void setMaximized (bool, bool=true)
 
bool isMaximized () const
 
void setReturnedTo3dView (bool=true)
 
void setSketcherStyle (bool enable)
 
bool isSketcherStyle () const
 
virtual QColor backgroundColor () const
 
virtual void setBackgroundColor (const QColor &)
 
virtual void showStaticTrihedron (bool)
 
virtual Qtx::BackgroundData background () const
 
virtual void setBackground (const Qtx::BackgroundData &)
 
virtual const viewAspectListgetViewAspects ()
 
virtual void appendViewAspect (const viewAspect &)
 
virtual void updateViewAspects (const viewAspectList &)
 
virtual void clearViewAspects ()
 
virtual SUIT_CameraProperties cameraProperties ()
 
bool isActionVisible (ActionId theId) const
 
void setActionVisible (ActionId theId, bool isVisible)
 
void resetState ()
 Reset the viewport to its initial state ( no transformations in process etc. ) More...
 
virtual QImage dumpView ()
 Dump view window contents to the pixmap. More...
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
- Public Member Functions inherited from SUIT_ViewWindow
 SUIT_ViewWindow (SUIT_Desktop *)
 
virtual ~SUIT_ViewWindow ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
SUIT_ViewManagergetViewManager () 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
 
QtxActionToolMgrtoolMgr () const
 
virtual void setDropDownButtons (bool)
 Set buttons mode to drop-down (on = true) or ligned (on = false) More...
 
bool dropDownButtons () const
 Get current buttons mode. More...
 
virtual bool isAutoRotationEnabled () const
 

Protected Slots

void synchronize (SUIT_ViewWindow *)
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Protected Member Functions

virtual QString filter () const
 
bool isOpenGlStereoSupport () const
 
bool transformRequested () const
 
bool setTransformRequested (OperationType)
 Start delayed viewer operation. More...
 
bool transformInProcess () const
 
void setTransformInProcess (bool)
 
void vpMousePressEvent (QMouseEvent *theEvent)
 Handle mouse press event. More...
 
void vpMouseReleaseEvent (QMouseEvent *theEvent)
 Handle mouse release event. More...
 
void vpMouseMoveEvent (QMouseEvent *theEvent)
 Handle mouse move event. More...
 
void drawRect ()
 Draw rubber band rectangle. More...
 
void endDrawRect ()
 Clear rubber band rectangle on the end on the dragging operation. More...
 
void createActions ()
 Create actions. More...
 
void createToolBar ()
 Create toolbar. More...
 
virtual OperationType getButtonState (QMouseEvent *theEvent, int theInteractionStyle)
 Detect viewer operation according the the mouse button pressed and key modifiers used. More...
 
viewAspect getViewParams () const
 Get the visual parameters of the view window. More...
 
bool computeGravityCenter (double &theX, double &theY, double &theZ)
 Compute the gravity center. More...
 
void projAndPanToGravity (V3d_TypeOfOrientation CamOri)
 
virtual void onSketchingStarted ()
 
virtual void onSketchingFinished ()
 
virtual OCCViewer_ViewSketchercreateSketcher (int)
 
void saveCursor ()
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual bool action (const int)
 
virtual QActionsynchronizeAction ()
 

Protected Attributes

OCCViewer_ViewSketchermypSketcher
 
QList< OCCViewer_ViewSketcher * > mySketchers
 
int myCurSketch
 
OperationType myOperation
 
OCCViewer_ViewermyModel
 
OCCViewer_ViewPort3dmyViewPort
 
OCCViewer_CubeAxesDlgmyCubeAxesDlg
 
RotationPointType myCurrPointType
 
RotationPointType myPrevPointType
 
gp_Pnt mySelectedPoint
 
bool myRotationPointSelection
 
int myRestoreFlag
 
int myStartX
 
int myStartY
 
qint64 myStartTime
 
int myCurrX
 
int myCurrY
 
qint64 myCurrTime
 
bool myEventStarted
 
bool myCursorIsHand
 
bool myDrawRect
 
bool myEnableDrawMode
 
bool myDrawRectEnabled
 
bool myPaintersRedrawing
 
bool IsSketcherStyle
 
bool myIsKeyFree
 
bool myAutomaticZoom
 
QCursor myCursor
 
double myCurScale
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Private Types

typedef QMap< OperationType, bool > MapOfTransformStatus
 

Private Member Functions

 Handle (V3d_Plane) myReserveClipPlane
 

Private Attributes

OCCViewer_AxialScaleDlgmyScalingDlg
 
OCCViewer_SetRotationPointDlgmySetRotationPointDlg
 
QtxActionmySetRotationPointAction
 
QtxRectRubberBandmyRectBand
 selection rectangle rubber band More...
 
OCCViewer_AutoRotatemyAutoRotate
 
bool mySelectionEnabled
 
bool myPreselectionEnabled
 
int myInteractionStyle
 
MapOfTransformStatus myStatus
 
Mode2dType my2dMode
 
viewAspectList myViewAspects
 
bool myPanningByBtn
 

Additional Inherited Members

- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 

Member Typedef Documentation

◆ MapOfTransformStatus

Member Enumeration Documentation

◆ ActionId

Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectionId 
ZoomId 
PanId 
GlobalPanId 
ChangeRotationPointId 
RotationId 
FrontId 
BackId 
TopId 
BottomId 
LeftId 
RightId 
ClockWiseId 
AntiClockWiseId 
ResetId 
CloneId 
ClippingId 
MemId 
RestoreId 
TrihedronShowId 
AxialScaleId 
GraduatedAxesId 
AmbientId 
SwitchInteractionStyleId 
SwitchZoomingStyleId 
SwitchPreselectionId 
SwitchSelectionId 
MaximizedId 
SynchronizeId 
ReturnTo3dViewId 
OrthographicId 
PerspectiveId 
StereoId 
RayTracingId 
EnvTextureId 
LightSourceId 
RectangleSelectionStyleId 
PolygonSelectionStyleId 
CircleSelectionStyleId 
ViewCubeShowId 
UserId 

◆ AnaglyphFilter

Enumerator
RedCyan 
YellowBlue 
GreenMagenta 

◆ FocusIODType

Enumerator
Absolute 
Relative 

◆ Mode2dType

Enumerator
No2dMode 
XYPlane 
XZPlane 
YZPlane 

◆ OperationType

Enumerator
NOVIEWOP 
PANVIEW 
ZOOMVIEW 
ROTATE 
PANGLOBAL 
WINDOWFIT 
FITALLVIEW 
FITSELECTION 
RESETVIEW 
FRONTVIEW 
BACKVIEW 
TOPVIEW 
BOTTOMVIEW 
LEFTVIEW 
RIGHTVIEW 
CLOCKWISEVIEW 
ANTICLOCKWISEVIEW 
PROJECTION 

◆ ProjectionType

Enumerator
Orthographic 
Perspective 
Stereo 

◆ RotationPointType

Enumerator
BBCENTER 
SELECTED 

◆ SelectionStyle

Enumerator
RectStyle 
PolygonStyle 
CyrcleStyle 

◆ SketchingType

Enumerator
NoSketching 
Rect 
Polygon 

◆ StereoType

Enumerator
QuadBuffer 
Anaglyph 
RowInterlaced 
ColumnInterlaced 
ChessBoard 
SideBySide 
OverUnder 
SoftPageFlip 
NumberOfModes 

Constructor & Destructor Documentation

◆ OCCViewer_ViewWindow()

◆ ~OCCViewer_ViewWindow()

OCCViewer_ViewWindow::~OCCViewer_ViewWindow ( )
virtual

Destructor.

References endDrawRect(), myAutoRotate, and mySketchers.

Member Function Documentation

◆ activateGlobalPanning

void OCCViewer_ViewWindow::activateGlobalPanning ( )
virtualslot

Start global panning operation.

Sets the corresponding cursor for the widget.

References OCCViewer_ViewPort3d::fitAll(), Handle(), imageCrossCursor, myCurScale, myViewPort, PANGLOBAL, saveCursor(), and setTransformRequested().

◆ activatePanning

void OCCViewer_ViewWindow::activatePanning ( )
virtualslot

Start panning operation.

Sets the corresponding cursor for the widget.

References myCursorIsHand, myOperation, myViewPort, PANVIEW, saveCursor(), setTransformRequested(), and transformRequested().

◆ activateRotation

void OCCViewer_ViewWindow::activateRotation ( )
virtualslot

Start rotation operation.

Sets the corresponding cursor for the widget.

References imageRotateCursor, myCursorIsHand, myOperation, myViewPort, ROTATE, saveCursor(), setTransformRequested(), and transformRequested().

◆ activateSetRotationGravity

void OCCViewer_ViewWindow::activateSetRotationGravity ( )
virtualslot

◆ activateSetRotationSelected

void OCCViewer_ViewWindow::activateSetRotationSelected ( double  theX,
double  theY,
double  theZ 
)
virtualslot

Set the point selected by the user as a rotation point.

Parameters
theXX coordinate of the rotation point
theYY coordinate of the rotation point
theZZ coordinate of the rotation point

References Handle(), myCurrPointType, myCursor, myCursorIsHand, myModel, myOperation, myPrevPointType, myRotationPointSelection, mySelectedPoint, myViewPort, NOVIEWOP, and SELECTED.

◆ activateSketching()

void OCCViewer_ViewWindow::activateSketching ( int  type)
virtual

◆ activateStartPointSelection

void OCCViewer_ViewWindow::activateStartPointSelection ( TopAbs_ShapeEnum  theShapeType)
virtualslot

◆ activateWindowFit

void OCCViewer_ViewWindow::activateWindowFit ( )
virtualslot

Starts fit operation.

Sets the corresponding cursor for the widget.

References myCursorIsHand, myOperation, myViewPort, saveCursor(), setTransformRequested(), transformRequested(), and WINDOWFIT.

◆ activateZoom

void OCCViewer_ViewWindow::activateZoom ( )
virtualslot

Start zooming operation.

Sets the corresponding cursor for the widget.

References imageZoomCursor, myCursorIsHand, myOperation, myViewPort, saveCursor(), setTransformRequested(), transformRequested(), and ZOOMVIEW.

◆ anaglyphFilter()

int OCCViewer_ViewWindow::anaglyphFilter ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References GreenMagenta, Handle(), myViewPort, RedCyan, and YellowBlue.

◆ appendViewAspect()

void OCCViewer_ViewWindow::appendViewAspect ( const viewAspect aParams)
virtual

Appends new view aspect

Parameters
aParams- new view aspects

References myViewAspects.

◆ background()

Qtx::BackgroundData OCCViewer_ViewWindow::background ( ) const
virtual

◆ backgroundColor()

QColor OCCViewer_ViewWindow::backgroundColor ( ) const
virtual

◆ cameraProperties()

◆ clearViewAspects()

void OCCViewer_ViewWindow::clearViewAspects ( )
virtual

Clears view aspects

References myViewAspects.

◆ computeGravityCenter()

bool OCCViewer_ViewWindow::computeGravityCenter ( double &  theX,
double &  theY,
double &  theZ 
)
protected

Compute the gravity center.

Parameters
theXused to return X coordinate of the gravity center
theYused to return Y coordinate of the gravity center
theZused to return Z coordinate of the gravity center
Returns
true if the gravity center is computed

References Handle(), and myViewPort.

◆ createActions()

void OCCViewer_ViewWindow::createActions ( )
protected

Create actions.

References SUIT_ViewWindow::action(), activateGlobalPanning(), activateRotation(), activateWindowFit(), activateZoom(), AmbientId, AntiClockWiseId, AxialScaleId, BackId, QtxResourceMgr::booleanValue(), BottomId, ChangeRotationPointId, CircleSelectionStyleId, ClippingId, ClockWiseId, CloneId, DumpId, EnvTextureId, FitAllId, FitRectId, FitSelectionId, FrontId, GlobalPanId, GraduatedAxesId, LeftId, LightSourceId, QtxResourceMgr::loadPixmap(), MaximizedId, MemId, my2dMode, myModel, mySetRotationPointAction, No2dMode, onAmbientToogle(), onAntiClockWiseView(), onAxialScale(), onBackView(), onBottomView(), onClipping(), onClockWiseView(), onCloneView(), SUIT_ViewWindow::onDumpView(), onEnvTexture(), onFitAll(), onFitSelection(), onFrontView(), onGraduatedAxes(), onLeftView(), onLightSource(), onMaximizedView(), onMemorizeView(), onPanning(), onProjectionType(), onRayTracing(), onResetView(), onRestoreView(), onRightView(), onSetRotationPoint(), onStereoType(), onSwitchInteractionStyle(), onSwitchPreselection(), onSwitchSelection(), onSwitchSelectionStyle(), onSwitchZoomingStyle(), onTopView(), onTrihedronShow(), onViewCubeShow(), OrthographicId, PanId, PerspectiveId, PolygonSelectionStyleId, RayTracingId, RectangleSelectionStyleId, QtxActionMgr::registerAction(), ResetId, SUIT_Session::resourceMgr(), RestoreId, returnTo3dView(), ReturnTo3dViewId, RightId, RotationId, SUIT_Session::session(), StereoId, SwitchInteractionStyleId, SwitchPreselectionId, SwitchSelectionId, SwitchZoomingStyleId, SUIT_ViewWindow::synchronizeAction(), SynchronizeId, SUIT_ViewWindow::toolMgr(), TopId, OCCViewer_Viewer::trihedronActivated(), TrihedronShowId, OCCViewer_Viewer::viewCubeActivated(), ViewCubeShowId, and ZoomId.

◆ createSketcher()

OCCViewer_ViewSketcher * OCCViewer_ViewWindow::createSketcher ( int  type)
protectedvirtual

Creates default sketcher. [ virtual protected ]

References Polygon, and Rect.

◆ createToolBar()

◆ drawRect()

void OCCViewer_ViewWindow::drawRect ( )
protected

◆ dumpView()

QImage OCCViewer_ViewWindow::dumpView ( )
virtual

Dump view window contents to the pixmap.

Returns
pixmap containing all scene rendered in the window

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

References OpenGLUtils_FrameBuffer::bind(), OCCViewer::color(), Handle(), OpenGLUtils_FrameBuffer::init(), myViewPort, and OpenGLUtils_FrameBuffer::unbind().

◆ dumpViewToFormat()

bool OCCViewer_ViewWindow::dumpViewToFormat ( const QImage &  img,
const QString &  fileName,
const QString &  format 
)
virtual

Saves image to file according to the format

Parameters
image- image
fileName- name of file
format- string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

References myViewPort.

◆ enableAutoRotation()

void OCCViewer_ViewWindow::enableAutoRotation ( const bool  isEnable)
virtual

◆ enableDrawMode()

bool OCCViewer_ViewWindow::enableDrawMode ( bool  on)
virtual

Enable / disable draw rect (rubber band) mode.

Reimplemented in OCCViewer_ViewFrame.

References myDrawRectEnabled, and updateEnabledDrawMode().

◆ enablePreselection()

void OCCViewer_ViewWindow::enablePreselection ( bool  theIsToEnable)
virtual

Enables/disables preselection.

Parameters
theIsToEnableif true - preselection will be enabled

Reimplemented in OCCViewer_ViewFrame.

References onSwitchPreselection().

◆ enableSelection()

void OCCViewer_ViewWindow::enableSelection ( bool  theIsToEnable)
virtual

Enables/disables selection.

Parameters
theIsToEnableif true - selection will be enabled

Reimplemented in OCCViewer_ViewFrame.

References onSwitchSelection().

◆ endDrawRect()

void OCCViewer_ViewWindow::endDrawRect ( )
protected

Clear rubber band rectangle on the end on the dragging operation.

References QtxRectRubberBand::clearGeometry(), and myRectBand.

◆ eventFilter()

◆ filter()

QString OCCViewer_ViewWindow::filter ( ) const
protectedvirtual
Returns
filters for image files

Reimplemented from SUIT_ViewWindow.

◆ get2dMode()

Mode2dType OCCViewer_ViewWindow::get2dMode ( ) const
inline

◆ getButtonState()

OCCViewer_ViewWindow::OperationType OCCViewer_ViewWindow::getButtonState ( QMouseEvent *  theEvent,
int  theInteractionStyle 
)
protectedvirtual

Detect viewer operation according the the mouse button pressed and key modifiers used.

Parameters
theEventmouse event
Returns
type of the operation

References my2dMode, SUIT_ViewModel::myButtonMap, SUIT_ViewModel::myStateMap, No2dMode, NOVIEWOP, SUIT_ViewModel::PAN, PANVIEW, ROTATE, SUIT_ViewModel::ROTATE, SUIT_ViewModel::ZOOM, and ZOOMVIEW.

◆ getSketcher()

OCCViewer_ViewSketcher * OCCViewer_ViewWindow::getSketcher ( const int  typ) const
virtual

◆ getView()

OCCViewer_ViewWindow * OCCViewer_ViewWindow::getView ( const int  mode) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References get2dMode().

◆ getViewAspects()

const viewAspectList & OCCViewer_ViewWindow::getViewAspects ( )
virtual
Returns
const reference to list of view aspects

References myViewAspects.

◆ getViewParams()

viewAspect OCCViewer_ViewWindow::getViewParams ( ) const
protected

Get the visual parameters of the view window.

Returns
visual parameters of view window

References viewAspect::atX, viewAspect::atY, viewAspect::atZ, OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, OCCViewer_CubeAxesDlg::GetData(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_Viewer::isTrihedronVisible(), OCCViewer_Viewer::isViewCubeVisible(), viewAspect::isVisible, myCubeAxesDlg, myModel, myViewPort, OCCViewer_AxisWidget::AxisData::Name, viewAspect::name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, viewAspect::projX, viewAspect::projY, viewAspect::projZ, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, viewAspect::size, OCCViewer_AxisWidget::AxisData::TickmarkLength, OCCViewer_Viewer::trihedronSize(), viewAspect::twist, and viewAspect::vcIsVisible.

◆ getViewPort()

OCCViewer_ViewPort3d * OCCViewer_ViewWindow::getViewPort ( )
virtual

Reimplemented in OCCViewer_ViewFrame.

References myViewPort.

◆ getVisualParameters()

QString OCCViewer_ViewWindow::getVisualParameters ( )
virtual

Get visual parameters of this view window.

Returns
visual parameters of view window

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteCustom, OCCViewer_ClipPlane::AbsoluteOrientation, aTexture, viewAspect::atX, viewAspect::atY, viewAspect::atZ, background(), Qtx::backgroundToString(), viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, OCCViewer_Viewer::getClipPlanes(), getViewParams(), getViewPort(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_ClipPlane::IsOn, viewAspect::isVisible, OCCViewer_ClipPlane::Mode, myModel, OCCViewer_ClipPlane::OrientationType, viewAspect::projX, viewAspect::projY, viewAspect::projZ, OCCViewer_ClipPlane::Relative, OCCViewer_ClipPlane::RelativeOrientation, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, viewAspect::size, viewAspect::twist, OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.

◆ Handle()

OCCViewer_ViewWindow::Handle ( V3d_Plane  )
private

◆ Hide

void OCCViewer_ViewWindow::Hide ( QHideEvent *  )
signal

◆ hideEvent

void OCCViewer_ViewWindow::hideEvent ( QHideEvent *  theEvent)
virtualslot

Handle hide event.

Emits Hide() signal.

Parameters
theEventhide event

References Hide().

◆ initLayout()

◆ initSketchers()

void OCCViewer_ViewWindow::initSketchers ( )
virtual

Reimplemented in OCCViewer_ViewFrame.

References createSketcher(), mySketchers, Polygon, and Rect.

◆ interactionStyle()

int OCCViewer_ViewWindow::interactionStyle ( ) const
virtual

Get current interaction style.

Returns
interaction style

Reimplemented in OCCViewer_ViewFrame.

References myInteractionStyle.

◆ interocularDistanceType()

int OCCViewer_ViewWindow::interocularDistanceType ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), myViewPort, and Relative.

◆ interocularDistanceValue()

double OCCViewer_ViewWindow::interocularDistanceValue ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ isActionVisible()

bool OCCViewer_ViewWindow::isActionVisible ( ActionId  theId) const

◆ isAutomaticZoom()

bool OCCViewer_ViewWindow::isAutomaticZoom ( ) const
virtual

References myAutomaticZoom.

◆ isCuttingPlane()

bool OCCViewer_ViewWindow::isCuttingPlane ( )
virtual

Check if any cutting plane is enabled.

Returns
true if at least one cutting plane is enabled

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ isMaximized()

bool OCCViewer_ViewWindow::isMaximized ( ) const

◆ isOpenGlStereoSupport()

bool OCCViewer_ViewWindow::isOpenGlStereoSupport ( ) const
protected

◆ isPreselectionEnabled()

bool OCCViewer_ViewWindow::isPreselectionEnabled ( ) const
virtual

Indicates whether preselection is enabled.

Returns
true if preselection is enabled

Reimplemented in OCCViewer_ViewFrame.

References myPreselectionEnabled.

◆ isQuadBufferSupport()

bool OCCViewer_ViewWindow::isQuadBufferSupport ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myModel.

◆ isReverseStereo()

bool OCCViewer_ViewWindow::isReverseStereo ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ isSelectionEnabled()

bool OCCViewer_ViewWindow::isSelectionEnabled ( ) const
virtual

Indicates whether selection is enabled.

Returns
true if selection is enabled

Reimplemented in OCCViewer_ViewFrame.

References mySelectionEnabled.

◆ isSketcherStyle()

bool OCCViewer_ViewWindow::isSketcherStyle ( ) const

References IsSketcherStyle.

◆ isVSync()

bool OCCViewer_ViewWindow::isVSync ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myModel.

◆ maximized

void OCCViewer_ViewWindow::maximized ( OCCViewer_ViewWindow ,
bool   
)
signal

◆ onAmbientToogle

void OCCViewer_ViewWindow::onAmbientToogle ( )
virtualslot

References Handle(), and myViewPort.

◆ onAntiClockWiseView

void OCCViewer_ViewWindow::onAntiClockWiseView ( )
virtualslot

◆ onAxialScale

void OCCViewer_ViewWindow::onAxialScale ( )
virtualslot

Creates one more window with same content

References myModel, myScalingDlg, and OCCViewer_AxialScaleDlg::Update().

◆ onBackView

void OCCViewer_ViewWindow::onBackView ( )
virtualslot

◆ onBottomView

void OCCViewer_ViewWindow::onBottomView ( )
virtualslot

◆ onClipping

void OCCViewer_ViewWindow::onClipping ( bool  theIsOn)
virtualslot

called if clipping operation is activated / deactivated.

Enables/disables clipping plane displaying.

\parma on action state

References QtxActionMgr::action(), ClippingId, OCCViewer_Viewer::getClippingDlg(), SUIT_ViewWindow::getViewManager(), SUIT_ViewManager::getViews(), myModel, OCCViewer_Viewer::setClippingDlg(), and SUIT_ViewWindow::toolMgr().

◆ onClockWiseView

void OCCViewer_ViewWindow::onClockWiseView ( )
virtualslot

◆ onCloneView

void OCCViewer_ViewWindow::onCloneView ( )
virtualslot

◆ onEnvTexture

void OCCViewer_ViewWindow::onEnvTexture ( )
virtualslot

◆ onFitAll

void OCCViewer_ViewWindow::onFitAll ( )
virtualslot

◆ onFitSelection

void OCCViewer_ViewWindow::onFitSelection ( )
virtualslot

Perform "fit selection" transformation.

References FITSELECTION, getView(), getViewPort(), myModel, vpTransformationFinished(), and vpTransformationStarted().

◆ onFrontView

void OCCViewer_ViewWindow::onFrontView ( )
virtualslot

◆ onGraduatedAxes

void OCCViewer_ViewWindow::onGraduatedAxes ( )
virtualslot

Shows Graduated Axes dialog

References myCubeAxesDlg, and OCCViewer_CubeAxesDlg::Update().

◆ onLeftView

void OCCViewer_ViewWindow::onLeftView ( )
virtualslot

◆ onLightSource

void OCCViewer_ViewWindow::onLightSource ( )
virtualslot

◆ onMaximizedView

void OCCViewer_ViewWindow::onMaximizedView ( )
virtualslot

References isMaximized(), and setMaximized().

◆ onMemorizeView

void OCCViewer_ViewWindow::onMemorizeView ( )
virtualslot

Store view parameters.

References appendViewAspect(), and getViewParams().

◆ onPanning

◆ onProjectionType [1/2]

void OCCViewer_ViewWindow::onProjectionType ( )
virtualslot

◆ onProjectionType [2/2]

void OCCViewer_ViewWindow::onProjectionType ( QAction theAction)
virtualslot

Set the given projection mode.

Set the given projection mode: Orthographic or Perspective.

References SUIT_ViewWindow::action(), Handle(), myModel, myViewPort, onViewFitAll(), Orthographic, OrthographicId, Perspective, PerspectiveId, OCCViewer_Viewer::setProjectionType(), StereoId, and SUIT_ViewWindow::toolMgr().

◆ onRayTracing

void OCCViewer_ViewWindow::onRayTracing ( )
virtualslot

◆ onResetView

void OCCViewer_ViewWindow::onResetView ( )
virtualslot

Perform "reset view" transformation.

Sets default orientation of the viewport camera.

References OCCViewer_ViewPort3d::fitAll(), myViewPort, onProjectionType(), RESETVIEW, vpTransformationFinished(), and vpTransformationStarted().

◆ onRestoreView

void OCCViewer_ViewWindow::onRestoreView ( )
virtualslot

◆ onRightView

void OCCViewer_ViewWindow::onRightView ( )
virtualslot

◆ onSetRotationPoint

void OCCViewer_ViewWindow::onSetRotationPoint ( bool  on)
virtualslot

◆ onSketchingFinished()

◆ onSketchingStarted()

void OCCViewer_ViewWindow::onSketchingStarted ( )
protectedvirtual

Unhilights detected entities. [ virtual protected ]

◆ onStereoType

◆ onSwitchInteractionStyle

void OCCViewer_ViewWindow::onSwitchInteractionStyle ( bool  on)
virtualslot

◆ onSwitchPreselection

void OCCViewer_ViewWindow::onSwitchPreselection ( bool  on)
virtualslot

◆ onSwitchSelection

◆ onSwitchSelectionStyle

void OCCViewer_ViewWindow::onSwitchSelectionStyle ( QAction theAction)
virtualslot

◆ onSwitchZoomingStyle

void OCCViewer_ViewWindow::onSwitchZoomingStyle ( bool  on)
virtualslot

Toogles advanced zooming style (relatively to the cursor position) on/off.

References QtxActionMgr::action(), myViewPort, OCCViewer_ViewPort3d::setAdvancedZoomingEnabled(), SwitchZoomingStyleId, and SUIT_ViewWindow::toolMgr().

◆ onTopView

void OCCViewer_ViewWindow::onTopView ( )
virtualslot

◆ onTrihedronShow

void OCCViewer_ViewWindow::onTrihedronShow ( bool  show)
virtualslot

Called when action "show/hide trihedron" is activated.

References myModel, and OCCViewer_Viewer::setTrihedronShown().

◆ onViewCubeShow

void OCCViewer_ViewWindow::onViewCubeShow ( bool  show)
virtualslot

Called when action "show/hide view cube" is activated.

References myModel, and OCCViewer_Viewer::setViewCubeShown().

◆ onViewFitAll

void OCCViewer_ViewWindow::onViewFitAll ( )
virtualslot

Perform 'fit all' operation.

References OCCViewer_ViewPort3d::fitAll(), and myViewPort.

◆ performRestoring()

void OCCViewer_ViewWindow::performRestoring ( const viewAspect anItem,
bool  baseParamsOnly = false 
)
virtual

Restore view parameters.

Parameters
anItemview parameters

References OCCViewer_CubeAxesDlg::ApplyData(), viewAspect::atX, viewAspect::atY, viewAspect::atZ, viewAspect::centerX, viewAspect::centerY, OCCViewer_AxisWidget::AxisData::Color, OCCViewer_AxisWidget::AxisData::DrawName, OCCViewer_AxisWidget::AxisData::DrawTickmarks, OCCViewer_AxisWidget::AxisData::DrawValues, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), viewAspect::isVisible, myCubeAxesDlg, myModel, myRestoreFlag, myViewPort, OCCViewer_AxisWidget::AxisData::Name, OCCViewer_AxisWidget::AxisData::NameColor, OCCViewer_AxisWidget::AxisData::NbValues, OCCViewer_AxisWidget::AxisData::Offset, viewAspect::projX, viewAspect::projY, viewAspect::projZ, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, OCCViewer_CubeAxesDlg::SetData(), OCCViewer_Viewer::setTrihedronShown(), OCCViewer_Viewer::setTrihedronSize(), OCCViewer_Viewer::setViewCubeShown(), viewAspect::size, OCCViewer_AxisWidget::AxisData::TickmarkLength, viewAspect::twist, and viewAspect::vcIsVisible.

◆ projAndPanToGravity()

void OCCViewer_ViewWindow::projAndPanToGravity ( V3d_TypeOfOrientation  CamOri)
protected

◆ projectionType()

int OCCViewer_ViewWindow::projectionType ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), myViewPort, Orthographic, Perspective, and Stereo.

◆ resetState()

void OCCViewer_ViewWindow::resetState ( )

◆ returnedTo3d

void OCCViewer_ViewWindow::returnedTo3d ( )
signal

◆ returnTo3dView

void OCCViewer_ViewWindow::returnTo3dView ( )
virtualslot

References setReturnedTo3dView().

◆ saveCursor()

void OCCViewer_ViewWindow::saveCursor ( )
protected

Save old cursor. [ protected ]

References OCCViewer_ViewPort3d::getDefaultCursor(), myCursor, and myViewPort.

◆ selectionStyle()

OCCViewer_ViewWindow::SelectionStyle OCCViewer_ViewWindow::selectionStyle ( ) const
virtual

◆ set2dMode()

void OCCViewer_ViewWindow::set2dMode ( Mode2dType  theType)

References my2dMode.

◆ setActionVisible()

void OCCViewer_ViewWindow::setActionVisible ( ActionId  theId,
bool  isVisible 
)

◆ setAnaglyphFilter()

void OCCViewer_ViewWindow::setAnaglyphFilter ( const int  type)
virtual

Reimplemented in OCCViewer_ViewFrame.

References GreenMagenta, Handle(), myViewPort, RedCyan, and YellowBlue.

◆ setAutomaticZoom()

void OCCViewer_ViewWindow::setAutomaticZoom ( const bool  isOn)
virtual

References myAutomaticZoom.

◆ setBackground()

void OCCViewer_ViewWindow::setBackground ( const Qtx::BackgroundData theBackground)
virtual

◆ setBackgroundColor()

void OCCViewer_ViewWindow::setBackgroundColor ( const QColor &  theColor)
virtual

◆ setCuttingPlane() [1/2]

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

Set parameters of the cutting plane.

Parameters
onif true, cutting plane is enabled
xX position of plane point
yY position of plane point
zZ position of plane point
dxX coordinate of plane normal
dyY coordinate of plane normal
dzZ coordinate of plane normal

Reimplemented in OCCViewer_ViewFrame.

References Handle(), myModel, and myViewPort.

◆ setCuttingPlane() [2/2]

void OCCViewer_ViewWindow::setCuttingPlane ( bool  on,
const gp_Pln  thePln 
)
virtual

Reimplemented in OCCViewer_ViewFrame.

References setCuttingPlane().

◆ setInteractionStyle()

void OCCViewer_ViewWindow::setInteractionStyle ( const int  theStyle)
virtual

Set current interaction style.

Parameters
theStyleinteraction style

Reimplemented in OCCViewer_ViewFrame.

References SUIT_ViewModel::KEY_FREE, and onSwitchInteractionStyle().

◆ setInterocularDistance()

void OCCViewer_ViewWindow::setInterocularDistance ( const int  type,
const double  value 
)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ setMaximized()

◆ setProjectionType()

◆ setQuadBufferSupport()

void OCCViewer_ViewWindow::setQuadBufferSupport ( const bool  enable)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myModel.

◆ setRestoreFlag

void OCCViewer_ViewWindow::setRestoreFlag ( )
virtualslot

Set restore flag.

References myRestoreFlag.

◆ setReturnedTo3dView()

void OCCViewer_ViewWindow::setReturnedTo3dView ( bool  isVisible3dView = true)

◆ setReverseStereo()

void OCCViewer_ViewWindow::setReverseStereo ( const bool  reverse)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ setSelectionStyle()

◆ setSketcherStyle()

void OCCViewer_ViewWindow::setSketcherStyle ( bool  enable)

References IsSketcherStyle.

◆ setStereographicFocus()

void OCCViewer_ViewWindow::setStereographicFocus ( const int  type,
const double  value 
)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ setStereoType()

void OCCViewer_ViewWindow::setStereoType ( const int  type)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ setTransformEnabled()

void OCCViewer_ViewWindow::setTransformEnabled ( const OperationType  id,
const bool  on 
)

Set enabled state of transformation (rotate, zoom, etc)

References myStatus, and NOVIEWOP.

◆ setTransformInProcess()

void OCCViewer_ViewWindow::setTransformInProcess ( bool  bOn)
protected

References myEventStarted.

◆ setTransformRequested()

bool OCCViewer_ViewWindow::setTransformRequested ( OperationType  op)
protected

Start delayed viewer operation.

References myOperation, myViewPort, NOVIEWOP, and transformEnabled().

◆ setVisualParameters()

void OCCViewer_ViewWindow::setVisualParameters ( const QString &  parameters)
virtual

Restore visual parameters of the view window.

Parameters
parametersvisual parameters of view window

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

References OCCViewer_ClipPlane::Absolute, OCCViewer_ClipPlane::AbsoluteOrientation, aTexture, viewAspect::atX, viewAspect::atY, viewAspect::atZ, viewAspect::centerX, viewAspect::centerY, viewAspect::eyeX, viewAspect::eyeY, viewAspect::eyeZ, getViewPort(), viewAspect::gtColorBX, viewAspect::gtColorBY, viewAspect::gtColorBZ, viewAspect::gtColorGX, viewAspect::gtColorGY, viewAspect::gtColorGZ, viewAspect::gtColorRX, viewAspect::gtColorRY, viewAspect::gtColorRZ, viewAspect::gtDrawNameX, viewAspect::gtDrawNameY, viewAspect::gtDrawNameZ, viewAspect::gtDrawTickmarksX, viewAspect::gtDrawTickmarksY, viewAspect::gtDrawTickmarksZ, viewAspect::gtDrawValuesX, viewAspect::gtDrawValuesY, viewAspect::gtDrawValuesZ, viewAspect::gtIsVisible, viewAspect::gtNameColorBX, viewAspect::gtNameColorBY, viewAspect::gtNameColorBZ, viewAspect::gtNameColorGX, viewAspect::gtNameColorGY, viewAspect::gtNameColorGZ, viewAspect::gtNameColorRX, viewAspect::gtNameColorRY, viewAspect::gtNameColorRZ, viewAspect::gtNameX, viewAspect::gtNameY, viewAspect::gtNameZ, viewAspect::gtNbValuesX, viewAspect::gtNbValuesY, viewAspect::gtNbValuesZ, viewAspect::gtOffsetX, viewAspect::gtOffsetY, viewAspect::gtOffsetZ, viewAspect::gtTickmarkLengthX, viewAspect::gtTickmarkLengthY, viewAspect::gtTickmarkLengthZ, Handle(), OCCViewer_ClipPlane::IsOn, viewAspect::isVisible, OCCViewer_ClipPlane::Mode, myModel, OCCViewer_ClipPlane::OrientationType, performRestoring(), viewAspect::projX, viewAspect::projY, viewAspect::projZ, OCCViewer_ClipPlane::Relative, OCCViewer_ClipPlane::RelativeOrientation, viewAspect::scale, viewAspect::scaleX, viewAspect::scaleY, viewAspect::scaleZ, setBackground(), OCCViewer_Viewer::setClipPlanes(), viewAspect::size, Qtx::stringToBackground(), viewAspect::twist, OCCViewer_ClipPlane::X, OCCViewer_ClipPlane::Y, and OCCViewer_ClipPlane::Z.

◆ setVSync()

void OCCViewer_ViewWindow::setVSync ( const bool  enable)
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myModel.

◆ setZoomingStyle()

void OCCViewer_ViewWindow::setZoomingStyle ( const int  theStyle)
virtual

Set current zooming style.

Parameters
theStylezooming style

Reimplemented in OCCViewer_ViewFrame.

References onSwitchZoomingStyle().

◆ Show

void OCCViewer_ViewWindow::Show ( QShowEvent *  )
signal

◆ showEvent

void OCCViewer_ViewWindow::showEvent ( QShowEvent *  theEvent)
virtualslot

Handle show event.

Emits Show() signal.

Parameters
theEventshow event

References Show().

◆ showStaticTrihedron()

void OCCViewer_ViewWindow::showStaticTrihedron ( bool  on)
virtual

◆ stereographicFocusType()

int OCCViewer_ViewWindow::stereographicFocusType ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), myViewPort, and Relative.

◆ stereographicFocusValue()

double OCCViewer_ViewWindow::stereographicFocusValue ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

◆ stereoType()

int OCCViewer_ViewWindow::stereoType ( ) const
virtual

Reimplemented in OCCViewer_ViewFrame.

References Handle(), myViewPort, and QuadBuffer.

◆ synchronize

◆ transformEnabled()

bool OCCViewer_ViewWindow::transformEnabled ( const OperationType  id) const
Returns
enabled state of transformation (rotate, zoom, etc)

References myStatus.

◆ transformInProcess()

bool OCCViewer_ViewWindow::transformInProcess ( ) const
protected

References myEventStarted.

◆ transformRequested()

bool OCCViewer_ViewWindow::transformRequested ( ) const
protected

References myOperation, and NOVIEWOP.

◆ updateEnabledDrawMode()

void OCCViewer_ViewWindow::updateEnabledDrawMode ( )
virtual

◆ updateGravityCoords

void OCCViewer_ViewWindow::updateGravityCoords ( )
virtualslot

◆ updateViewAspects()

void OCCViewer_ViewWindow::updateViewAspects ( const viewAspectList aViewList)
virtual

Replaces old view aspects by new ones

Parameters
aViewList- list of new view aspects

References myViewAspects.

◆ viewCloned

void OCCViewer_ViewWindow::viewCloned ( SUIT_ViewWindow )
signal

◆ vpMouseMoveEvent()

◆ vpMousePressEvent()

◆ vpMouseReleaseEvent()

◆ vpTransformationFinished

void OCCViewer_ViewWindow::vpTransformationFinished ( OCCViewer_ViewWindow::OperationType  type)
signal

◆ vpTransformationStarted

void OCCViewer_ViewWindow::vpTransformationStarted ( OCCViewer_ViewWindow::OperationType  type)
signal

◆ zoomingStyle()

int OCCViewer_ViewWindow::zoomingStyle ( ) const
virtual

Get current zooming style.

Returns
zooming style

Reimplemented in OCCViewer_ViewFrame.

References OCCViewer_ViewPort3d::isAdvancedZoomingEnabled(), and myViewPort.

Member Data Documentation

◆ IsSketcherStyle

bool OCCViewer_ViewWindow::IsSketcherStyle
protected

◆ my2dMode

Mode2dType OCCViewer_ViewWindow::my2dMode
private

◆ myAutomaticZoom

bool OCCViewer_ViewWindow::myAutomaticZoom
protected

◆ myAutoRotate

OCCViewer_AutoRotate* OCCViewer_ViewWindow::myAutoRotate
private

◆ myCubeAxesDlg

OCCViewer_CubeAxesDlg* OCCViewer_ViewWindow::myCubeAxesDlg
protected

◆ myCurrPointType

RotationPointType OCCViewer_ViewWindow::myCurrPointType
protected

◆ myCurrTime

qint64 OCCViewer_ViewWindow::myCurrTime
protected

◆ myCurrX

int OCCViewer_ViewWindow::myCurrX
protected

◆ myCurrY

int OCCViewer_ViewWindow::myCurrY
protected

◆ myCurScale

double OCCViewer_ViewWindow::myCurScale
protected

◆ myCurSketch

int OCCViewer_ViewWindow::myCurSketch
protected

◆ myCursor

QCursor OCCViewer_ViewWindow::myCursor
protected

◆ myCursorIsHand

bool OCCViewer_ViewWindow::myCursorIsHand
protected

◆ myDrawRect

bool OCCViewer_ViewWindow::myDrawRect
protected

◆ myDrawRectEnabled

bool OCCViewer_ViewWindow::myDrawRectEnabled
protected

◆ myEnableDrawMode

bool OCCViewer_ViewWindow::myEnableDrawMode
protected

◆ myEventStarted

bool OCCViewer_ViewWindow::myEventStarted
protected

◆ myInteractionStyle

int OCCViewer_ViewWindow::myInteractionStyle
private

◆ myIsKeyFree

bool OCCViewer_ViewWindow::myIsKeyFree
protected

◆ myModel

OCCViewer_Viewer* OCCViewer_ViewWindow::myModel
protected

◆ myOperation

OperationType OCCViewer_ViewWindow::myOperation
protected

◆ myPaintersRedrawing

bool OCCViewer_ViewWindow::myPaintersRedrawing
protected

◆ myPanningByBtn

bool OCCViewer_ViewWindow::myPanningByBtn
private

◆ myPreselectionEnabled

bool OCCViewer_ViewWindow::myPreselectionEnabled
private

◆ myPrevPointType

RotationPointType OCCViewer_ViewWindow::myPrevPointType
protected

◆ mypSketcher

OCCViewer_ViewSketcher* OCCViewer_ViewWindow::mypSketcher
protected

◆ myRectBand

QtxRectRubberBand* OCCViewer_ViewWindow::myRectBand
private

selection rectangle rubber band

◆ myRestoreFlag

int OCCViewer_ViewWindow::myRestoreFlag
protected

◆ myRotationPointSelection

bool OCCViewer_ViewWindow::myRotationPointSelection
protected

◆ myScalingDlg

OCCViewer_AxialScaleDlg* OCCViewer_ViewWindow::myScalingDlg
private

◆ mySelectedPoint

gp_Pnt OCCViewer_ViewWindow::mySelectedPoint
protected

◆ mySelectionEnabled

bool OCCViewer_ViewWindow::mySelectionEnabled
private

◆ mySetRotationPointAction

QtxAction* OCCViewer_ViewWindow::mySetRotationPointAction
private

◆ mySetRotationPointDlg

OCCViewer_SetRotationPointDlg* OCCViewer_ViewWindow::mySetRotationPointDlg
private

◆ mySketchers

QList<OCCViewer_ViewSketcher*> OCCViewer_ViewWindow::mySketchers
protected

◆ myStartTime

qint64 OCCViewer_ViewWindow::myStartTime
protected

◆ myStartX

int OCCViewer_ViewWindow::myStartX
protected

◆ myStartY

int OCCViewer_ViewWindow::myStartY
protected

◆ myStatus

MapOfTransformStatus OCCViewer_ViewWindow::myStatus
private

◆ myViewAspects

viewAspectList OCCViewer_ViewWindow::myViewAspects
private

◆ myViewPort

OCCViewer_ViewPort3d* OCCViewer_ViewWindow::myViewPort
protected

The documentation for this class was generated from the following files: