From: vsv Date: Mon, 28 Sep 2015 09:57:27 +0000 (+0300) Subject: Update documentation X-Git-Tag: V_1.4.0_demo1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83911ef142b8cf487819bd3dccd22f4dc9047780;p=modules%2Fshaper.git Update documentation --- diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 42d0e9fff..d769b8708 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -7,9 +7,9 @@ ELSE (WIN32) ENDIF(WIN32) IF(HAVE_SALOME) - SET(EXCLUDE_DOC_DIR "*/AppElements/*") + SET(EXCLUDE_DOC_DIR "*/AppElements/* */OpenParts/*") ELSE(HAVE_SALOME) - SET(EXCLUDE_DOC_DIR "*/NewGeom/*") + SET(EXCLUDE_DOC_DIR "*/NewGeom/* */Shaper/*") ENDIF(HAVE_SALOME) CONFIGURE_FILE(doxyfile.in diff --git a/doc/OpenParts/general_architecture.doc b/doc/OpenParts/general_architecture.doc new file mode 100644 index 000000000..cdd68f362 --- /dev/null +++ b/doc/OpenParts/general_architecture.doc @@ -0,0 +1,33 @@ +/*! +\page general_architecture General Architecture + +OpenPARTS is made of Workshop (see XGUI_Workshop) which loads a Module (see ModuleBase_IModule), connecting its features with GUI, providing it with services for launching of operations, tools for user inputs and visualisation of results. The Module can consist of one or several plug-ins which provide implementation of Module features. Each plug-in can implement one or several features. These features can be structured by Workbenches within Workshop. Workshop provides introducing of these Workbenches within main window in form of menus or/and tool bars. +\n +Workshop interacts with a Module with help of specific interface defined in ModuleBase package. Each module for OpenPARTS application has to implement ModuleBase_IModile interface. +\n +A Module manages a one document (ModelAPI_Document). This document consists of a one root document and several, loaded by request, sub-documents. Each sub-document can be stored in a single file. +\n + +Main features of the general architecture of OpenPARTS: + +\n\n +\image html general_architecture_1.png +\n\n +Feature is a peace of code which performs an operation. The Feature is a main component of a plug-in. It consists of input attributes, operation functionality and result objects (one or several). All features are defined in plug-ins by the specific feature developer (in C++ or python). +\n +For today there is a one implementation of OpenPARTS application which implements Part Set functionality (PartSet_Module). +The geometric model (i.e. the whole geometry produce by PartSet) is created through operations, or features (ModelAPI_Feature), which define a meaningful piece of design (see \ref Plugins group). In order to easily create dedicated variants of the modeler, also to gradually develop OpenPARTS, each feature is implemented in a Plug-in (ModelAPI_Plugin, a piece of application including its own GUI, built separately from the application. It is loaded dynamically to the application). In other words, a Module is made of a collection of Plug-ins. +Each sub-document contains a data of a one Part. When the user saves its session, all documents are saved: the PartSet and each Part. +\n + + +*/ diff --git a/doc/Shaper/general_architecture.doc b/doc/Shaper/general_architecture.doc new file mode 100644 index 000000000..11bb3012e --- /dev/null +++ b/doc/Shaper/general_architecture.doc @@ -0,0 +1,56 @@ +/*! +\page general_architecture General Architecture + +A Shaper module is made of Workshop (see XGUI_Workshop) which loads a Module (see ModuleBase_IModule), connecting its features with GUI, providing it with services for launching of operations, tools for user inputs and visualisation of results. The Module can consist of one or several plug-ins which provide implementation of Module features. Each plug-in can implement one or several features. These features can be structured by Workbenches within Workshop. Workshop provides introducing of these Workbenches within main window in form of menus or/and tool bars. +\n +Workshop interacts with a Module with help of specific interface defined in ModuleBase package. Each module for NewGeom application has to implement ModuleBase_IModile interface. +\n +A Module manages a one document (ModelAPI_Document). This document consists of a one root document and several, loaded by request, sub-documents. Each sub-document can be stored in a single file. +\n + +Main features of the general architecture of Shaper: + +\n\n +\image html ../general_architecture_1.png +\n\n +Feature is a peace of code which performs an operation. The Feature is a main component of a plug-in. It consists of input attributes, operation functionality and result objects (one or several). All features are defined in plug-ins by the specific feature developer (in C++ or python). +\n +For today there is a one implementation of Shaper module which implements Part Set functionality (PartSet_Module). +The geometric model (i.e. the whole geometry produced by Shaper) is created through operations, or features (ModelAPI_Feature), which define a meaningful piece of design (see \ref Plugins group). In order to easily create dedicated variants of the modeler, also to gradually develop Shaper, each feature is implemented in a Plug-in (ModelAPI_Plugin, a piece of application including its own GUI, built separately from the application. It is loaded dynamically to the application). In other words, a Module is made of a collection of Plug-ins. +Each sub-document contains a data of a one Part. When the user saves its session, all documents are saved: the PartSet and each Part. +\n + +

SALOME module definition

+ +The NewGeom package allows to launch the application as one of the module of SALOME platform. In that case all user interface elements are integrated into SALOME platform: the \ref Salome package is used for this connection. +\n +To integrate Shaper into SALOME the next steps are done: +
    +
  1. LightApp_Module class from SALOME GUI LightApp package is redefined (see NewGeom_Module). This redefined class provides a connection between LightApp_Module interface and Workshop object of the application.
  2. +
  3. Provide Workshop with a SALOME mode of launching in SALOME environment. In this case it is launched without its own main window, 3d viewer and main menu.
  4. +
  5. In SALOME mode workshop uses: +
      +
    1. SALOME desktop as a main window.
    2. +
    3. OCC viewer from SALOME platform instead of its own 3d viewer.
    4. +
    5. SALOME main menu and tool bars for creation of workbenches commands.
    6. +
    7. Object Browser of New GEOM application is used instead of SALOME Object Browser.
    8. +
    9. Creation of a New GEOM property panel as a docking window of SALOME desktop.
    10. +
    11. Use SALOME Python console instead of console in main window. Since 3 packages from SALOME GUI module become shared between this project and SALOME modules and they are independent from other SALOME parts, it is proposed in the future to detach it from SALOME platform into separated prerequisite product to avoid code duplication.
    12. +
    +
  6. +
  7. Each workbench is defined as a menu in main menu bar of SALOME desktop and as a tool bar with corresponded title.
  8. +
  9. Each feature in the workbench is defined as a menu item in the corresponded menu and a button in the corresponded tool bar.
  10. +
  11. Object Browser of SALOME is hidden on activation of NewGEOM and restored on its deactivation.
  12. +
  13. Object Browser and Property panel of NewGEOM is shown on activation of the module and hidden on its deactivation.
  14. +
  15. Persistent of NewGEOM is compatible with persistent of SALOME. On saving of SALOME study the content of NewGEOM data structure is saved into study also and restored on restoring of study.
  16. +
+ +*/ diff --git a/doc/doxyfile.in b/doc/doxyfile.in index 46e837496..86b762f27 100644 --- a/doc/doxyfile.in +++ b/doc/doxyfile.in @@ -669,7 +669,8 @@ WARN_LOGFILE = log.txt # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = @PROJECT_SOURCE_DIR@/src @CMAKE_CURRENT_SOURCE_DIR@ +INPUT = @PROJECT_SOURCE_DIR@/src \ + @CMAKE_CURRENT_SOURCE_DIR@ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is diff --git a/doc/general_architecture.doc b/doc/general_architecture.doc deleted file mode 100644 index e67ac88fe..000000000 --- a/doc/general_architecture.doc +++ /dev/null @@ -1,64 +0,0 @@ -/*! -\page general_architecture General Architecture - -NewGeom is made of Workshop (see XGUI_Workshop) which loads a Module, connecting its features with GUI, providing it with services for launching of operations, tools for user inputs and visualisation of results. The Module can consist of one or several plug-ins which provide implementation of Module features. Each plug-in can implement one or several features. These features can be structured by Workbenches within Workshop. Workshop provides introducing of these Workbenches within main window in form of menus or/and tool bars. -\n -Workshop interacts with a Module with help of specific interface defined in ModuleBase package. Each module for NewGeom application has to implement ModuleBase_IModile interface. -\n -A Module manages a one document (ModelAPI_Document). This document consists of a one root document and several, loaded by request, sub-documents. Each sub-document can be stored in a single file. -\n - -Main features of the general architecture of New GEOM: - -\n\n -\image html general_architecture_1.png -\n\n -For today there is a one implementation of NewGeom module which implements Part Set functionality (PartSet_Module). -The geometric model (i.e. the whole geometry produce by New GEOM) is created through operations, or features (ModelAPI_Feature), which define a meaningful piece of design (see \ref Plugins group). In order to easily create dedicated variants of the modeler, also to gradually develop New GEOM, each feature is implemented in a Plug-in (ModelAPI_Plugin, a piece of application including its own GUI, built separately from the application. It is loaded dynamically to the application). In other words, a Module is made of a collection of Plug-ins. -Each sub-document contains a data of a one Part. When the user saves its session, all documents are saved: the PartSet and each Part. -\n -New GEOM is used either as a stand-alone application or as a Module integrated to the SALOME environment in order to, ultimately, replace the old GEOM. - -

Stand-alone New GEOM

- -In case of using as a standalone application, Workshop uses an application main window implementing the general ergonomics of New GEOM (see \ref Desktop group), including the layout of the user interface, organization of menus, runtime help, etc. -\n -The Workshop structures the features by related functionality presented in a tabbed panels Workbenches. Each tab displays a set of available actions. These sets of features are called below Workbenches. -\n\n - - -

New GEOM as SALOME module

- -The NewGeom package allows to launch the application as one of the module of SALOME platform. In that case all user interface elements are integrated into SALOME platform: the \ref Salome package is used for this connection. -\n -To integrate New GEOM into SALOME the next steps are done: -
    -
  1. LightApp_Module class from SALOME GUI LightApp package is redefined (see NewGeom_Module). This redefined class provides a connection between LightApp_Module interface and Workshop object of the application.
  2. -
  3. Provide Workshop with a SALOME mode of launching in SALOME environment. In this case it is launched without its own main window, 3d viewer and main menu.
  4. -
  5. In SALOME mode workshop uses: -
      -
    1. SALOME desktop as a main window.
    2. -
    3. OCC viewer from SALOME platform instead of its own 3d viewer.
    4. -
    5. SALOME main menu and tool bars for creation of workbenches commands.
    6. -
    7. Object Browser of New GEOM application is used instead of SALOME Object Browser.
    8. -
    9. Creation of a New GEOM property panel as a docking window of SALOME desktop.
    10. -
    11. Use SALOME Python console instead of console in main window. Since 3 packages from SALOME GUI module become shared between this project and SALOME modules and they are independent from other SALOME parts, it is proposed in the future to detach it from SALOME platform into separated prerequisite product to avoid code duplication.
    12. -
    -
  6. -
  7. Each workbench is defined as a menu in main menu bar of SALOME desktop and as a tool bar with corresponded title.
  8. -
  9. Each feature in the workbench is defined as a menu item in the corresponded menu and a button in the corresponded tool bar.
  10. -
  11. Object Browser of SALOME is hidden on activation of NewGEOM and restored on its deactivation.
  12. -
  13. Object Browser and Property panel of NewGEOM is shown on activation of the module and hidden on its deactivation.
  14. -
  15. Persistent of NewGEOM is compatible with persistent of SALOME. On saving of SALOME study the content of NewGEOM data structure is saved into study also and restored on restoring of study.
  16. -
- -*/