Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SOCC_ViewWindow Class Reference

#include <SOCC_ViewWindow.h>

Inheritance diagram for SOCC_ViewWindow:
Inheritance graph

Public Member Functions

 SOCC_ViewWindow (SUIT_Desktop *, OCCViewer_Viewer *)
 
virtual ~SOCC_ViewWindow ()
 
- Public Member Functions inherited from OCCViewer_ViewWindow
 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)
 
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 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)
 
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 ()
 
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...
 

Protected Member Functions

virtual bool action (const int)
 
- Protected Member Functions inherited from OCCViewer_ViewWindow
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 resetState ()
 Reset the viewport to its initial state ( no transformations in process etc. ) 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...
 
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 QActionsynchronizeAction ()
 

Additional Inherited Members

- Public Types inherited from OCCViewer_ViewWindow
enum  {
  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, UserId
}
 
enum  OperationType {
  NOTHING, 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  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 inherited from OCCViewer_ViewWindow
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)
 
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 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 onRayTracing ()
 
virtual void onEnvTexture ()
 
virtual void onLightSource ()
 
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 ()
 
- Signals inherited from OCCViewer_ViewWindow
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 ()
 
- Protected Slots inherited from OCCViewer_ViewWindow
void synchronize (SUIT_ViewWindow *)
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 
- Protected Attributes inherited from OCCViewer_ViewWindow
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
 
int myCurrX
 
int myCurrY
 
bool myEventStarted
 
bool myCursorIsHand
 
bool myDrawRect
 
bool myEnableDrawMode
 
bool myDrawRectEnabled
 
bool myPaintersRedrawing
 
bool IsSketcherStyle
 
bool myIsKeyFree
 
QCursor myCursor
 
double myCurScale
 

Constructor & Destructor Documentation

SOCC_ViewWindow::SOCC_ViewWindow ( SUIT_Desktop theDesktop,
OCCViewer_Viewer theModel 
)

Constructor

SOCC_ViewWindow::~SOCC_ViewWindow ( )
virtual

Destructor

Member Function Documentation

bool SOCC_ViewWindow::action ( const int  theAction)
protectedvirtual

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