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

OCCViewer_ViewFrame Class Reference

#include <OCCViewer_ViewFrame.h>

Inheritance diagram for OCCViewer_ViewFrame:
Inheritance graph

Public Types

enum  {
  MAIN_VIEW, BOTTOM_RIGHT = MAIN_VIEW, BOTTOM_LEFT, TOP_LEFT,
  TOP_RIGHT
}
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 ()
virtual void onViewFitAll ()
virtual void onBackView ()
virtual void onTopView ()
virtual void onBottomView ()
virtual void onLeftView ()
virtual void onRightView ()
virtual void onClockWiseView ()
virtual void onAntiClockWiseView ()
virtual void onResetView ()
virtual void onFitAll ()
virtual void activateZoom ()
virtual void activateWindowFit ()
virtual void activateRotation ()
virtual void activatePanning ()
virtual void activateGlobalPanning ()
virtual void onSetRotationPoint (bool on)
virtual void onAxialScale ()
virtual void onAmbientToogle ()
virtual void onMemorizeView ()
virtual void onRestoreView ()
virtual void onSwitchInteractionStyle (bool on)
virtual void activateSetRotationGravity ()
virtual void activateSetRotationSelected (double theX, double theY, double theZ)
virtual void activateStartPointSelection ()
virtual void updateGravityCoords ()
void onMaximizedView (OCCViewer_ViewWindow *, bool)
virtual void onDumpView ()
virtual void onCloneView ()
 Create one more window with same content.
virtual void onClipping (bool on)
 called if clipping operation is activated.
virtual void onGraduatedAxes ()
virtual void onTrihedronShow ()
 Called when action "show/hide trihedron" is activated.
virtual void setRestoreFlag ()
 Set restore flag.
virtual void onSwitchZoomingStyle (bool on)
 Toogles advanced zooming style (relatively to the cursor position) on/off.
virtual void showEvent (QShowEvent *)
 Handle show event.
virtual void hideEvent (QHideEvent *)
 Handle hide event.
virtual void onMaximizedView ()

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_ViewFrame (SUIT_Desktop *theDesktop, OCCViewer_Viewer *theModel)
virtual ~OCCViewer_ViewFrame ()
OCCViewer_ViewWindowgetView (const int) const
virtual OCCViewer_ViewPort3dgetViewPort ()
OCCViewer_ViewPort3dgetViewPort (int theView)
virtual void performRestoring (const viewAspect &theAspect)
virtual void initLayout ()
virtual void updateEnabledDrawMode ()
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)
virtual void setCuttingPlane (bool on, const gp_Pln thePln)
virtual bool isCuttingPlane ()
virtual QString getVisualParameters ()
virtual void setVisualParameters (const QString &parameters)
virtual void initSketchers ()
virtual OCCViewer_ViewSketchergetSketcher (const int i)
virtual void activateSketching (int i)
virtual int interactionStyle () const
virtual void setInteractionStyle (const int i)
virtual int zoomingStyle () const
virtual void setZoomingStyle (const int)
virtual void setViewManager (SUIT_ViewManager *)
virtual bool eventFilter (QObject *watched, QEvent *e)
virtual QColor backgroundColor () const
virtual void setBackgroundColor (const QColor &)
virtual void setDropDownButtons (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
virtual const viewAspectListgetViewAspects ()
virtual void appendViewAspect (const viewAspect &)
virtual void updateViewAspects (const viewAspectList &)
virtual void clearViewAspects ()
bool dumpViewToFormat (const QString &fileName, const QString &format)
SUIT_ViewManagergetViewManager () const
bool event (QEvent *)
bool onAccelAction (int)
bool closable () const
bool setClosable (const bool)
void setDestructiveClose (const bool)
int getId () const
QtxActionToolMgrtoolMgr () const
bool dropDownButtons () const
 Get current buttons mode.

Protected Member Functions

virtual QImage dumpView ()
virtual bool dumpViewToFormat (const QImage &, const QString &, const QString &)
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 Slots

void onContextMenuRequested (QContextMenuEvent *)

Private Member Functions

void connectViewSignals (OCCViewer_ViewWindow *theView)

Private Attributes

QList< OCCViewer_ViewWindow * > myViews
QGridLayout * myLayout
OCCViewer_ViewWindowmyPopupRequestedView

Member Enumeration Documentation

anonymous enum
Enumerator:
MAIN_VIEW 
BOTTOM_RIGHT 
BOTTOM_LEFT 
TOP_LEFT 
TOP_RIGHT 
anonymous enum [inherited]
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_ViewFrame::OCCViewer_ViewFrame ( SUIT_Desktop theDesktop,
OCCViewer_Viewer theModel 
)
OCCViewer_ViewFrame::~OCCViewer_ViewFrame ( ) [virtual]

Member Function Documentation

OCCViewer_ViewWindow * OCCViewer_ViewFrame::getView ( const int  i) const

References myViews.

virtual OCCViewer_ViewPort3d* OCCViewer_ViewFrame.getViewPort ( ) [virtual]

Reimplemented from OCCViewer_ViewWindow.

OCCViewer_ViewPort3d * OCCViewer_ViewFrame::getViewPort ( int  theView)
virtual void OCCViewer_ViewFrame.performRestoring ( const viewAspect theAspect) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.initLayout ( ) [virtual]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::updateEnabledDrawMode ( ) [virtual]
void OCCViewer_ViewFrame::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]
void OCCViewer_ViewFrame::setCuttingPlane ( bool  on,
const gp_Pln  thePln 
) [virtual]
virtual bool OCCViewer_ViewFrame.isCuttingPlane ( ) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual QString OCCViewer_ViewFrame.getVisualParameters ( ) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.setVisualParameters ( const QString &  parameters) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.initSketchers ( ) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual OCCViewer_ViewSketcher* OCCViewer_ViewFrame.getSketcher ( const int  i) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateSketching ( int  i) [virtual]

Reimplemented from OCCViewer_ViewWindow.

virtual int OCCViewer_ViewFrame.interactionStyle ( ) const [virtual]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::setInteractionStyle ( const int  i) [virtual]
virtual int OCCViewer_ViewFrame.zoomingStyle ( ) const [virtual]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::setZoomingStyle ( const int  i) [virtual]
void OCCViewer_ViewFrame::setViewManager ( SUIT_ViewManager theMgr) [virtual]

Reimplemented from SUIT_ViewWindow.

References myViews, and SUIT_ViewWindow.setViewManager().

virtual bool OCCViewer_ViewFrame.eventFilter ( QObject watched,
QEvent e 
) [virtual]

Reimplemented from OCCViewer_ViewWindow.

QColor OCCViewer_ViewFrame::backgroundColor ( ) const [virtual]
void OCCViewer_ViewFrame::setBackgroundColor ( const QColor &  theColor) [virtual]
void OCCViewer_ViewFrame::setDropDownButtons ( bool  on) [virtual]

Reimplemented from SUIT_ViewWindow.

References myViews, and SUIT_ViewWindow.setDropDownButtons().

virtual void OCCViewer_ViewFrame.onFrontView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::onViewFitAll ( ) [virtual, slot]
virtual void OCCViewer_ViewFrame.onBackView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onTopView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onBottomView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onLeftView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onRightView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onClockWiseView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onAntiClockWiseView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onResetView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::onFitAll ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

References myViews, and OCCViewer_ViewWindow.onFitAll().

virtual void OCCViewer_ViewFrame.activateZoom ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateWindowFit ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateRotation ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activatePanning ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateGlobalPanning ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onSetRotationPoint ( bool  on) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onAxialScale ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onAmbientToogle ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onMemorizeView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onRestoreView ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.onSwitchInteractionStyle ( bool  on) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateSetRotationGravity ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateSetRotationSelected ( double  theX,
double  theY,
double  theZ 
) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.activateStartPointSelection ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

virtual void OCCViewer_ViewFrame.updateGravityCoords ( ) [virtual, slot]

Reimplemented from OCCViewer_ViewWindow.

void OCCViewer_ViewFrame::onMaximizedView ( OCCViewer_ViewWindow theView,
bool  isMaximized 
) [slot]
void OCCViewer_ViewFrame::onDumpView ( ) [virtual, slot]
QImage OCCViewer_ViewFrame::dumpView ( ) [protected, virtual]

Reimplemented from OCCViewer_ViewWindow.

References OCCViewer_ViewWindow.dumpView(), and myViews.

bool OCCViewer_ViewFrame::dumpViewToFormat ( const QImage &  image,
const QString &  fileName,
const QString &  format 
) [protected, virtual]
void OCCViewer_ViewFrame::onContextMenuRequested ( QContextMenuEvent *  ) [private, slot]

References myPopupRequestedView.

void OCCViewer_ViewFrame::connectViewSignals ( OCCViewer_ViewWindow theView) [private]
void OCCViewer_ViewWindow::setTransformEnabled ( const OperationType  id,
const bool  on 
) [inherited]

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

References OCCViewer_ViewWindow.myStatus, and OCCViewer_ViewWindow.NOTHING.

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

References OCCViewer_ViewWindow.myStatus.

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

References OCCViewer_ViewWindow.myViewAspects.

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

Appends new view aspect

Parameters:
aParams- new view aspects

References OCCViewer_ViewWindow.myViewAspects.

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

Replaces old view aspects by new ones

Parameters:
aViewList- list of new view aspects

References OCCViewer_ViewWindow.myViewAspects.

void OCCViewer_ViewWindow::clearViewAspects ( ) [virtual, inherited]

Clears view aspects

References OCCViewer_ViewWindow.myViewAspects.

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

Shows Graduated Axes dialog

References OCCViewer_ViewWindow.myCubeAxesDlg, and OCCViewer_CubeAxesDlg.Update().

void OCCViewer_ViewWindow::onTrihedronShow ( ) [virtual, slot, inherited]
void OCCViewer_ViewWindow::setRestoreFlag ( ) [virtual, slot, inherited]
void OCCViewer_ViewWindow::onSwitchZoomingStyle ( bool  on) [virtual, slot, inherited]
void OCCViewer_ViewWindow::showEvent ( QShowEvent *  theEvent) [virtual, slot, inherited]

Emits Show() signal.

Parameters:
theEventshow event

References OCCViewer_ViewWindow.Show().

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

Emits Hide() signal.

Parameters:
theEventhide event

References OCCViewer_ViewWindow.Hide().

void OCCViewer_ViewWindow::onMaximizedView ( ) [virtual, slot, inherited]
void OCCViewer_ViewWindow.vpTransformationStarted ( OCCViewer_ViewWindow::OperationType  type) [signal, inherited]
void OCCViewer_ViewWindow.vpTransformationFinished ( OCCViewer_ViewWindow::OperationType  type) [signal, inherited]
void OCCViewer_ViewWindow.viewCloned ( SUIT_ViewWindow ) [signal, inherited]
void OCCViewer_ViewWindow.Show ( QShowEvent *  ) [signal, inherited]
void OCCViewer_ViewWindow.Hide ( QHideEvent *  ) [signal, inherited]
void OCCViewer_ViewWindow.maximized ( OCCViewer_ViewWindow ,
bool   
) [signal, 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().

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

Reimplemented from SUIT_ViewWindow.

bool OCCViewer_ViewWindow::transformRequested ( ) const [protected, inherited]
bool OCCViewer_ViewWindow::setTransformRequested ( OperationType  op) [protected, inherited]
bool OCCViewer_ViewWindow::transformInProcess ( ) const [protected, inherited]
void OCCViewer_ViewWindow::setTransformInProcess ( bool  bOn) [protected, inherited]
void OCCViewer_ViewWindow::vpMousePressEvent ( QMouseEvent *  theEvent) [protected, inherited]
void OCCViewer_ViewWindow::vpMouseReleaseEvent ( QMouseEvent *  theEvent) [protected, inherited]
void OCCViewer_ViewWindow::vpMouseMoveEvent ( QMouseEvent *  theEvent) [protected, inherited]
void OCCViewer_ViewWindow::resetState ( ) [protected, inherited]
void OCCViewer_ViewWindow::drawRect ( ) [protected, inherited]
void OCCViewer_ViewWindow::endDrawRect ( ) [protected, inherited]
void OCCViewer_ViewWindow::createActions ( ) [protected, inherited]

References OCCViewer_ViewWindow.activateGlobalPanning(), OCCViewer_ViewWindow.activatePanning(), OCCViewer_ViewWindow.activateRotation(), OCCViewer_ViewWindow.activateWindowFit(), OCCViewer_ViewWindow.activateZoom(), OCCViewer_ViewWindow.AmbientId, OCCViewer_ViewWindow.AntiClockWiseId, OCCViewer_ViewWindow.AxialScaleId, OCCViewer_ViewWindow.BackId, OCCViewer_ViewWindow.BottomId, OCCViewer_ViewWindow.ChangeRotationPointId, OCCViewer_ViewWindow.ClippingId, OCCViewer_ViewWindow.ClockWiseId, OCCViewer_ViewWindow.CloneId, OCCViewer_ViewWindow.DumpId, OCCViewer_ViewWindow.FitAllId, OCCViewer_ViewWindow.FitRectId, OCCViewer_ViewWindow.FrontId, OCCViewer_ViewWindow.GlobalPanId, OCCViewer_ViewWindow.GraduatedAxesId, OCCViewer_ViewWindow.LeftId, QtxResourceMgr.loadPixmap(), OCCViewer_ViewWindow.MaximizedId, OCCViewer_ViewWindow.MemId, OCCViewer_ViewWindow.myClippingAction, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.mySetRotationPointAction, OCCViewer_ViewWindow.onAmbientToogle(), OCCViewer_ViewWindow.onAntiClockWiseView(), OCCViewer_ViewWindow.onAxialScale(), OCCViewer_ViewWindow.onBackView(), OCCViewer_ViewWindow.onBottomView(), OCCViewer_ViewWindow.onClipping(), OCCViewer_ViewWindow.onClockWiseView(), OCCViewer_ViewWindow.onCloneView(), SUIT_ViewWindow.onDumpView(), OCCViewer_ViewWindow.onFitAll(), OCCViewer_ViewWindow.onFrontView(), OCCViewer_ViewWindow.onGraduatedAxes(), OCCViewer_ViewWindow.onLeftView(), OCCViewer_ViewWindow.onMaximizedView(), OCCViewer_ViewWindow.onMemorizeView(), OCCViewer_ViewWindow.onResetView(), OCCViewer_ViewWindow.onRestoreView(), OCCViewer_ViewWindow.onRightView(), OCCViewer_ViewWindow.onSetRotationPoint(), OCCViewer_ViewWindow.onSwitchInteractionStyle(), OCCViewer_ViewWindow.onSwitchZoomingStyle(), OCCViewer_ViewWindow.onTopView(), OCCViewer_ViewWindow.onTrihedronShow(), OCCViewer_ViewWindow.PanId, QtxActionMgr.registerAction(), OCCViewer_ViewWindow.ResetId, SUIT_Session.resourceMgr(), OCCViewer_ViewWindow.RestoreId, OCCViewer_ViewWindow.RightId, OCCViewer_ViewWindow.RotationId, SUIT_Session.session(), OCCViewer_ViewWindow.SwitchInteractionStyleId, OCCViewer_ViewWindow.SwitchZoomingStyleId, SUIT_ViewWindow.toolMgr(), OCCViewer_ViewWindow.TopId, OCCViewer_Viewer.trihedronActivated(), OCCViewer_ViewWindow.TrihedronShowId, and OCCViewer_ViewWindow.ZoomId.

void OCCViewer_ViewWindow::createToolBar ( ) [protected, inherited]
OCCViewer_ViewWindow::OperationType OCCViewer_ViewWindow::getButtonState ( QMouseEvent *  theEvent,
int  theInteractionStyle 
) [protected, virtual, inherited]
viewAspect OCCViewer_ViewWindow::getViewParams ( ) const [protected, inherited]
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, OCCViewer_ViewWindow.Handle(), OCCViewer_Viewer.isTrihedronVisible(), viewAspect.isVisible, OCCViewer_ViewWindow.myCubeAxesDlg, OCCViewer_ViewWindow.myModel, OCCViewer_ViewWindow.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, inherited]
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 OCCViewer_ViewWindow.Handle(), and OCCViewer_ViewWindow.myViewPort.

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

Unhilights detected entities. [ virtual protected ]

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

Creates default sketcher. [ virtual protected ]

References OCCViewer_ViewWindow.Polygon, and OCCViewer_ViewWindow.Rect.

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::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.

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

References SUIT_ViewWindow.myIsDropDown.

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

QGridLayout* OCCViewer_ViewFrame.myLayout [private]
int OCCViewer_ViewWindow.myCurSketch [protected, inherited]
gp_Pnt OCCViewer_ViewWindow.mySelectedPoint [protected, inherited]
bool OCCViewer_ViewWindow.myRotationPointSelection [protected, inherited]
int OCCViewer_ViewWindow.myRestoreFlag [protected, inherited]
int OCCViewer_ViewWindow.myStartX [protected, inherited]
int OCCViewer_ViewWindow.myStartY [protected, inherited]
int OCCViewer_ViewWindow.myCurrX [protected, inherited]
int OCCViewer_ViewWindow.myCurrY [protected, inherited]
bool OCCViewer_ViewWindow.myEventStarted [protected, inherited]
bool OCCViewer_ViewWindow.myCursorIsHand [protected, inherited]
bool OCCViewer_ViewWindow.myDrawRect [protected, inherited]
bool OCCViewer_ViewWindow.myEnableDrawMode [protected, inherited]
bool OCCViewer_ViewWindow.myPaintersRedrawing [protected, inherited]
QCursor OCCViewer_ViewWindow.myCursor [protected, inherited]
double OCCViewer_ViewWindow.myCurScale [protected, inherited]
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