]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add Sphinx documentation
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 4 Dec 2015 14:46:32 +0000 (17:46 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 4 Dec 2015 14:46:32 +0000 (17:46 +0300)
17 files changed:
src/PythonAPI/doc/source/boolean.rst [new file with mode: 0644]
src/PythonAPI/doc/source/connection.rst [new file with mode: 0644]
src/PythonAPI/doc/source/construction.rst [new file with mode: 0644]
src/PythonAPI/doc/source/exchange.rst [new file with mode: 0644]
src/PythonAPI/doc/source/extrusion.rst
src/PythonAPI/doc/source/group.rst [new file with mode: 0644]
src/PythonAPI/doc/source/index.rst
src/PythonAPI/doc/source/model.rst [new file with mode: 0644]
src/PythonAPI/doc/source/parameter.rst [new file with mode: 0644]
src/PythonAPI/doc/source/partition.rst [new file with mode: 0644]
src/PythonAPI/doc/source/partset.rst [new file with mode: 0644]
src/PythonAPI/doc/source/placement.rst [new file with mode: 0644]
src/PythonAPI/doc/source/revolution.rst [new file with mode: 0644]
src/PythonAPI/doc/source/rotation.rst [new file with mode: 0644]
src/PythonAPI/doc/source/swig.rst [new file with mode: 0644]
src/PythonAPI/doc/source/translation.rst [new file with mode: 0644]
src/PythonAPI/model/features/partition.py

diff --git a/src/PythonAPI/doc/source/boolean.rst b/src/PythonAPI/doc/source/boolean.rst
new file mode 100644 (file)
index 0000000..abe3972
--- /dev/null
@@ -0,0 +1,15 @@
+Boolean
+=======
+
+Create Boolean
+--------------
+
+.. autofunction:: model.addAddition
+.. autofunction:: model.addSubtraction
+.. autofunction:: model.addIntersection
+
+Boolean object
+--------------
+
+.. autoclass:: model.features.boolean.Boolean
+   :members:
diff --git a/src/PythonAPI/doc/source/connection.rst b/src/PythonAPI/doc/source/connection.rst
new file mode 100644 (file)
index 0000000..5a175fe
--- /dev/null
@@ -0,0 +1,9 @@
+Connection
+----------
+
+This feature is only for SALOME.
+
+Exprot to GEOM
+..............
+
+.. autofunction:: model.exportToGEOM
diff --git a/src/PythonAPI/doc/source/construction.rst b/src/PythonAPI/doc/source/construction.rst
new file mode 100644 (file)
index 0000000..8f13053
--- /dev/null
@@ -0,0 +1,37 @@
+Construction
+============
+
+Create construction features.
+
+Create a point
+--------------
+
+.. autofunction:: model.addPoint
+
+Point object
+............
+
+.. autoclass:: model.construction.point.Point
+   :members:
+
+Create an axis
+--------------
+
+.. autofunction:: model.addAxis
+
+Axis object
+...........
+
+.. autoclass:: model.construction.axis.Axis
+   :members:
+
+Create a plane
+--------------
+
+.. autofunction:: model.addPlane
+
+Plane object
+............
+
+.. autoclass:: model.construction.plane.Plane
+   :members:
diff --git a/src/PythonAPI/doc/source/exchange.rst b/src/PythonAPI/doc/source/exchange.rst
new file mode 100644 (file)
index 0000000..737cb77
--- /dev/null
@@ -0,0 +1,26 @@
+Exchange
+========
+
+Export/import features.
+
+Import objects from a file
+--------------------------
+
+.. autofunction:: model.addImport
+
+Import object
+.............
+
+.. autoclass:: model.exchange.exchange.Import
+   :members:
+
+Export objects to a file
+------------------------
+
+.. autofunction:: model.exportToFile
+
+Export object
+.............
+
+.. autoclass:: model.exchange.exchange.Export
+   :members:
index 25d77281cc7bb20849e5dcdf68a4786c20673c94..2f81a25c653d37c1d2c46a7ad49c7a60acf84da4 100644 (file)
@@ -1,5 +1,5 @@
 Extrusion
----------
+=========
 
 .. testsetup::
 
@@ -25,16 +25,39 @@ by the following code:
    >>> # Modification of the extrusion
    >>> extrusion.setSize(20)
    
-All the ways to create an extrusion and the data access and modification methods 
+All the ways to create an extrusion and the data access and modification methods
 of the extrusion are documented below
 
 Create an extrusion
-...................
-   
-.. autofunction:: model.features.extrusion.addExtrusion
+-------------------
+
+.. autofunction:: model.addExtrusion
 
 Extrusion object
 ................
 
 .. autoclass:: model.features.extrusion.Extrusion
    :members:
+
+Create an Extrusion Bolean
+--------------------------
+
+.. autofunction:: model.addExtrusionCut
+.. autofunction:: model.addExtrusionFuse
+
+Extrusion Boolean object
+........................
+
+.. autoclass:: model.features.extrusion_boolean.ExtrusionBoolean
+   :members:
+   
+Create an Extrusion Sketch
+--------------------------
+
+.. autofunction:: model.addExtrusionSketch
+
+Extrusion Sketch object
+.......................
+
+.. autoclass:: model.features.extrusion_sketch.ExtrusionSketch
+   :members:
diff --git a/src/PythonAPI/doc/source/group.rst b/src/PythonAPI/doc/source/group.rst
new file mode 100644 (file)
index 0000000..b6765a1
--- /dev/null
@@ -0,0 +1,13 @@
+Group
+=====
+
+Create a group
+--------------
+
+.. autofunction:: model.addGroup
+
+Group object
+............
+
+.. autoclass:: model.features.group.Group
+   :members:
index ef5dc2733894d7aa7e13a71f259d261231f38a9a..91677e73d4111e95a4232aaa4805de063cc997e9 100644 (file)
@@ -9,7 +9,7 @@ models through python scripts:
 
 * a "parametric" API, which is very close to what is done
   in the graphical interface and allows you to recalculate a model
-  when a parameter is changed 
+  when a parameter is changed
 
 Parametric API
 --------------
@@ -31,16 +31,29 @@ Features
 ........
 
 This API provides functions for creating the features listed below.
-These functions return an interface to the feature that allow 
+These functions return an interface to the feature that allow
 to modify the feature and retrieve data from it.
 
 .. toctree::
    :maxdepth: 1
 
    sketcher
-   extrusion
 
+   connection
+   construction
+   exchange
 
+   boolean
+   partition
+   extrusion
+   revolution
+   placement
+   rotation
+   translation
+   group
+
+   parameter
+   partset
 
 Indices and tables
 ==================
diff --git a/src/PythonAPI/doc/source/model.rst b/src/PythonAPI/doc/source/model.rst
new file mode 100644 (file)
index 0000000..865de2a
--- /dev/null
@@ -0,0 +1,101 @@
+.. py:module:: model
+
+Parametric Geometry API
+***********************
+
+.. automodule:: model
+   :members:
+   :special-members:
+
+Common Modules
+==============
+
+This modules are used by other submodules of Parametric Geometry API.
+
+roots
+-----
+
+.. automodule:: model.roots
+   :members:
+   :special-members:
+
+services
+--------
+
+.. automodule:: model.services
+   :members:
+   :special-members:
+
+tools
+-----
+
+.. automodule:: model.tools
+   :members:
+   :special-members:
+
+errors
+------
+
+.. automodule:: model.errors
+   :members:
+   :special-members:
+
+Modules fo Plugins
+==================
+
+connection
+----------
+
+.. automodule:: model.connection
+   :members:
+   :special-members:
+
+.. autofunction:: model.connection.connection.exportToGEOM
+
+construction
+------------
+
+.. automodule:: model.construction
+   :members:
+   :special-members:
+
+exchange
+--------
+
+.. automodule:: model.exchange
+   :members:
+   :special-members:
+
+features
+--------
+
+.. automodule:: model.features
+   :members:
+   :special-members:
+
+parameter
+.........
+
+.. automodule:: model.parameter
+   :members:
+   :special-members:
+
+partset
+-------
+
+.. automodule:: model.partset
+   :members:
+   :special-members:
+
+sketcher
+--------
+
+.. automodule:: model.sketcher
+   :members:
+   :special-members:
+
+.. toctree::
+   :maxdepth: 1
+
+   sketcher
+
diff --git a/src/PythonAPI/doc/source/parameter.rst b/src/PythonAPI/doc/source/parameter.rst
new file mode 100644 (file)
index 0000000..6b62c9f
--- /dev/null
@@ -0,0 +1,13 @@
+Parameter
+=========
+
+Create a parameter
+------------------
+
+.. autofunction:: model.addParameter
+
+Parameter object
+................
+
+.. autoclass:: model.parameter.parameter.Parameter
+   :members:
diff --git a/src/PythonAPI/doc/source/partition.rst b/src/PythonAPI/doc/source/partition.rst
new file mode 100644 (file)
index 0000000..75c3b7f
--- /dev/null
@@ -0,0 +1,13 @@
+Partition
+=========
+
+Create a partition
+------------------
+
+.. autofunction:: model.addPartition
+
+Partition object
+................
+
+.. autoclass:: model.features.partition.Partition
+   :members:
diff --git a/src/PythonAPI/doc/source/partset.rst b/src/PythonAPI/doc/source/partset.rst
new file mode 100644 (file)
index 0000000..5427d7f
--- /dev/null
@@ -0,0 +1,17 @@
+PartSet
+=======
+
+Manipulate Parts in a PartSet.
+
+Manipulate a Part
+-----------------
+
+.. autofunction:: model.addPart
+.. autofunction:: model.duplicatePart
+.. autofunction:: model.removePart
+
+Part object
+...........
+
+.. autoclass:: model.partset.part.Part
+   :members:
diff --git a/src/PythonAPI/doc/source/placement.rst b/src/PythonAPI/doc/source/placement.rst
new file mode 100644 (file)
index 0000000..3834ce7
--- /dev/null
@@ -0,0 +1,13 @@
+Placement
+=========
+
+Create a placement
+------------------
+
+.. autofunction:: model.addPlacement
+
+Placement object
+................
+
+.. autoclass:: model.features.placement.Placement
+   :members:
diff --git a/src/PythonAPI/doc/source/revolution.rst b/src/PythonAPI/doc/source/revolution.rst
new file mode 100644 (file)
index 0000000..061904f
--- /dev/null
@@ -0,0 +1,36 @@
+Revolution
+==========
+
+Create a Revolution
+-------------------
+
+.. autofunction:: model.addRevolution
+
+Revolution object
+.................
+
+.. autoclass:: model.features.revolution.Revolution
+   :members:
+
+Create an Revolution Bolean
+---------------------------
+
+.. autofunction:: model.addRevolutionCut
+.. autofunction:: model.addRevolutionFuse
+
+Revolution Boolean object
+.........................
+
+.. autoclass:: model.features.revolution_boolean.RevolutionBoolean
+   :members:
+   
+Create an Revolution Sketch
+---------------------------
+
+.. autofunction:: model.addRevolutionSketch
+
+Revolution Sketch object
+........................
+
+.. autoclass:: model.features.revolution_sketch.RevolutionSketch
+   :members:
diff --git a/src/PythonAPI/doc/source/rotation.rst b/src/PythonAPI/doc/source/rotation.rst
new file mode 100644 (file)
index 0000000..70619bb
--- /dev/null
@@ -0,0 +1,13 @@
+Rotation
+========
+
+Create a rotation
+-----------------
+
+.. autofunction:: model.addRotation
+
+Rotation object
+...............
+
+.. autoclass:: model.features.rotation.Rotation
+   :members:
diff --git a/src/PythonAPI/doc/source/swig.rst b/src/PythonAPI/doc/source/swig.rst
new file mode 100644 (file)
index 0000000..e412931
--- /dev/null
@@ -0,0 +1,11 @@
+SWIG Generated Modules
+======================
+
+ModelAPI
+--------
+
+.. inheritance-diagram:: ModelAPI
+.. automodule:: ModelAPI
+    :members:
+    :special-members:
+
diff --git a/src/PythonAPI/doc/source/translation.rst b/src/PythonAPI/doc/source/translation.rst
new file mode 100644 (file)
index 0000000..6f3f4a9
--- /dev/null
@@ -0,0 +1,13 @@
+Translation
+===========
+
+Create a translation
+--------------------
+
+.. autofunction:: model.addTranslation
+
+Translation object
+..................
+
+.. autoclass:: model.features.translation.Translation
+   :members:
index fb9056e7c2228f90dd11d8e44ac122c30654075a..e6e69512223791227c54053e5f54affcfe43653a 100644 (file)
@@ -7,7 +7,7 @@ from model.roots import Interface
 
 
 def addPartition(part, *args):
-    """Add an Partition feature to the Part and return Partition.
+    """Add a Partition feature to the Part and return Partition.
 
     Pass all args to Partition __init__ function.
     """