Version: 6.3.1
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes

OCCViewer_ViewWindow Class Reference

#include <OCCViewer_ViewWindow.h>

Inheritance diagram for OCCViewer_ViewWindow:
Inheritance graph

Public Types

enum  {
  DumpId, FitAllId, FitRectId, ZoomId,
  PanId, GlobalPanId, ChangeRotationPointId, RotationId,
  FrontId, BackId, TopId, BottomId,
  LeftId, RightId, ClockWiseId, AntiClockWiseId,
  ResetId, CloneId, ClippingId, MemId,
  RestoreId, TrihedronShowId, AxialScaleId, GraduatedAxesId,
  AmbientId, SwitchInteractionStyleId, SwitchZoomingStyleId, MaximizedId,
  UserId
}
enum  OperationType {
  NOTHING, PANVIEW, ZOOMVIEW, ROTATE,
  PANGLOBAL, WINDOWFIT, FITALLVIEW, RESETVIEW,
  FRONTVIEW, BACKVIEW, TOPVIEW, BOTTOMVIEW,
  LEFTVIEW, RIGHTVIEW, CLOCKWISEVIEW, ANTICLOCKWISEVIEW
}
enum  RotationPointType { GRAVITY, SELECTED }
enum  SketchingType { NoSketching, Rect, Polygon }
enum  Mode2dType { No2dMode, XYPlane, XZPlane, YZPlane }

Public Slots

virtual void onFrontView ()
 Perform "front view" transformation.
virtual void onViewFitAll ()
 Perform 'fit all' operation.
virtual void onBackView ()
 Perform "back view" transformation.
virtual void onTopView ()
 Perform "top view" transformation.
virtual void onBottomView ()
 Perform "bottom view" transformation.
virtual void onLeftView ()
 Perform "left view" transformation.
virtual void onRightView ()
 Perform "right view" transformation.
virtual void onClockWiseView ()
 Rotate view 90 degrees clockwise.
virtual void onAntiClockWiseView ()
 Rotate view 90 degrees conterclockwise.
virtual void onResetView ()
 Perform "reset view" transformation.
virtual void onFitAll ()
 Perform "fit all" transformation.
virtual void activateZoom ()
 Start zooming operation.
virtual void activateWindowFit ()
 Starts fit operation.
virtual void activateRotation ()
 Start rotation operation.
virtual void activatePanning ()
 Start panning operation.
virtual void activateGlobalPanning ()
 Start global panning operation.
virtual void onSetRotationPoint (bool on)
 Called if 'change rotation point' operation is activated.
virtual void onCloneView ()
 Create one more window with same content.
virtual void onClipping (bool on)
 called if clipping operation is activated.
virtual void onAxialScale ()
virtual void onGraduatedAxes ()
virtual void onAmbientToogle ()
virtual void onMemorizeView ()
 Store view parameters.
virtual void onRestoreView ()
 Restore view parameters.
virtual void onTrihedronShow ()
 Called when action "show/hide trihedron" is activated.
virtual void setRestoreFlag ()
 Set restore flag.
virtual void onSwitchInteractionStyle (bool on)
 Switches "keyboard free" interaction style on/off.
virtual void onSwitchZoomingStyle (bool on)
 Toogles advanced zooming style (relatively to the cursor position) on/off.
virtual void activateSetRotationGravity ()
 Set the gravity center as a rotation point.
virtual void activateSetRotationSelected (double theX, double theY, double theZ)
 Set the point selected by the user as a rotation point.
virtual void activateStartPointSelection ()
 Start the point selection process.
virtual void updateGravityCoords ()
 Update gravity center in the "Set Rotation Point" dialog box.
virtual void showEvent (QShowEvent *)
 Handle show event.
virtual void hideEvent (QHideEvent *)
 Handle hide event.
virtual void onMaximizedView ()
virtual void onDumpView ()

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 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)

Public Member Functions

 OCCViewer_ViewWindow (SUIT_Desktop *theDesktop, OCCViewer_Viewer *theModel)
 Constructor.
virtual ~OCCViewer_ViewWindow ()
 Destructor.
virtual OCCViewer_ViewPort3dgetViewPort ()
virtual bool eventFilter (QObject *watched, QEvent *e)
 Customize event handling.
virtual void performRestoring (const viewAspect &)
 Restore view parameters.
virtual void initLayout ()
 Internal initialization.
virtual void updateEnabledDrawMode ()
 Update state of enable draw mode state.
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.
virtual void setCuttingPlane (bool on, const gp_Pln thePln)
virtual bool isCuttingPlane ()
 Check if any cutting plane is enabled.
virtual QString getVisualParameters ()
 Get visual parameters of this view window.
virtual void setVisualParameters (const QString &parameters)
 Restore visual parameters of the view window.
virtual void initSketchers ()
virtual OCCViewer_ViewSketchergetSketcher (const int)
virtual void activateSketching (int)
virtual int interactionStyle () const
 Get current interaction style.
virtual void setInteractionStyle (const int)
 Set current interaction style.
virtual int zoomingStyle () const
 Get current zooming style.
virtual void setZoomingStyle (const int)
 Set current zooming style.
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
virtual QColor backgroundColor () const
virtual void setBackgroundColor (const QColor &)
virtual const viewAspectListgetViewAspects ()
virtual void appendViewAspect (const viewAspect &)
virtual void updateViewAspects (const viewAspectList &)
virtual void clearViewAspects ()
virtual QImage dumpView ()
 Dump view window contents to the pixmap.
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
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)
bool dropDownButtons () const
 Get current buttons mode.

Protected Member Functions

virtual QString filter () const
bool transformRequested () const
bool setTransformRequested (OperationType)
 Start delayed viewer operation.
bool transformInProcess () const
void setTransformInProcess (bool)
void vpMousePressEvent (QMouseEvent *theEvent)
 Handle mouse press event.
void vpMouseReleaseEvent (QMouseEvent *theEvent)
 Handle mouse release event.
void vpMouseMoveEvent (QMouseEvent *theEvent)
 Handle mouse move event.
void resetState ()
 Reset the viewport to its initial state ( no transformations in process etc. )
void drawRect ()
 Draw rubber band rectangle.
void endDrawRect ()
 Clear rubber band rectangle on the end on the dragging operation.
void createActions ()
 Create actions.
void createToolBar ()
 Create toolbar.
virtual OperationType getButtonState (QMouseEvent *theEvent, int theInteractionStyle)
 Detect viewer operation according the the mouse button pressed and key modifiers used.
viewAspect getViewParams () const
 Get the visual parameters of the view window.
bool computeGravityCenter (double &theX, double &theY, double &theZ)
 Compute the gravity center.
virtual void onSketchingStarted ()
virtual void onSketchingFinished ()
virtual OCCViewer_ViewSketchercreateSketcher (int)
void closeEvent (QCloseEvent *)
virtual void contextMenuEvent (QContextMenuEvent *)
virtual bool action (const int)

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
int myCurrX
int myCurrY
bool myEventStarted
bool myCursorIsHand
bool myDrawRect
bool myEnableDrawMode
bool myPaintersRedrawing
QCursor myCursor
double myCurScale
SUIT_DesktopmyDesktop
SUIT_ViewManagermyManager

Private Types

typedef QMap< OperationType, bool > MapOfTransformStatus

Private Member Functions

 Handle (V3d_Plane) myReserveClippingPlane

Private Attributes

OCCViewer_ClippingDlgmyClippingDlg
QtxActionmyClippingAction
OCCViewer_AxialScaleDlgmyScalingDlg
OCCViewer_SetRotationPointDlgmySetRotationPointDlg
QtxActionmySetRotationPointAction
QtxRectRubberBandmyRectBand
 selection rectangle rubber band
int myInteractionStyle
MapOfTransformStatus myStatus
Mode2dType my2dMode
viewAspectList myViewAspects

Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
DumpId 
FitAllId 
FitRectId 
ZoomId 
PanId 
GlobalPanId 
ChangeRotationPointId 
RotationId 
FrontId 
BackId 
TopId 
BottomId 
LeftId 
RightId 
ClockWiseId 
AntiClockWiseId 
ResetId 
CloneId 
ClippingId 
MemId 
RestoreId 
TrihedronShowId 
AxialScaleId 
GraduatedAxesId 
AmbientId 
SwitchInteractionStyleId 
SwitchZoomingStyleId 
MaximizedId 
UserId 
Enumerator:
NOTHING 
PANVIEW 
ZOOMVIEW 
ROTATE 
PANGLOBAL 
WINDOWFIT 
FITALLVIEW 
RESETVIEW 
FRONTVIEW 
BACKVIEW 
TOPVIEW 
BOTTOMVIEW 
LEFTVIEW 
RIGHTVIEW 
CLOCKWISEVIEW 
ANTICLOCKWISEVIEW 
Enumerator:
GRAVITY 
SELECTED 
Enumerator:
NoSketching 
Rect 
Polygon 
Enumerator:
No2dMode 
XYPlane 
XZPlane 
YZPlane 

Constructor & Destructor Documentation

OCCViewer_ViewWindow::OCCViewer_ViewWindow ( SUIT_Desktop theDesktop,
OCCViewer_Viewer theModel 
)
OCCViewer_ViewWindow::~OCCViewer_ViewWindow ( ) [virtual]

References endDrawRect(), and mySketchers.


Member Function Documentation

OCCViewer_ViewPort3d * OCCViewer_ViewWindow::getViewPort ( ) [virtual]

Reimplemented in OCCViewer_ViewFrame.

References myViewPort.

bool OCCViewer_ViewWindow::eventFilter ( QObject watched,
QEvent e 
) [virtual]
void OCCViewer_ViewWindow::performRestoring ( const viewAspect anItem) [virtual]
Parameters:
anItemview parameters

Reimplemented in OCCViewer_ViewFrame.

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(), viewAspect.size, OCCViewer_AxisWidget.AxisData.TickmarkLength, and viewAspect.twist.

void OCCViewer_ViewWindow::initLayout ( ) [virtual]
void OCCViewer_ViewWindow::updateEnabledDrawMode ( ) [virtual]
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]
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 test_table.a, test_table.c, Handle(), and myViewPort.

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

Reimplemented in OCCViewer_ViewFrame.

References setCuttingPlane().

bool OCCViewer_ViewWindow::isCuttingPlane ( ) [virtual]
Returns:
true if at least one cutting plane is enabled

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

QString OCCViewer_ViewWindow::getVisualParameters ( ) [virtual]
void OCCViewer_ViewWindow::setVisualParameters ( const QString &  parameters) [virtual]
void OCCViewer_ViewWindow::initSketchers ( ) [virtual]

Reimplemented in OCCViewer_ViewFrame.

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

OCCViewer_ViewSketcher * OCCViewer_ViewWindow::getSketcher ( const int  typ) [virtual]
void OCCViewer_ViewWindow::activateSketching ( int  type) [virtual]
int OCCViewer_ViewWindow::interactionStyle ( ) const [virtual]
Returns:
interaction style

Reimplemented in OCCViewer_ViewFrame.

References myInteractionStyle.

void OCCViewer_ViewWindow::setInteractionStyle ( const int  theStyle) [virtual]
Parameters:
theStyleinteraction style

Reimplemented in OCCViewer_ViewFrame.

References SUIT_ViewModel.KEY_FREE, and onSwitchInteractionStyle().

int OCCViewer_ViewWindow::zoomingStyle ( ) const [virtual]
Returns:
zooming style

Reimplemented in OCCViewer_ViewFrame.

References OCCViewer_ViewPort3d.isAdvancedZoomingEnabled(), and myViewPort.

void OCCViewer_ViewWindow::setZoomingStyle ( const int  theStyle) [virtual]
Parameters:
theStylezooming style

Reimplemented in OCCViewer_ViewFrame.

References onSwitchZoomingStyle().

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

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

References myStatus, and NOTHING.

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

References myStatus.

void OCCViewer_ViewWindow::set2dMode ( Mode2dType  theType)

References my2dMode.

Mode2dType OCCViewer_ViewWindow.get2dMode ( ) const
void OCCViewer_ViewWindow::setMaximized ( bool  toMaximize,
bool  toSendSignal = true 
)
bool OCCViewer_ViewWindow::isMaximized ( ) const
QColor OCCViewer_ViewWindow::backgroundColor ( ) const [virtual]
void OCCViewer_ViewWindow::setBackgroundColor ( const QColor &  theColor) [virtual]
const viewAspectList & OCCViewer_ViewWindow::getViewAspects ( ) [virtual]
Returns:
const reference to list of view aspects

References myViewAspects.

void OCCViewer_ViewWindow::appendViewAspect ( const viewAspect aParams) [virtual]

Appends new view aspect

Parameters:
aParams- new view aspects

References myViewAspects.

void OCCViewer_ViewWindow::updateViewAspects ( const viewAspectList aViewList) [virtual]

Replaces old view aspects by new ones

Parameters:
aViewList- list of new view aspects

References myViewAspects.

void OCCViewer_ViewWindow::clearViewAspects ( ) [virtual]

Clears view aspects

References myViewAspects.

void OCCViewer_ViewWindow::onFrontView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onViewFitAll ( ) [virtual, slot]

Reimplemented in OCCViewer_ViewFrame.

References OCCViewer_ViewPort3d.fitAll(), and myViewPort.

void OCCViewer_ViewWindow::onBackView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onTopView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onBottomView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onLeftView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onRightView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onClockWiseView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onAntiClockWiseView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onResetView ( ) [virtual, slot]

Sets default orientation of the viewport camera.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::onFitAll ( ) [virtual, slot]
void OCCViewer_ViewWindow::activateZoom ( ) [virtual, slot]

Sets the corresponding cursor for the widget.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::activateWindowFit ( ) [virtual, slot]

Sets the corresponding cursor for the widget.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::activateRotation ( ) [virtual, slot]

Sets the corresponding cursor for the widget.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::activatePanning ( ) [virtual, slot]

Sets the corresponding cursor for the widget.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::activateGlobalPanning ( ) [virtual, slot]

Sets the corresponding cursor for the widget.

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::onSetRotationPoint ( bool  on) [virtual, slot]
void OCCViewer_ViewWindow::onCloneView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onClipping ( bool  on) [virtual, slot]

Enables/disables clipping plane displaying.

on action state

References myClippingAction, myClippingDlg, OCCViewer_ClippingDlg.SetAction(), and setCuttingPlane().

void OCCViewer_ViewWindow::onAxialScale ( ) [virtual, slot]

Creates one more window with same content

Reimplemented in OCCViewer_ViewFrame.

References myScalingDlg.

void OCCViewer_ViewWindow::onGraduatedAxes ( ) [virtual, slot]

Shows Graduated Axes dialog

References myCubeAxesDlg, and OCCViewer_CubeAxesDlg.Update().

void OCCViewer_ViewWindow::onAmbientToogle ( ) [virtual, slot]

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

void OCCViewer_ViewWindow::onMemorizeView ( ) [virtual, slot]

Reimplemented in OCCViewer_ViewFrame.

References appendViewAspect(), and getViewParams().

void OCCViewer_ViewWindow::onRestoreView ( ) [virtual, slot]
void OCCViewer_ViewWindow::onTrihedronShow ( ) [virtual, slot]
void OCCViewer_ViewWindow::setRestoreFlag ( ) [virtual, slot]

References myRestoreFlag.

void OCCViewer_ViewWindow::onSwitchInteractionStyle ( bool  on) [virtual, slot]
void OCCViewer_ViewWindow::onSwitchZoomingStyle ( bool  on) [virtual, slot]
void OCCViewer_ViewWindow::activateSetRotationGravity ( ) [virtual, slot]
void OCCViewer_ViewWindow::activateSetRotationSelected ( double  theX,
double  theY,
double  theZ 
) [virtual, slot]
Parameters:
theXX coordinate of the rotation point
theYY coordinate of the rotation point
theZZ coordinate of the rotation point

Reimplemented in OCCViewer_ViewFrame.

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

void OCCViewer_ViewWindow::activateStartPointSelection ( ) [virtual, slot]
void OCCViewer_ViewWindow::updateGravityCoords ( ) [virtual, slot]
void OCCViewer_ViewWindow::showEvent ( QShowEvent *  theEvent) [virtual, slot]

Emits Show() signal.

Parameters:
theEventshow event

References Show().

void OCCViewer_ViewWindow::hideEvent ( QHideEvent *  theEvent) [virtual, slot]

Emits Hide() signal.

Parameters:
theEventhide event

References Hide().

void OCCViewer_ViewWindow::onMaximizedView ( ) [virtual, slot]

References isMaximized(), and setMaximized().

void OCCViewer_ViewWindow.vpTransformationStarted ( OCCViewer_ViewWindow::OperationType  type) [signal]
void OCCViewer_ViewWindow.vpTransformationFinished ( OCCViewer_ViewWindow::OperationType  type) [signal]
void OCCViewer_ViewWindow.viewCloned ( SUIT_ViewWindow ) [signal]
void OCCViewer_ViewWindow.Show ( QShowEvent *  ) [signal]
void OCCViewer_ViewWindow.Hide ( QHideEvent *  ) [signal]
void OCCViewer_ViewWindow.maximized ( OCCViewer_ViewWindow ,
bool   
) [signal]
QImage OCCViewer_ViewWindow::dumpView ( ) [virtual]
Returns:
pixmap containing all scene rendered in the window

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

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

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

Reimplemented from SUIT_ViewWindow.

Reimplemented in OCCViewer_ViewFrame.

References Handle(), and myViewPort.

QString OCCViewer_ViewWindow::filter ( ) const [protected, virtual]

Reimplemented from SUIT_ViewWindow.

bool OCCViewer_ViewWindow::transformRequested ( ) const [protected]

References myOperation, and NOTHING.

bool OCCViewer_ViewWindow::setTransformRequested ( OperationType  op) [protected]
bool OCCViewer_ViewWindow::transformInProcess ( ) const [protected]

References myEventStarted.

void OCCViewer_ViewWindow::setTransformInProcess ( bool  bOn) [protected]

References myEventStarted.

void OCCViewer_ViewWindow::vpMousePressEvent ( QMouseEvent *  theEvent) [protected]
void OCCViewer_ViewWindow::vpMouseReleaseEvent ( QMouseEvent *  theEvent) [protected]
void OCCViewer_ViewWindow::vpMouseMoveEvent ( QMouseEvent *  theEvent) [protected]
void OCCViewer_ViewWindow::resetState ( ) [protected]
void OCCViewer_ViewWindow::drawRect ( ) [protected]
void OCCViewer_ViewWindow::endDrawRect ( ) [protected]
void OCCViewer_ViewWindow::createActions ( ) [protected]
void OCCViewer_ViewWindow::createToolBar ( ) [protected]
OCCViewer_ViewWindow::OperationType OCCViewer_ViewWindow::getButtonState ( QMouseEvent *  theEvent,
int  theInteractionStyle 
) [protected, virtual]
Parameters:
theEventmouse event
Returns:
type of the operation

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

viewAspect OCCViewer_ViewWindow::getViewParams ( ) const [protected]
Returns:
visual parameters of view window

References test_big_table.aName, 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, 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(), 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(), and viewAspect.twist.

bool OCCViewer_ViewWindow::computeGravityCenter ( double &  theX,
double &  theY,
double &  theZ 
) [protected]
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.

void OCCViewer_ViewWindow::onSketchingStarted ( ) [protected, virtual]

Unhilights detected entities. [ virtual protected ]

void OCCViewer_ViewWindow::onSketchingFinished ( ) [protected, virtual]
OCCViewer_ViewSketcher * OCCViewer_ViewWindow::createSketcher ( int  type) [protected, virtual]

Creates default sketcher. [ virtual protected ]

References Polygon, and Rect.

OCCViewer_ViewWindow.Handle ( V3d_Plane  ) [private]
void SUIT_ViewWindow::setViewManager ( SUIT_ViewManager theManager) [virtual, inherited]

Sets new view manager for window

Parameters:
theManager- new view manager

Reimplemented in OCCViewer_ViewFrame.

References SUIT_ViewWindow.myManager.

SUIT_ViewManager * SUIT_ViewWindow::getViewManager ( ) const [inherited]
Returns:
view manager of window

References SUIT_ViewWindow.myManager.

bool SUIT_ViewWindow::event ( QEvent e) [inherited]
bool SUIT_ViewWindow::dumpViewToFormat ( const QString &  fileName,
const QString &  format 
) [inherited]

Saves scene rendering in window to file

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

References SUIT_ViewWindow.dumpView().

bool SUIT_ViewWindow::onAccelAction ( int  _action) [inherited]

Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active

References SUIT_ViewWindow.action().

bool SUIT_ViewWindow::closable ( ) const [inherited]

Returns true if view window can be closed by the user

bool SUIT_ViewWindow::setClosable ( const bool  on) [inherited]

Set / reset "closable" option of the view window

References SUIT_ViewWindow.closable().

void SUIT_ViewWindow::setDestructiveClose ( const bool  on) [inherited]

Set or clear flag Qt.WDestructiveClose

int SUIT_ViewWindow::getId ( ) const [inherited]
Returns:
window unique identifier
QtxActionToolMgr * SUIT_ViewWindow::toolMgr ( ) const [inherited]
Returns:
associated tool bar manager

References SUIT_ViewWindow.myToolMgr.

void SUIT_ViewWindow::setDropDownButtons ( bool  on) [virtual, inherited]
bool SUIT_ViewWindow::dropDownButtons ( ) const [inherited]
Returns:
current buttons mode
See also:
setDropDownButtons()

References SUIT_ViewWindow.myIsDropDown.

void SUIT_ViewWindow::onDumpView ( ) [virtual, slot, inherited]

Post events on dump view.

Reimplemented in OCCViewer_ViewFrame, and Plot2d_ViewWindow.

References DUMP_EVENT.

void SUIT_ViewWindow.tryClosing ( SUIT_ViewWindow ) [signal, inherited]
void SUIT_ViewWindow.closing ( SUIT_ViewWindow ) [signal, inherited]
void SUIT_ViewWindow.mousePressed ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseReleased ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseDoubleClicked ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseMoving ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.wheeling ( SUIT_ViewWindow ,
QWheelEvent *   
) [signal, inherited]
void SUIT_ViewWindow.keyPressed ( SUIT_ViewWindow ,
QKeyEvent *   
) [signal, inherited]
void SUIT_ViewWindow.keyReleased ( SUIT_ViewWindow ,
QKeyEvent *   
) [signal, inherited]
void SUIT_ViewWindow.contextMenuRequested ( QContextMenuEvent *  e) [signal, inherited]
void SUIT_ViewWindow::closeEvent ( QCloseEvent *  e) [protected, inherited]
void SUIT_ViewWindow::contextMenuEvent ( QContextMenuEvent *  e) [protected, virtual, inherited]

Context menu requested for event e.

References SUIT_ViewWindow.contextMenuRequested().

bool SUIT_ViewWindow::action ( const int  ) [protected, virtual, inherited]

action handle standard action (zoom, pan) or custom action. to be redefined in successors.

Reimplemented in SOCC_ViewWindow, SPlot2d_ViewWindow, and SVTK_ViewWindow.


Field Documentation

QCursor OCCViewer_ViewWindow.myCursor [protected]
double OCCViewer_ViewWindow.myCurScale [protected]
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS