#include <SOCC_ViewWindow.h>
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_ViewWindow * | getView (const int) const |
virtual OCCViewer_ViewPort3d * | getViewPort () |
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 ¶meters) |
Restore visual parameters of the view window. More... | |
virtual void | initSketchers () |
virtual OCCViewer_ViewSketcher * | getSketcher (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 viewAspectList & | getViewAspects () |
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_ViewManager * | getViewManager () 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 |
QtxActionToolMgr * | toolMgr () 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_ViewSketcher * | createSketcher (int) |
void | saveCursor () |
Protected Member Functions inherited from SUIT_ViewWindow | |
void | closeEvent (QCloseEvent *) |
virtual void | contextMenuEvent (QContextMenuEvent *) |
virtual QAction * | synchronizeAction () |
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_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 | myDrawRectEnabled |
bool | myPaintersRedrawing |
bool | IsSketcherStyle |
bool | myIsKeyFree |
QCursor | myCursor |
double | myCurScale |
SOCC_ViewWindow::SOCC_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
OCCViewer_Viewer * | theModel | ||
) |
Constructor
|
virtual |
Destructor
|
protectedvirtual |
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.