#include <GeometryGUI.h>

Public Slots | |
| virtual bool | deactivateModule (SUIT_Study *) |
| virtual bool | activateModule (SUIT_Study *) |
| virtual void | OnKeyPress (SUIT_ViewWindow *, QKeyEvent *) |
| virtual void | OnMousePress (SUIT_ViewWindow *, QMouseEvent *) |
| virtual void | OnMouseMove (SUIT_ViewWindow *, QMouseEvent *) |
Signals | |
| void | SignalDeactivateActiveDialog () |
| void | SignalCloseAllDialogs () |
| void | SignalDefaultStepValueChanged (double newVal) |
Public Member Functions | |
| GeometryGUI () | |
| ~GeometryGUI () | |
| virtual LightApp_Displayer * | displayer () |
| virtual void | initialize (CAM_Application *) |
| virtual QString | engineIOR () const |
| GEOM_Client & | GetShapeReader () |
| QDialog * | GetActiveDialogBox () |
| void | SetActiveDialogBox (QDialog *aDlg) |
| void | EmitSignalDeactivateDialog () |
| void | EmitSignalCloseAllDialogs () |
| void | EmitSignalDefaultStepValueChanged (double newVal) |
| void | OnGUIEvent (int id) |
| void | SetWorkingPlane (gp_Ax3 wp) |
| gp_Ax3 | GetWorkingPlane () |
| void | ActiveWorkingPlane () |
| virtual bool | renameObject (const QString &, const QString &) |
Return true if rename operation finished successfully, false otherwise. | |
| virtual void | windows (QMap< int, int > &) const |
| virtual void | viewManagers (QStringList &) const |
| virtual void | contextMenuPopup (const QString &, QMenu *, QString &) |
| virtual void | createPreferences () |
| virtual void | preferencesChanged (const QString &, const QString &) |
| int | getLocalSelectionMode () const |
| void | setLocalSelectionMode (const int mode) |
| virtual void | storeVisualParameters (int savePoint) |
| Store visual parameters. | |
| virtual void | restoreVisualParameters (int savePoint) |
| Restore visual parameters. | |
Static Public Member Functions | |
| static | Handle (Graphic3d_HArray1OfBytes) getTexture(SalomeApp_Study * |
| static int int &static bool | InitGeomGen () |
| static GEOM::GEOM_Gen_var | GetGeomGen () |
| static CORBA::Object_var | ClientSObjectToObject (_PTR(SObject) theSObject) |
| static SALOMEDS::Study_var | ClientStudyToStudy (_PTR(Study) theStudy) |
| static void | Modified (bool=true) |
Data Fields | |
| static | int |
Static Public Attributes | |
| static GEOM::GEOM_Gen_var | myComponentGeom = GEOM::GEOM_Gen::_nil() |
Protected Slots | |
| virtual void | onViewManagerAdded (SUIT_ViewManager *) |
| virtual void | onViewManagerRemoved (SUIT_ViewManager *) |
Protected Member Functions | |
| virtual LightApp_Selection * | createSelection () const |
Private Types | |
| typedef QMap< long, Handle(Graphic3d_HArray1OfBytes)> | TextureMap |
| typedef QMap< long, TextureMap > | StudyTextureMap |
| typedef QMap< QString, GEOMGUI * > | GUIMap |
Private Slots | |
| void | OnGUIEvent () |
| void | onWindowActivated (SUIT_ViewWindow *) |
| void | onViewAboutToShow () |
Private Member Functions | |
| GEOMGUI * | getLibrary (const QString &libraryName) |
| void | createGeomAction (const int id, const QString &po_id, const QString &icon_id=QString(""), const int key=0, const bool toggle=false, const QString &shortcutAction=QString()) |
| void | createPopupItem (const int, const QString &clients, const QString &types, const bool isSingle=false, const int isVisible=-1, const bool isExpandAll=false, const bool isOCC=false, const int parentId=-1) |
| void | createOriginAndBaseVectors () |
Private Attributes | |
| GUIMap | myGUIMap |
| QDialog * | myActiveDialogBox |
| gp_Ax3 | myWorkingPlane |
| QMap< int, QString > | myRules |
| QList< GEOMGUI_OCCSelector * > | myOCCSelectors |
| QList< LightApp_VTKSelector * > | myVTKSelectors |
| LightApp_Displayer * | myDisplayer |
| int | myLocalSelectionMode |
Static Private Attributes | |
| static StudyTextureMap | myTextureMap |
Friends | |
| class | DisplayGUI |
typedef QMap<long, Handle(Graphic3d_HArray1OfBytes)> GeometryGUI.TextureMap [private] |
typedef QMap<long, TextureMap> GeometryGUI.StudyTextureMap [private] |
typedef QMap<QString, GEOMGUI*> GeometryGUI.GUIMap [private] |
| GeometryGUI::GeometryGUI | ( | ) |
References GEOM_Partition1.comp, GEOM_ALLOBJECTS, myActiveDialogBox, myComponentGeom, myDisplayer, myLocalSelectionMode, and myWorkingPlane.
| GeometryGUI::~GeometryGUI | ( | ) |
References myGUIMap, myOCCSelectors, and myVTKSelectors.
| LightApp_Displayer * GeometryGUI::displayer | ( | ) | [virtual] |
References myDisplayer.
| void GeometryGUI::initialize | ( | CAM_Application * | app | ) | [virtual] |
References GEOM.COMPOUND, createGeomAction(), GEOMOp.Op2dSketcher, GEOMOp.Op3dSketcher, GEOMOp.OpAddPointOnEdge, GEOMOp.OpAngle, GEOMOp.OpArc, GEOMOp.OpArchimede, GEOMOp.OpAutoColor, GEOMOp.OpBoundingBox, GEOMOp.OpBox, GEOMOp.OpCenterMass, GEOMOp.OpChamfer, GEOMOp.OpChangeLoc, GEOMOp.OpCheckCompound, GEOMOp.OpCheckGeom, GEOMOp.OpCheckShape, GEOMOp.OpCircle, GEOMOp.OpCloseContour, GEOMOp.OpColor, GEOMOp.OpCommon, GEOMOp.OpCompound, GEOMOp.OpCone, GEOMOp.OpCurve, GEOMOp.OpCut, GEOMOp.OpCylinder, GEOMOp.OpDecrNbIsos, GEOMOp.OpDecrTransparency, GEOMOp.OpDeflection, GEOMOp.OpDelete, GEOMOp.OpDisk, GEOMOp.OpDisplayMode, GEOMOp.OpEdge, GEOMOp.OpEllipse, GEOMOp.OpExplode, GEOMOp.OpExplodeBlock, GEOMOp.OpExport, GEOMOp.OpFace, GEOMOp.OpFillet1d, GEOMOp.OpFillet2d, GEOMOp.OpFillet3d, GEOMOp.OpFilling, GEOMOp.OpFreeBoundaries, GEOMOp.OpFreeFaces, GEOMOp.OpFuse, GEOMOp.OpGlueEdges, GEOMOp.OpGlueFaces, GEOMOp.OpGroupCreate, GEOMOp.OpGroupCreatePopup, GEOMOp.OpGroupEdit, GEOMOp.OpHexaSolid, GEOMOp.OpHide, GEOMOp.OpHideAll, GEOMOp.OpHideChildren, GEOMOp.OpImport, GEOMOp.OpIncrNbIsos, GEOMOp.OpIncrTransparency, GEOMOp.OpInertia, GEOMOp.OpIsos, GEOMOp.OpLCS, GEOMOp.OpLimitTolerance, GEOMOp.OpLine, GEOMOp.OpMinDistance, GEOMOp.OpMirror, GEOMOp.OpMultiRotate, GEOMOp.OpMultiTransform, GEOMOp.OpMultiTranslate, GEOMOp.OpNoAutoColor, GEOMOp.OpNormale, GEOMOp.OpOffset, GEOMOp.OpOrientation, GEOMOp.OpOriginAndVectors, GEOMOp.OpPartition, GEOMOp.OpPipe, GEOMOp.OpPipeTShape, GEOMOp.OpPlane, GEOMOp.OpPoint, GEOMOp.OpPointCoordinates, GEOMOp.OpPointMarker, GEOMOp.OpPrism, GEOMOp.OpProjection, GEOMOp.OpPropagate, GEOMOp.OpProperties, GEOMOp.OpPublishObject, GEOMOp.OpQuadFace, GEOMOp.OpRectangle, GEOMOp.OpReimport, GEOMOp.OpRemoveExtraEdges, GEOMOp.OpRemoveIntWires, GEOMOp.OpRevolution, GEOMOp.OpRotate, GEOMOp.OpScale, GEOMOp.OpSection, GEOMOp.OpSelectAll, GEOMOp.OpSelectCompound, GEOMOp.OpSelectEdge, GEOMOp.OpSelectFace, GEOMOp.OpSelectShell, GEOMOp.OpSelectSolid, GEOMOp.OpSelectVertex, GEOMOp.OpSelectWire, GEOMOp.OpSewing, GEOMOp.OpShading, GEOMOp.OpShapeProcess, GEOMOp.OpShapesOnShape, GEOMOp.OpSharedShapes, GEOMOp.OpShell, GEOMOp.OpShow, GEOMOp.OpShowAll, GEOMOp.OpShowChildren, GEOMOp.OpShowOnly, GEOMOp.OpSolid, GEOMOp.OpSphere, GEOMOp.OpSuppressFaces, GEOMOp.OpSuppressHoles, GEOMOp.OpSwitchVectors, GEOMOp.OpTolerance, GEOMOp.OpTorus, GEOMOp.OpTranslate, GEOMOp.OpTransparency, GEOMOp.OpUnpublishObject, GEOMOp.OpVector, GEOMOp.OpVectors, GEOMOp.OpWhatIs, GEOMOp.OpWire, GEOMOp.OpWireframe, and GEOM.VERTEX.
| QString GeometryGUI::engineIOR | ( | ) | const [virtual] |
References GetGeomGen().
| static GeometryGUI.Handle | ( | Graphic3d_HArray1OfBytes | ) | [static] |
| bool GeometryGUI::InitGeomGen | ( | ) | [static] |
References myComponentGeom.
| GEOM::GEOM_Gen_var GeometryGUI::GetGeomGen | ( | ) | [static] |
References InitGeomGen(), and myComponentGeom.
| CORBA::Object_var GeometryGUI::ClientSObjectToObject | ( | _PTR(SObject) | theSObject | ) | [static] |
| SALOMEDS::Study_var GeometryGUI::ClientStudyToStudy | ( | _PTR(Study) | theStudy | ) | [static] |
| void GeometryGUI::Modified | ( | bool | theIsUpdateActions = true | ) | [static] |
| GEOM_Client& GeometryGUI.GetShapeReader | ( | ) |
References SHAPE_READER.
| QDialog* GeometryGUI.GetActiveDialogBox | ( | ) |
| void GeometryGUI::SetActiveDialogBox | ( | QDialog * | aDlg | ) |
References myActiveDialogBox.
| void GeometryGUI::EmitSignalDeactivateDialog | ( | ) |
References SignalDeactivateActiveDialog().
| void GeometryGUI::EmitSignalCloseAllDialogs | ( | ) |
References SignalCloseAllDialogs().
| void GeometryGUI::EmitSignalDefaultStepValueChanged | ( | double | newVal | ) |
References SignalDefaultStepValueChanged().
| void GeometryGUI::OnGUIEvent | ( | int | id | ) |
References createOriginAndBaseVectors(), GetGeomGen(), getLibrary(), GEOMGUI.OnGUIEvent(), GEOMOp.Op2dSketcher, GEOMOp.Op3dSketcher, GEOMOp.OpAddPointOnEdge, GEOMOp.OpAdvancedNoOp, GEOMOp.OpAngle, GEOMOp.OpArc, GEOMOp.OpArchimede, GEOMOp.OpAutoColor, GEOMOp.OpBoundingBox, GEOMOp.OpBox, GEOMOp.OpCenterMass, GEOMOp.OpChamfer, GEOMOp.OpChangeLoc, GEOMOp.OpCheckCompound, GEOMOp.OpCheckGeom, GEOMOp.OpCheckShape, GEOMOp.OpCircle, GEOMOp.OpClipping, GEOMOp.OpCloseContour, GEOMOp.OpColor, GEOMOp.OpCommon, GEOMOp.OpCompound, GEOMOp.OpCone, GEOMOp.OpCurve, GEOMOp.OpCut, GEOMOp.OpCylinder, GEOMOp.OpDecrNbIsos, GEOMOp.OpDecrTransparency, GEOMOp.OpDeflection, GEOMOp.OpDelete, GEOMOp.OpDisk, GEOMOp.OpDisplayMode, GEOMOp.OpEdge, GEOMOp.OpEllipse, GEOMOp.OpExplode, GEOMOp.OpExplodeBlock, GEOMOp.OpExport, GEOMOp.OpFace, GEOMOp.OpFillet1d, GEOMOp.OpFillet2d, GEOMOp.OpFillet3d, GEOMOp.OpFilling, GEOMOp.OpFreeBoundaries, GEOMOp.OpFreeFaces, GEOMOp.OpFuse, GEOMOp.OpGlueEdges, GEOMOp.OpGlueFaces, GEOMOp.OpGroupCreate, GEOMOp.OpGroupCreatePopup, GEOMOp.OpGroupEdit, GEOMOp.OpHexaSolid, GEOMOp.OpHide, GEOMOp.OpHideAll, GEOMOp.OpHideChildren, GEOMOp.OpImport, GEOMOp.OpIncrNbIsos, GEOMOp.OpIncrTransparency, GEOMOp.OpInertia, GEOMOp.OpIsos, GEOMOp.OpLCS, GEOMOp.OpLimitTolerance, GEOMOp.OpLine, GEOMOp.OpMinDistance, GEOMOp.OpMirror, GEOMOp.OpMultiRotate, GEOMOp.OpMultiTransform, GEOMOp.OpMultiTranslate, GEOMOp.OpNoAutoColor, GEOMOp.OpNormale, GEOMOp.OpOffset, GEOMOp.OpOrientation, GEOMOp.OpOriginAndVectors, GEOMOp.OpPartition, GEOMOp.OpPipe, GEOMOp.OpPipeTShape, GEOMOp.OpPlane, GEOMOp.OpPoint, GEOMOp.OpPointCoordinates, GEOMOp.OpPointMarker, GEOMOp.OpPrism, GEOMOp.OpProjection, GEOMOp.OpPropagate, GEOMOp.OpProperties, GEOMOp.OpPublishObject, GEOMOp.OpQuadFace, GEOMOp.OpRectangle, GEOMOp.OpReimport, GEOMOp.OpRemoveExtraEdges, GEOMOp.OpRemoveIntWires, GEOMOp.OpRevolution, GEOMOp.OpRotate, GEOMOp.OpScale, GEOMOp.OpSection, GEOMOp.OpSelectAll, GEOMOp.OpSelectCompound, GEOMOp.OpSelectEdge, GEOMOp.OpSelectFace, GEOMOp.OpSelectShell, GEOMOp.OpSelectSolid, GEOMOp.OpSelectVertex, GEOMOp.OpSelectWire, GEOMOp.OpSewing, GEOMOp.OpShading, GEOMOp.OpShapeProcess, GEOMOp.OpShapesOnShape, GEOMOp.OpSharedShapes, GEOMOp.OpShell, GEOMOp.OpShow, GEOMOp.OpShowAll, GEOMOp.OpShowChildren, GEOMOp.OpShowOnly, GEOMOp.OpSolid, GEOMOp.OpSphere, GEOMOp.OpSuppressFaces, GEOMOp.OpSuppressHoles, GEOMOp.OpSwitchVectors, GEOMOp.OpTolerance, GEOMOp.OpTorus, GEOMOp.OpTranslate, GEOMOp.OpTransparency, GEOMOp.OpUnpublishObject, GEOMOp.OpVector, GEOMOp.OpVectors, GEOMOp.OpWhatIs, GEOMOp.OpWire, and GEOMOp.OpWireframe.
| void GeometryGUI.SetWorkingPlane | ( | gp_Ax3 | wp | ) |
| gp_Ax3 GeometryGUI.GetWorkingPlane | ( | ) |
| void GeometryGUI::ActiveWorkingPlane | ( | ) |
References Handle(), and myWorkingPlane.
| bool GeometryGUI::renameObject | ( | const QString & | entry, |
| const QString & | name | ||
| ) | [virtual] |
Rename object by entry.
| entry | entry of the object |
| name | new name of the object |
References ClientSObjectToObject().
| void GeometryGUI::viewManagers | ( | QStringList & | lst | ) | const [virtual] |
| void GeometryGUI::contextMenuPopup | ( | const QString & | client, |
| QMenu * | menu, | ||
| QString & | title | ||
| ) | [virtual] |
References ClientSObjectToObject(), GEOM_IMPORT, Handle(), and GEOMOp.OpReimport.
| void GeometryGUI::createPreferences | ( | ) | [virtual] |
References DEFLECTION_MIN, PAL_MESH_030_geometry.i, GEOM.MS_10, GEOM.MS_70, GEOM.MT_POINT, and GEOM.MT_USER.
| void GeometryGUI::preferencesChanged | ( | const QString & | section, |
| const QString & | param | ||
| ) | [virtual] |
References EmitSignalDefaultStepValueChanged().
| int GeometryGUI::getLocalSelectionMode | ( | ) | const |
References myLocalSelectionMode.
| void GeometryGUI::setLocalSelectionMode | ( | const int | mode | ) |
References myLocalSelectionMode.
| void GeometryGUI::storeVisualParameters | ( | int | savePoint | ) | [virtual] |
This method is called just before the study document is saved. Store visual parameters in AttributeParameter attribue(s)
References COLOR_PROP, DEFLECTION_COEFF_PROP, DIGIT_SEPARATOR, DISPLAY_MODE_PROP, PAL_MESH_030_geometry.i, ISOS_PROP, MARKER_TYPE_PROP, myComponentGeom, NAME_SEPARATOR, OPACITY_PROP, TRANSPARENCY_PROP, VECTOR_MODE_PROP, and VISIBILITY_PROP.
| void GeometryGUI::restoreVisualParameters | ( | int | savePoint | ) | [virtual] |
This method is called after the study document is opened. Restore visual parameters from AttributeParameter attribue(s)
References COLOR_PROP, DEFLECTION_COEFF_PROP, DIGIT_SEPARATOR, DISPLAY_MODE_PROP, displayer(), ISOS_PROP, MARKER_TYPE_PROP, myComponentGeom, NAME_SEPARATOR, OPACITY_PROP, TRANSPARENCY_PROP, VECTOR_MODE_PROP, and VISIBILITY_PROP.
| bool GeometryGUI::deactivateModule | ( | SUIT_Study * | study | ) | [virtual, slot] |
| bool GeometryGUI::activateModule | ( | SUIT_Study * | study | ) | [virtual, slot] |
| void GeometryGUI::OnKeyPress | ( | SUIT_ViewWindow * | w, |
| QKeyEvent * | e | ||
| ) | [virtual, slot] |
References myGUIMap, and GEOMGUI.OnKeyPress().
| void GeometryGUI::OnMousePress | ( | SUIT_ViewWindow * | w, |
| QMouseEvent * | e | ||
| ) | [virtual, slot] |
References myGUIMap, and GEOMGUI.OnMousePress().
| void GeometryGUI::OnMouseMove | ( | SUIT_ViewWindow * | w, |
| QMouseEvent * | e | ||
| ) | [virtual, slot] |
References myGUIMap, and GEOMGUI.OnMouseMove().
| void GeometryGUI::onViewManagerAdded | ( | SUIT_ViewManager * | vm | ) | [protected, virtual, slot] |
References myOCCSelectors, myVTKSelectors, OnKeyPress(), OnMouseMove(), and OnMousePress().
| void GeometryGUI::onViewManagerRemoved | ( | SUIT_ViewManager * | vm | ) | [protected, virtual, slot] |
References myOCCSelectors, and myVTKSelectors.
| void GeometryGUI::OnGUIEvent | ( | ) | [private, slot] |
| void GeometryGUI::onWindowActivated | ( | SUIT_ViewWindow * | win | ) | [private, slot] |
| void GeometryGUI::onViewAboutToShow | ( | ) | [private, slot] |
References GEOMOp.OpSwitchVectors.
| void GeometryGUI.SignalDeactivateActiveDialog | ( | ) | [signal] |
| void GeometryGUI.SignalCloseAllDialogs | ( | ) | [signal] |
| void GeometryGUI.SignalDefaultStepValueChanged | ( | double | newVal | ) | [signal] |
| LightApp_Selection * GeometryGUI::createSelection | ( | ) | const [protected, virtual] |
| void GeometryGUI::createGeomAction | ( | const int | id, |
| const QString & | po_id, | ||
| const QString & | icon_id = QString(""), |
||
| const int | key = 0, |
||
| const bool | toggle = false, |
||
| const QString & | shortcutAction = QString() |
||
| ) | [private] |
References OnGUIEvent().
| void GeometryGUI.createPopupItem | ( | const int | , |
| const QString & | clients, | ||
| const QString & | types, | ||
| const bool | isSingle = false, |
||
| const int | isVisible = -1, |
||
| const bool | isExpandAll = false, |
||
| const bool | isOCC = false, |
||
| const int | parentId = -1 |
||
| ) | [private] |
| void GeometryGUI::createOriginAndBaseVectors | ( | ) | [private] |
References ClientStudyToStudy(), and GetGeomGen().
friend class DisplayGUI [friend] |
GEOM::GEOM_Gen_var GeometryGUI::myComponentGeom = GEOM::GEOM_Gen::_nil() [static] |
GUIMap GeometryGUI.myGUIMap [private] |
QDialog* GeometryGUI.myActiveDialogBox [private] |
gp_Ax3 GeometryGUI.myWorkingPlane [private] |
QMap<int,QString> GeometryGUI.myRules [private] |
GeometryGUI::StudyTextureMap GeometryGUI::myTextureMap [static, private] |
QList<GEOMGUI_OCCSelector*> GeometryGUI.myOCCSelectors [private] |
QList<LightApp_VTKSelector*> GeometryGUI.myVTKSelectors [private] |
LightApp_Displayer* GeometryGUI.myDisplayer [private] |
int GeometryGUI.myLocalSelectionMode [private] |