From: ana Date: Wed, 30 Jan 2013 10:58:35 +0000 (+0000) Subject: Implementation of "EDF 1702 GEOM: Displaying of GEOM object in 3D viewer while editin... X-Git-Tag: V6_main_FINAL~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=549029bef0a911f770b025267e81f11dbbab8aa5;p=modules%2Fgeom.git Implementation of "EDF 1702 GEOM: Displaying of GEOM object in 3D viewer while editing a group" and "EDF 1630 GEOM: Specific color when editing a group" issues. --- diff --git a/doc/salome/gui/GEOM/images/editgroup.png b/doc/salome/gui/GEOM/images/editgroup.png index 935fabeac..d0a3c314b 100755 Binary files a/doc/salome/gui/GEOM/images/editgroup.png and b/doc/salome/gui/GEOM/images/editgroup.png differ diff --git a/doc/salome/gui/GEOM/images/pref15.png b/doc/salome/gui/GEOM/images/pref15.png index d93bd2f04..f58d73091 100755 Binary files a/doc/salome/gui/GEOM/images/pref15.png and b/doc/salome/gui/GEOM/images/pref15.png differ diff --git a/doc/salome/gui/GEOM/input/geometry_preferences.doc b/doc/salome/gui/GEOM/input/geometry_preferences.doc index 00301daf9..d0c94768d 100644 --- a/doc/salome/gui/GEOM/input/geometry_preferences.doc +++ b/doc/salome/gui/GEOM/input/geometry_preferences.doc @@ -36,8 +36,10 @@ of values set in spin boxes.
  • Deflection coefficient - allows to define default deflection coefficient for lines and surfaces. A smaller coefficient provides better quality of a shape in the viewer.
  • -
  • Default front material - allows to define default front face material.
  • -
  • Default back material - allows to define default back face material.
  • +
  • Show predefined materials in popup menu - allows to customize the displaying of popup menu with list of +predefined materials.
  • +
  • Default material - allows to define default material.
  • +
  • Subshapes color for editing a group - allows to select default color for subshapes in a group.
  • Edges width - allows to define default width of the edges.
  • Isolines width - allows to define default width of the isolines.
  • Preview edges width - allows to define width of the edges for preview.
  • diff --git a/doc/salome/gui/GEOM/input/working_with_groups.doc b/doc/salome/gui/GEOM/input/working_with_groups.doc index 99b98bac9..6b9d85c1c 100644 --- a/doc/salome/gui/GEOM/input/working_with_groups.doc +++ b/doc/salome/gui/GEOM/input/working_with_groups.doc @@ -103,10 +103,19 @@ To \b Edit an existing group in the main menu select New entity > Group > Edit. This menu is designed in the same way as the Create a group menu. -\n Dialog Box: +\n When a GEOM group is edited, the main shape appears in the 3D viewer in the same mode +as it is displayed in the viewer. If the main shape was not displayed in the viewer, then +the default mode defined in the preferences will be used. + +\n Working with Dialog Box: \image html editgroup.png +\n The subshapes already in the group are displayed in the 3D viewer with a specific color, +defined via preferences. The IDs of the subshapes already in the group also are displayed in +a specific color in the dialog box. When user adds some subshapes, the new IDs are +displayed in the other color. + \n The \b Result of the operation will be a \b GEOM_Object. \n TUI Command: diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 13ae02f2d..8cd1ae6a7 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -190,12 +190,12 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg (Mode mode, GeometryGUI* theGeometryGUI, QW GroupGUI_GroupDlg::~GroupGUI_GroupDlg() { + GEOM_Displayer* aDisplayer = getDisplayer(); if (myIsHiddenMain) { - GEOM_Displayer* aDisplayer = getDisplayer(); aDisplayer->Display(myMainObj); - aDisplayer->Display(myGroup); myIsHiddenMain = false; } + aDisplayer->Display(myGroup); myDmMode = -1; }