]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Create folder model for sphinx documentation
authorSergey POKHODENKO <pokhodenko.s.a@gmail.com>
Sat, 5 Dec 2015 20:49:23 +0000 (23:49 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 7 Dec 2015 11:10:00 +0000 (14:10 +0300)
30 files changed:
src/PythonAPI/doc/source/boolean.rst [deleted file]
src/PythonAPI/doc/source/connection.rst [deleted file]
src/PythonAPI/doc/source/construction.rst [deleted file]
src/PythonAPI/doc/source/exchange.rst [deleted file]
src/PythonAPI/doc/source/extrusion.rst [deleted file]
src/PythonAPI/doc/source/group.rst [deleted file]
src/PythonAPI/doc/source/index.rst
src/PythonAPI/doc/source/model.rst [deleted file]
src/PythonAPI/doc/source/model/boolean.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/connection.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/construction.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/exchange.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/extrusion.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/group.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/parameter.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/partition.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/partset.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/placement.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/revolution.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/rotation.rst [new file with mode: 0644]
src/PythonAPI/doc/source/model/translation.rst [new file with mode: 0644]
src/PythonAPI/doc/source/parameter.rst [deleted file]
src/PythonAPI/doc/source/partition.rst [deleted file]
src/PythonAPI/doc/source/partset.rst [deleted file]
src/PythonAPI/doc/source/placement.rst [deleted file]
src/PythonAPI/doc/source/revolution.rst [deleted file]
src/PythonAPI/doc/source/rotation.rst [deleted file]
src/PythonAPI/doc/source/translation.rst [deleted file]
src/PythonAPI/geom/missed.py
src/PythonAPI/model/features/boolean.py

diff --git a/src/PythonAPI/doc/source/boolean.rst b/src/PythonAPI/doc/source/boolean.rst
deleted file mode 100644 (file)
index abe3972..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 5a175fe..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-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
deleted file mode 100644 (file)
index 8f13053..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-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
deleted file mode 100644 (file)
index 737cb77..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-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:
diff --git a/src/PythonAPI/doc/source/extrusion.rst b/src/PythonAPI/doc/source/extrusion.rst
deleted file mode 100644 (file)
index 2f81a25..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-Extrusion
-=========
-
-.. testsetup::
-
-   import model
-   model.begin()
-   partset = model.moduleDocument()
-   part = model.addPart(partset).document()
-   plane = model.defaultPlane("XOY")
-   sketch = model.addSketch(part, plane)
-   p1 = sketch.addPoint(0, 0)
-   p2 = sketch.addPoint(0, 1)
-   p3 = sketch.addPoint(1, 1)
-   p4 = sketch.addPoint(1, 0)
-   sketch.addPolygon(p1.pointData(), p2.pointData(), p3.pointData(), p4.pointData())
-
-Provided that a sketch has been created before an extrusion can then be created
-by the following code:
-
-.. doctest::
-   
-   >>> base = sketch.selectFace()
-   >>> extrusion = model.addExtrusion(part, base, 10)
-   >>> # Modification of the extrusion
-   >>> extrusion.setSize(20)
-   
-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.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
deleted file mode 100644 (file)
index b6765a1..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Group
-=====
-
-Create a group
---------------
-
-.. autofunction:: model.addGroup
-
-Group object
-............
-
-.. autoclass:: model.features.group.Group
-   :members:
index 91677e73d4111e95a4232aaa4805de063cc997e9..8d06304bfd9119a2c9de7bf5d484df77e81f7d42 100644 (file)
@@ -36,24 +36,10 @@ to modify the feature and retrieve data from it.
 
 .. toctree::
    :maxdepth: 1
+   :glob:
 
    sketcher
-
-   connection
-   construction
-   exchange
-
-   boolean
-   partition
-   extrusion
-   revolution
-   placement
-   rotation
-   translation
-   group
-
-   parameter
-   partset
+   model/*
 
 Indices and tables
 ==================
diff --git a/src/PythonAPI/doc/source/model.rst b/src/PythonAPI/doc/source/model.rst
deleted file mode 100644 (file)
index 865de2a..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-.. 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/model/boolean.rst b/src/PythonAPI/doc/source/model/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/model/connection.rst b/src/PythonAPI/doc/source/model/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/model/construction.rst b/src/PythonAPI/doc/source/model/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/model/exchange.rst b/src/PythonAPI/doc/source/model/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:
diff --git a/src/PythonAPI/doc/source/model/extrusion.rst b/src/PythonAPI/doc/source/model/extrusion.rst
new file mode 100644 (file)
index 0000000..2f81a25
--- /dev/null
@@ -0,0 +1,63 @@
+Extrusion
+=========
+
+.. testsetup::
+
+   import model
+   model.begin()
+   partset = model.moduleDocument()
+   part = model.addPart(partset).document()
+   plane = model.defaultPlane("XOY")
+   sketch = model.addSketch(part, plane)
+   p1 = sketch.addPoint(0, 0)
+   p2 = sketch.addPoint(0, 1)
+   p3 = sketch.addPoint(1, 1)
+   p4 = sketch.addPoint(1, 0)
+   sketch.addPolygon(p1.pointData(), p2.pointData(), p3.pointData(), p4.pointData())
+
+Provided that a sketch has been created before an extrusion can then be created
+by the following code:
+
+.. doctest::
+   
+   >>> base = sketch.selectFace()
+   >>> extrusion = model.addExtrusion(part, base, 10)
+   >>> # Modification of the extrusion
+   >>> extrusion.setSize(20)
+   
+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.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/model/group.rst b/src/PythonAPI/doc/source/model/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:
diff --git a/src/PythonAPI/doc/source/model/parameter.rst b/src/PythonAPI/doc/source/model/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/model/partition.rst b/src/PythonAPI/doc/source/model/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/model/partset.rst b/src/PythonAPI/doc/source/model/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/model/placement.rst b/src/PythonAPI/doc/source/model/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/model/revolution.rst b/src/PythonAPI/doc/source/model/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/model/rotation.rst b/src/PythonAPI/doc/source/model/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/model/translation.rst b/src/PythonAPI/doc/source/model/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:
diff --git a/src/PythonAPI/doc/source/parameter.rst b/src/PythonAPI/doc/source/parameter.rst
deleted file mode 100644 (file)
index 6b62c9f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
deleted file mode 100644 (file)
index 75c3b7f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
deleted file mode 100644 (file)
index 5427d7f..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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
deleted file mode 100644 (file)
index 3834ce7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
deleted file mode 100644 (file)
index 061904f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-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
deleted file mode 100644 (file)
index 70619bb..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Rotation
-========
-
-Create a rotation
------------------
-
-.. autofunction:: model.addRotation
-
-Rotation object
-...............
-
-.. autoclass:: model.features.rotation.Rotation
-   :members:
diff --git a/src/PythonAPI/doc/source/translation.rst b/src/PythonAPI/doc/source/translation.rst
deleted file mode 100644 (file)
index 6f3f4a9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Translation
-===========
-
-Create a translation
---------------------
-
-.. autofunction:: model.addTranslation
-
-Translation object
-..................
-
-.. autoclass:: model.features.translation.Translation
-   :members:
index f5a6cfca81bba58c2f7e4941090a7882c3de83eb..247cfef3a99d0d7926396484f50ce7cf85323b28 100644 (file)
@@ -2,7 +2,7 @@
 # Author: Daniel Brunier-Coulin
 # -----------------------------
 
-from GeomAPI import *
+#from GeomAPI import *
 
 
 class Ax3:
index 89ce1fd6b99f9e1d5c008cb3114c3dddf012fd66..ef294346e799ff6d53314a59c12e4a21f131d1d5 100644 (file)
@@ -3,13 +3,8 @@ Author: Daniel Brunier-Coulin
 Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 """
 
-from ModelAPI    import *
-from GeomAlgoAPI import *
-
-
 from model.roots import Interface
 
-
 def addAddition(part, *args):
     """Inserts an addition to the given Part and executes the operation.
     This operation adds tool to the given object.