#include <qocccontroller.h>
Collaboration diagram for QoccController:

| Public Slots | |
| void | gridXY (void) | 
| Sets the privileged plane to the XY Axis. | |
| void | gridXZ (void) | 
| Sets the privileged plane to the XZ Axis. | |
| void | gridYZ (void) | 
| Sets the privileged plane to the XY Axis. | |
| void | gridOn (void) | 
| Turn the grid on. | |
| void | gridOff (void) | 
| Turn the grid off. | |
| void | gridRect (void) | 
| Select a rectangular grid. | |
| void | gridCirc (void) | 
| Select a circular grid. | |
| void | clickEvent (Qocc3dWidget *widget, QMouseEvent *e) | 
| void | moveEvent (Qocc3dWidget *widget, QMouseEvent *e) | 
| Signals | |
| void | error (int errorCode, QString &errorDescription) | 
| Public Member Functions | |
| QoccController () | |
| QoccController (QoccDocument *qDoc) | |
| ~QoccController () | |
| Handle (V3d_Viewer)&getViewer(void) | |
| Handle (AIS_InteractiveContext)&getContext(void) | |
| QoccDocument * | getDocument (void) | 
| int | id (void) | 
| Handle (V3d_Viewer) createViewer(const Standard_CString aDisplay | |
| TopAbs_ShapeEnum | localContext () | 
| void | setLocalContext (TopAbs_ShapeEnum lcType) | 
| void | clearLocalContext (void) | 
| void | clearAllLocalContexts (void) | 
| bool | hasLocalContext (void) | 
| void | deleteAllObjects (void) | 
| Deletes all objects. | |
| void | setGridOffset (Quantity_Length offset) | 
| bool | isCommandActive (void) | 
| bool | isDrawing (void) | 
| QoccCommand * | getCommand (void) | 
| void | setCommand (QoccCommand *command) | 
| Sets the current interface command. | |
| void | clearCommand (void) | 
| Remove or cancel the current command. | |
| void | undo (void) | 
| void | redo (void) | 
| void | update (void) | 
| Public Attributes | |
| const Standard_ExtString | aName | 
| const Standard_ExtString const Standard_CString | aDomain | 
| const Standard_ExtString const Standard_CString const Standard_Real | ViewSize | 
| Private Member Functions | |
| Handle (V3d_Viewer) myViewer | |
| Handle (AIS_InteractiveContext) myContext | |
| Private Attributes | |
| Aspect_GridType | myGridType | 
| Aspect_GridDrawMode | myGridMode | 
| Quantity_NameOfColor | myGridColor | 
| Quantity_NameOfColor | myGridTenthColor | 
| QoccCommand * | myCommand | 
| QoccDocument * | myDocument | 
| bool | myIsDrawing | 
| TopAbs_ShapeEnum | myLcType | 
Definition at line 39 of file qocccontroller.h.
| QoccController::QoccController | ( | ) | 
Definition at line 43 of file qocccontroller.cpp.
References gridOn(), gridXY(), myCommand, myDocument, myGridColor, myGridMode, myGridTenthColor, myGridType, myIsDrawing, myLcType, and setGridOffset().
Here is the call graph for this function:

| QoccController::QoccController | ( | QoccDocument * | qDoc | ) | 
Definition at line 71 of file qocccontroller.cpp.
References gridOn(), gridXY(), myCommand, myDocument, myGridColor, myGridMode, myGridTenthColor, myGridType, myIsDrawing, myLcType, and setGridOffset().
Here is the call graph for this function:

| QoccController::~QoccController | ( | ) | 
| void QoccController::clearAllLocalContexts | ( | void | ) | 
Definition at line 306 of file qocccontroller.cpp.
References hasLocalContext().
Referenced by QoccMainWindow::bottle(), QoccMainWindow::fileNew(), QoccMainWindow::fileOpen(), and QoccMainWindow::selectNeutralPoint().
Here is the call graph for this function:

| void QoccController::clearCommand | ( | void | ) | 
Remove or cancel the current command.
Definition at line 267 of file qocccontroller.cpp.
References myCommand.
Referenced by QoccMainWindow::about(), QoccMainWindow::bottle(), QoccMainWindow::cancelDraw(), clickEvent(), QoccMainWindow::copy(), QoccMainWindow::cut(), QoccMainWindow::fileClose(), QoccMainWindow::fileNew(), QoccMainWindow::fileOpen(), QoccMainWindow::filePrint(), QoccMainWindow::fileSave(), QoccMainWindow::paste(), QoccMainWindow::redo(), setCommand(), and QoccMainWindow::undo().
Here is the caller graph for this function:

| void QoccController::clearLocalContext | ( | void | ) | 
Definition at line 297 of file qocccontroller.cpp.
References hasLocalContext().
Referenced by QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), and setLocalContext().
Here is the call graph for this function:

Here is the caller graph for this function:

| void QoccController::clickEvent | ( | Qocc3dWidget * | widget, | |
| QMouseEvent * | e | |||
| ) |  [slot] | 
Definition at line 331 of file qocccontroller.cpp.
References clearCommand(), QoccCommand::clickEvent(), QoccCommand::isDrawing(), myCommand, and update().
| void QoccController::deleteAllObjects | ( | void | ) | 
Deletes all objects.
This function deletes all dispayed objects from the AIS context. No parameters.
Definition at line 173 of file qocccontroller.cpp.
Referenced by QoccMainWindow::bottle(), and QoccMainWindow::fileNew().
| void QoccController::error | ( | int | errorCode, | |
| QString & | errorDescription | |||
| ) |  [signal] | 
| QoccCommand* QoccController::getCommand | ( | void | ) |  [inline] | 
Definition at line 73 of file qocccontroller.h.
| QoccDocument* QoccController::getDocument | ( | void | ) |  [inline] | 
Definition at line 52 of file qocccontroller.h.
Referenced by QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), QoccCmdLine2Pt::moveEvent(), QoccCmdCircle2Pt::moveEvent(), and QoccMainWindow::QoccMainWindow().
Here is the caller graph for this function:

| void QoccController::gridCirc | ( | void | ) |  [slot] | 
Select a circular grid.
Definition at line 248 of file qocccontroller.cpp.
References myGridColor, myGridMode, myGridTenthColor, and myGridType.
| void QoccController::gridOff | ( | void | ) |  [slot] | 
| void QoccController::gridOn | ( | void | ) |  [slot] | 
Turn the grid on.
Definition at line 220 of file qocccontroller.cpp.
References myGridMode, and myGridType.
Referenced by QoccController().
| void QoccController::gridRect | ( | void | ) |  [slot] | 
Select a rectangular grid.
Definition at line 238 of file qocccontroller.cpp.
References myGridColor, myGridMode, myGridTenthColor, and myGridType.
| void QoccController::gridXY | ( | void | ) |  [slot] | 
Sets the privileged plane to the XY Axis.
Definition at line 186 of file qocccontroller.cpp.
References myGridColor, and myGridTenthColor.
Referenced by QoccController().
| void QoccController::gridXZ | ( | void | ) |  [slot] | 
Sets the privileged plane to the XZ Axis.
Note the negative direction of the Y axis. This is corrrect for a right-handed co-ordinate set.
Definition at line 199 of file qocccontroller.cpp.
References myGridColor, and myGridTenthColor.
| void QoccController::gridYZ | ( | void | ) |  [slot] | 
Sets the privileged plane to the XY Axis.
Definition at line 209 of file qocccontroller.cpp.
References myGridColor, and myGridTenthColor.
| QoccController::Handle | ( | AIS_InteractiveContext | ) |  [private] | 
| QoccController::Handle | ( | V3d_Viewer | ) |  [private] | 
| QoccController::Handle | ( | V3d_Viewer | ) | const | 
| QoccController::Handle | ( | AIS_InteractiveContext | ) |  [inline] | 
Definition at line 51 of file qocccontroller.h.
| QoccController::Handle | ( | V3d_Viewer | ) |  [inline] | 
Definition at line 50 of file qocccontroller.h.
| bool QoccController::hasLocalContext | ( | void | ) | 
Definition at line 314 of file qocccontroller.cpp.
Referenced by clearAllLocalContexts(), clearLocalContext(), QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), and QoccCmdCircle2Pt::clickEvent().
Here is the caller graph for this function:

| int QoccController::id | ( | void | ) |  [inline] | 
Definition at line 53 of file qocccontroller.h.
| bool QoccController::isCommandActive | ( | void | ) |  [inline] | 
Definition at line 70 of file qocccontroller.h.
| bool QoccController::isDrawing | ( | void | ) | 
Definition at line 155 of file qocccontroller.cpp.
References QoccCommand::isDrawing(), and myCommand.
Referenced by Qocc3dWidget::mouseMoveEvent().
Here is the call graph for this function:

Here is the caller graph for this function:

| TopAbs_ShapeEnum QoccController::localContext | ( | ) |  [inline] | 
Definition at line 60 of file qocccontroller.h.
Referenced by QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), and QoccCmdCircle2Pt::clickEvent().
Here is the caller graph for this function:

| void QoccController::moveEvent | ( | Qocc3dWidget * | widget, | |
| QMouseEvent * | e | |||
| ) |  [slot] | 
Definition at line 319 of file qocccontroller.cpp.
References QoccCommand::isDrawing(), QoccCommand::moveEvent(), and myCommand.
| void QoccController::redo | ( | void | ) | 
Definition at line 358 of file qocccontroller.cpp.
References myDocument, QoccDocument::redo(), and update().
Referenced by QoccMainWindow::redo().
Here is the call graph for this function:

| void QoccController::setCommand | ( | QoccCommand * | command | ) | 
Sets the current interface command.
Definition at line 258 of file qocccontroller.cpp.
References clearCommand(), and myCommand.
Referenced by QoccMainWindow::circleCentre(), QoccMainWindow::line2Pt(), and QoccMainWindow::vertex().
Here is the call graph for this function:

| void QoccController::setGridOffset | ( | Quantity_Length | offset | ) | 
Definition at line 276 of file qocccontroller.cpp.
Referenced by QoccController().
Here is the caller graph for this function:

| void QoccController::setLocalContext | ( | TopAbs_ShapeEnum | lcType | ) | 
Definition at line 289 of file qocccontroller.cpp.
References clearLocalContext(), and myLcType.
Referenced by QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), QoccMainWindow::selectCompounds(), QoccMainWindow::selectCompSolids(), QoccMainWindow::selectEdges(), QoccMainWindow::selectFaces(), QoccMainWindow::selectShapes(), QoccMainWindow::selectShells(), QoccMainWindow::selectSolids(), QoccMainWindow::selectVertices(), and QoccMainWindow::selectWires().
Here is the call graph for this function:

Here is the caller graph for this function:

| void QoccController::undo | ( | void | ) | 
Definition at line 352 of file qocccontroller.cpp.
References myDocument, QoccDocument::undo(), and update().
Referenced by QoccMainWindow::undo().
Here is the call graph for this function:

| void QoccController::update | ( | void | ) | 
Definition at line 364 of file qocccontroller.cpp.
Referenced by clickEvent(), QoccCmdPoint::clickEvent(), QoccCmdLine2Pt::clickEvent(), QoccCmdCircle2Pt::clickEvent(), redo(), and undo().
Here is the caller graph for this function:

| const Standard_ExtString const Standard_CString QoccController::aDomain | 
Definition at line 56 of file qocccontroller.h.
| const Standard_ExtString QoccController::aName | 
Definition at line 56 of file qocccontroller.h.
| QoccCommand* QoccController::myCommand  [private] | 
Definition at line 108 of file qocccontroller.h.
Referenced by clearCommand(), clickEvent(), isDrawing(), moveEvent(), QoccController(), setCommand(), and ~QoccController().
| QoccDocument* QoccController::myDocument  [private] | 
Definition at line 109 of file qocccontroller.h.
Referenced by QoccController(), redo(), and undo().
| Quantity_NameOfColor QoccController::myGridColor  [private] | 
Definition at line 106 of file qocccontroller.h.
Referenced by gridCirc(), gridRect(), gridXY(), gridXZ(), gridYZ(), and QoccController().
| Aspect_GridDrawMode QoccController::myGridMode  [private] | 
Definition at line 105 of file qocccontroller.h.
Referenced by gridCirc(), gridOn(), gridRect(), and QoccController().
| Quantity_NameOfColor QoccController::myGridTenthColor  [private] | 
Definition at line 107 of file qocccontroller.h.
Referenced by gridCirc(), gridRect(), gridXY(), gridXZ(), gridYZ(), and QoccController().
| Aspect_GridType QoccController::myGridType  [private] | 
Definition at line 104 of file qocccontroller.h.
Referenced by gridCirc(), gridOn(), gridRect(), and QoccController().
| bool QoccController::myIsDrawing  [private] | 
| TopAbs_ShapeEnum QoccController::myLcType  [private] | 
Definition at line 111 of file qocccontroller.h.
Referenced by QoccController(), and setLocalContext().
| const Standard_ExtString const Standard_CString const Standard_Real QoccController::ViewSize | 
Definition at line 56 of file qocccontroller.h.
 1.4.7
 1.4.7