From: mpa Date: Tue, 24 Jun 2014 08:36:49 +0000 (+0400) Subject: add documentation about "Reduce Study" functionality X-Git-Tag: V7_5_0a1~50^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac61a2cdfc5f166fb3bc17f82e89a460555548cb;p=modules%2Fgeom.git add documentation about "Reduce Study" functionality --- diff --git a/doc/salome/gui/GEOM/images/dialog.png b/doc/salome/gui/GEOM/images/dialog.png index 7fa63d152..8d7e48a96 100644 Binary files a/doc/salome/gui/GEOM/images/dialog.png and b/doc/salome/gui/GEOM/images/dialog.png differ diff --git a/doc/salome/gui/GEOM/images/ob_popup_menu.png b/doc/salome/gui/GEOM/images/ob_popup_menu.png index 1f5435a7a..3aafa729e 100644 Binary files a/doc/salome/gui/GEOM/images/ob_popup_menu.png and b/doc/salome/gui/GEOM/images/ob_popup_menu.png differ diff --git a/doc/salome/gui/GEOM/images/reduce_study_dialog.png b/doc/salome/gui/GEOM/images/reduce_study_dialog.png new file mode 100644 index 000000000..8f53d7aaf Binary files /dev/null and b/doc/salome/gui/GEOM/images/reduce_study_dialog.png differ diff --git a/doc/salome/gui/GEOM/images/tree_popup_menu.png b/doc/salome/gui/GEOM/images/tree_popup_menu.png deleted file mode 100644 index 771ac85be..000000000 Binary files a/doc/salome/gui/GEOM/images/tree_popup_menu.png and /dev/null differ diff --git a/doc/salome/gui/GEOM/images/tree_popup_menu1.png b/doc/salome/gui/GEOM/images/tree_popup_menu1.png new file mode 100644 index 000000000..bfc90aca7 Binary files /dev/null and b/doc/salome/gui/GEOM/images/tree_popup_menu1.png differ diff --git a/doc/salome/gui/GEOM/input/dependency_tree.doc b/doc/salome/gui/GEOM/input/dependency_tree.doc index cf474d785..12d0387e2 100644 --- a/doc/salome/gui/GEOM/input/dependency_tree.doc +++ b/doc/salome/gui/GEOM/input/dependency_tree.doc @@ -175,7 +175,7 @@ user can select it with left mouse click to change its presentation parameters and get access to other useful options by right-clicking on the selected object. -\image html tree_popup_menu.png +\image html tree_popup_menu1.png Some functionalities are available through right-clicking on diff --git a/doc/salome/gui/GEOM/input/reduce_study.doc b/doc/salome/gui/GEOM/input/reduce_study.doc new file mode 100644 index 000000000..8a4f03943 --- /dev/null +++ b/doc/salome/gui/GEOM/input/reduce_study.doc @@ -0,0 +1,56 @@ +/*! + +\page reduce_study_page Reduce Study + +The user sometimes needs to keep in the study only some objects that +present the final result(s) of the design operations and to delete all +other objects which do not contribute to these results. + +The feature is especially useful when the user designs the whole model +through the GUI and wants to generate simplified "clean" Python dump only +at the end of the model construction with no "useless" objects in the +%GEOM module. + +User can open dialog box by selecting desirable object(s) in Object +Browser or OCC Viewer and calling "Reduce study" popup item. + +\image html reduce_study_dialog.png + + +*/ diff --git a/doc/salome/gui/GEOM/input/viewing_geom_obj.doc b/doc/salome/gui/GEOM/input/viewing_geom_obj.doc index 56b74c093..d5bd74fea 100644 --- a/doc/salome/gui/GEOM/input/viewing_geom_obj.doc +++ b/doc/salome/gui/GEOM/input/viewing_geom_obj.doc @@ -66,6 +66,7 @@ geometrical object. TUI Command: sg.DisplayOnly(ID)
  • Hide all dimensions - hides all of the persistent dimensions created for the selected geometrical object.
  • \subpage dependency_tree_page "Show dependency tree" - shows dependency tree of selected objects in new 2D View Window.
  • +
  • \subpage reduce_study_page "Reduce study" - allows to reduce study.
  • Dump view - exports an object from the viewer in bmp, png, jpg or jpeg image format.
  • Change background - allows to redefine the background diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index da06a52d7..6ad612b2a 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -1630,6 +1630,7 @@ void GeometryGUI::initialize( CAM_Application* app ) mgr->insert( action( GEOMOp::OpShowDependencyTree ), -1, -1 ); // Show dependency tree mgr->setRule( action( GEOMOp::OpShowDependencyTree ), clientOCCorVTKorOB + " and selcount>0 and ($component={'GEOM'}) and type='Shape'", QtxPopupMgr::VisibleRule ); + mgr->insert( separator(), -1, -1 ); // ----------- mgr->insert( action( GEOMOp::OpReduceStudy ), -1, -1 ); // Reduce Study mgr->setRule( action( GEOMOp::OpReduceStudy ), clientOCCorVTKorOB + " and selcount>0 and ($component={'GEOM'}) and type='Shape'", QtxPopupMgr::VisibleRule ); diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx index f51d100d1..f48b2d82b 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx @@ -686,10 +686,11 @@ void GEOMToolsGUI_ReduceStudyDlg::clickOnOk() //================================================================================= // function : clickOnHelp() -// purpose : called when Help button was clicked +// purpose : called when Help button was clicked to open a help page //================================================================================= void GEOMToolsGUI_ReduceStudyDlg::clickOnHelp() { + myApp->onHelpContextModule( "GEOM", "reduce_study_page.html" ); } GEOMToolsGUI_TreeWidgetItem::GEOMToolsGUI_TreeWidgetItem( QTreeWidget* view, const QStringList &strings,