QoccFrame Class Reference

This class provides a QFrame derived object containing a toolbar and an OpenCascade viewer widget (. More...

#include <qoccframe.h>

Collaboration diagram for QoccFrame:

Collaboration graph
[legend]
List of all members.

Public Slots

void fitArea ()
void fitAll ()
void fitExtents ()
void viewAxo ()
void viewTop ()
void viewLeft ()
void viewFront ()
void viewTopFront ()

Public Member Functions

 QoccFrame (QoccController *aContext=NULL, QWidget *parent=NULL, Qt::WindowFlags wflags=0)
 Constructor for QoccFrame. This constructor creates an uninitialised window for rendering a Handle_V3d_View based OpenCASCADE 3D viewer.
 ~QoccFrame ()
 The class destructor.
Qocc3dWidgetgetWidget ()
QToolBar * getToolBar ()

Private Member Functions

void setToolbarActions (void)
void createActions (void)
 createActions sets up all the singleton toolbar actions, and calls the grouped action functions.
void connectActions (void)
void disconnectActions (void)
void connectParent (void)
void disconnectParent (void)
void createZoomGroup (void)
void createViewGroup (void)
void invokeAction (QAction *group, QAction *action, const char *signal)

Private Attributes

QoccControllermyController
Qocc3dWidgetmyWidget
QToolBar * myToolBar
QVBoxLayout * myLayout
QoccMainWindowmyParent
QAction * actionIdle
QAction * actionZoomGroup
QMenu * popupZoomGroup
QAction * actionFitExtents
QAction * actionFitArea
QAction * actionFitAll
QAction * actionViewGroup
QMenu * popupViewGroup
QAction * actionViewTop
QAction * actionViewFront
QAction * actionViewTopFront
QAction * actionViewLeft
QAction * actionViewAxo

Detailed Description

This class provides a QFrame derived object containing a toolbar and an OpenCascade viewer widget (.

See also:
Qocc3dWidget). The toolbar wraps several utility functions that manipulate the view.
Author:
Peter C. Dolbey

Definition at line 41 of file qoccframe.h.


Constructor & Destructor Documentation

QoccFrame::QoccFrame ( QoccController aController = NULL,
QWidget *  parent = NULL,
Qt::WindowFlags  wflags = 0 
)

Constructor for QoccFrame. This constructor creates an uninitialised window for rendering a Handle_V3d_View based OpenCASCADE 3D viewer.

Parameters:
aContext The widget's AIS context
parent The widget's parent widget
wflags The widget's window configuration flags
See also:
initialize

Definition at line 49 of file qoccframe.cpp.

References connectActions(), connectParent(), createActions(), myController, myLayout, myParent, myToolBar, myWidget, and setToolbarActions().

Here is the call graph for this function:

QoccFrame::~QoccFrame (  ) 

The class destructor.

Definition at line 78 of file qoccframe.cpp.

References actionFitAll, actionFitArea, actionFitExtents, actionZoomGroup, disconnectActions(), disconnectParent(), myLayout, myToolBar, and myWidget.

Here is the call graph for this function:


Member Function Documentation

void QoccFrame::connectActions ( void   )  [private]

Definition at line 181 of file qoccframe.cpp.

References actionFitAll, actionFitArea, actionFitExtents, actionIdle, actionViewAxo, actionViewFront, actionViewGroup, actionViewLeft, actionViewTop, actionViewTopFront, actionZoomGroup, fitAll(), fitArea(), fitExtents(), myWidget, viewAxo(), viewFront(), viewLeft(), viewTop(), and viewTopFront().

Referenced by QoccFrame().

Here is the caller graph for this function:

void QoccFrame::connectParent ( void   )  [private]

Definition at line 211 of file qoccframe.cpp.

References myController, myParent, and myWidget.

Referenced by QoccFrame().

Here is the caller graph for this function:

void QoccFrame::createActions ( void   )  [private]

createActions sets up all the singleton toolbar actions, and calls the grouped action functions.

Definition at line 97 of file qoccframe.cpp.

References actionIdle, createViewGroup(), and createZoomGroup().

Referenced by QoccFrame().

Here is the call graph for this function:

Here is the caller graph for this function:

void QoccFrame::createViewGroup ( void   )  [private]

Definition at line 134 of file qoccframe.cpp.

References actionViewAxo, actionViewFront, actionViewGroup, actionViewLeft, actionViewTop, actionViewTopFront, and popupViewGroup.

Referenced by createActions().

Here is the caller graph for this function:

void QoccFrame::createZoomGroup ( void   )  [private]

Definition at line 107 of file qoccframe.cpp.

References actionFitAll, actionFitArea, actionFitExtents, actionZoomGroup, and popupZoomGroup.

Referenced by createActions().

Here is the caller graph for this function:

void QoccFrame::disconnectActions ( void   )  [private]

Definition at line 201 of file qoccframe.cpp.

References actionFitAll, actionFitArea, actionFitExtents, actionIdle, and actionZoomGroup.

Referenced by ~QoccFrame().

Here is the caller graph for this function:

void QoccFrame::disconnectParent ( void   )  [private]

Definition at line 233 of file qoccframe.cpp.

References myWidget.

Referenced by ~QoccFrame().

Here is the caller graph for this function:

void QoccFrame::fitAll (  )  [slot]

Definition at line 261 of file qoccframe.cpp.

References actionFitAll, actionZoomGroup, and invokeAction().

Referenced by connectActions().

void QoccFrame::fitArea (  )  [slot]

Definition at line 256 of file qoccframe.cpp.

References actionFitArea, actionZoomGroup, and invokeAction().

Referenced by connectActions().

void QoccFrame::fitExtents (  )  [slot]

Definition at line 251 of file qoccframe.cpp.

References actionFitExtents, actionZoomGroup, and invokeAction().

Referenced by connectActions().

QToolBar* QoccFrame::getToolBar (  )  [inline]

Definition at line 54 of file qoccframe.h.

Qocc3dWidget* QoccFrame::getWidget (  )  [inline]

Definition at line 53 of file qoccframe.h.

void QoccFrame::invokeAction ( QAction *  group,
QAction *  action,
const char *  signal 
) [private]

Definition at line 238 of file qoccframe.cpp.

References myWidget.

Referenced by fitAll(), fitArea(), fitExtents(), viewAxo(), viewFront(), viewLeft(), viewTop(), and viewTopFront().

void QoccFrame::setToolbarActions ( void   )  [private]

Definition at line 172 of file qoccframe.cpp.

References actionIdle, actionViewGroup, actionZoomGroup, and myToolBar.

Referenced by QoccFrame().

Here is the caller graph for this function:

void QoccFrame::viewAxo (  )  [slot]

Definition at line 266 of file qoccframe.cpp.

References actionViewAxo, actionViewGroup, and invokeAction().

Referenced by connectActions().

void QoccFrame::viewFront (  )  [slot]

Definition at line 276 of file qoccframe.cpp.

References actionViewFront, actionViewGroup, and invokeAction().

Referenced by connectActions().

void QoccFrame::viewLeft (  )  [slot]

Definition at line 286 of file qoccframe.cpp.

References actionViewGroup, actionViewLeft, and invokeAction().

Referenced by connectActions().

void QoccFrame::viewTop (  )  [slot]

Definition at line 271 of file qoccframe.cpp.

References actionViewGroup, actionViewTop, and invokeAction().

Referenced by connectActions().

void QoccFrame::viewTopFront (  )  [slot]

Definition at line 281 of file qoccframe.cpp.

References actionViewGroup, actionViewTopFront, and invokeAction().

Referenced by connectActions().


Member Data Documentation

QAction* QoccFrame::actionFitAll [private]

Definition at line 84 of file qoccframe.h.

Referenced by connectActions(), createZoomGroup(), disconnectActions(), fitAll(), and ~QoccFrame().

QAction* QoccFrame::actionFitArea [private]

Definition at line 83 of file qoccframe.h.

Referenced by connectActions(), createZoomGroup(), disconnectActions(), fitArea(), and ~QoccFrame().

QAction* QoccFrame::actionFitExtents [private]

Definition at line 82 of file qoccframe.h.

Referenced by connectActions(), createZoomGroup(), disconnectActions(), fitExtents(), and ~QoccFrame().

QAction* QoccFrame::actionIdle [private]

Definition at line 78 of file qoccframe.h.

Referenced by connectActions(), createActions(), disconnectActions(), and setToolbarActions().

QAction* QoccFrame::actionViewAxo [private]

Definition at line 92 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), and viewAxo().

QAction* QoccFrame::actionViewFront [private]

Definition at line 89 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), and viewFront().

QAction* QoccFrame::actionViewGroup [private]

Definition at line 86 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), setToolbarActions(), viewAxo(), viewFront(), viewLeft(), viewTop(), and viewTopFront().

QAction* QoccFrame::actionViewLeft [private]

Definition at line 91 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), and viewLeft().

QAction* QoccFrame::actionViewTop [private]

Definition at line 88 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), and viewTop().

QAction* QoccFrame::actionViewTopFront [private]

Definition at line 90 of file qoccframe.h.

Referenced by connectActions(), createViewGroup(), and viewTopFront().

QAction* QoccFrame::actionZoomGroup [private]

Definition at line 80 of file qoccframe.h.

Referenced by connectActions(), createZoomGroup(), disconnectActions(), fitAll(), fitArea(), fitExtents(), setToolbarActions(), and ~QoccFrame().

QoccController* QoccFrame::myController [private]

Definition at line 71 of file qoccframe.h.

Referenced by connectParent(), and QoccFrame().

QVBoxLayout* QoccFrame::myLayout [private]

Definition at line 75 of file qoccframe.h.

Referenced by QoccFrame(), and ~QoccFrame().

QoccMainWindow* QoccFrame::myParent [private]

Definition at line 76 of file qoccframe.h.

Referenced by connectParent(), and QoccFrame().

QToolBar* QoccFrame::myToolBar [private]

Definition at line 74 of file qoccframe.h.

Referenced by QoccFrame(), setToolbarActions(), and ~QoccFrame().

Qocc3dWidget* QoccFrame::myWidget [private]

Definition at line 72 of file qoccframe.h.

Referenced by connectActions(), connectParent(), disconnectParent(), invokeAction(), QoccFrame(), and ~QoccFrame().

QMenu* QoccFrame::popupViewGroup [private]

Definition at line 87 of file qoccframe.h.

Referenced by createViewGroup().

QMenu* QoccFrame::popupZoomGroup [private]

Definition at line 81 of file qoccframe.h.

Referenced by createZoomGroup().


The documentation for this class was generated from the following files:
Generated on Sat Feb 23 21:22:29 2008 for QtGEOM by  doxygen 1.4.7