X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Fcollect_mesh_methods.py;h=24fd31880739affeb4c7188241337096c1ec80f4;hb=20c126bc220757c06b5576f71ed6f34ae85e3e40;hp=278ce201702286399406f0f8423ea5dc99896545;hpb=9423cdc0efcb6144155c045ef822ef0e86db0cfe;p=modules%2Fsmesh.git diff --git a/doc/salome/gui/SMESH/collect_mesh_methods.py b/doc/salome/gui/SMESH/collect_mesh_methods.py index 278ce2017..24fd31880 100755 --- a/doc/salome/gui/SMESH/collect_mesh_methods.py +++ b/doc/salome/gui/SMESH/collect_mesh_methods.py @@ -44,11 +44,16 @@ def main(plugin, dummymeshhelp = True, output_file = "smesh.py"): pass if methods: output = [] + if dummymeshhelp: + output.append( "## @package smesh" ) + output.append( "# Documentation of the methods dynamically added by the " + plugin + " meshing plug-in to the Mesh class." ) + output.append( "" ) + pass + output.append( "## This class allows defining and managing a mesh." ) + output.append( "#" ) if dummymeshhelp: # Add dummy Mesh help # This is supposed to be done when generating documentation for meshing plug-ins - output.append( "## This class allows defining and managing a mesh." ) - output.append( "#" ) output.append( "# @note The documentation below does not provide complete description of class @b %Mesh" ) output.append( "# from @b %smesh.py package. This documentation provides only information about" ) output.append( "# the methods dynamically added to the %Mesh class by the " + plugin + " plugin" ) @@ -58,8 +63,6 @@ def main(plugin, dummymeshhelp = True, output_file = "smesh.py"): else: # Extend documentation for Mesh class with information about dynamically added methods. # This is supposed to be done only when building documentation for SMESH module - output.append( "## This class allows defining and managing a mesh." ) - output.append( "#" ) output.append( "# @note Some methods are dynamically added to the @b %Mesh class in runtime by meshing " ) output.append( "# plug-in modules. If you fail to find help on some methods in the documentation of SMESH module, " ) output.append( "# try to look into the documentation for the meshing plug-ins." ) @@ -72,14 +75,15 @@ def main(plugin, dummymeshhelp = True, output_file = "smesh.py"): if docHelper: break pass if not docHelper: docHelper = "Creates new algorithm." - output.append( " ## %s." % docHelper ) + output.append( " ## %s" % docHelper ) + output.append( " #" ) output.append( " # This method is dynamically added to %Mesh class by the meshing plug-in(s). " ) output.append( " #" ) output.append( " # If the optional @a geom_shape parameter is not set, this algorithm is global (applied to whole mesh)." ) output.append( " # Otherwise, this algorithm defines a submesh based on @a geom_shape subshape." ) output.append( " # @param algo_type type of algorithm to be created; allowed values are specified by classes implemented by plug-in (see below)" ) output.append( " # @param geom_shape if defined, the subshape to be meshed (GEOM_Object)" ) - output.append( " # @return An instance of Mesh_Algorithm sub-class according to the specified @a algo_type:" ) + output.append( " # @return An instance of Mesh_Algorithm sub-class according to the specified @a algo_type, see " ) output.append( " # %s" % ", ".join( [ "%s.%s" % ( plugin_module, algo.__name__ ) for algo in methods[ method ] ] ) ) output.append( " def %s(algo_type, geom_shape=0):" % method ) output.append( " pass" )