From f510faed6cb982bc98d3049a78e1ab27ddd9cc16 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 12 Aug 2010 12:17:47 +0000 Subject: Python API documentation updates: a description of class hierarchy was added to the docstrings of most Python extension types. --- .../blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp | 2 ++ .../blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp | 2 ++ .../blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp | 3 ++- .../blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp | 2 ++ .../freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp | 2 ++ 10 files changed, 20 insertions(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/python/Iterator') diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp index 7df7ab25e1c..1f4b041cce8 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp @@ -12,6 +12,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char AdjacencyIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`AdjacencyIterator`\n" +"\n" "Class for representing adjacency iterators used in the chaining\n" "process. An AdjacencyIterator is created in the increment() and\n" "decrement() methods of a :class:`ChainingIterator` and passed to the\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp index 38670f20d7f..aa6d10ddb5f 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp @@ -14,6 +14,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char ChainPredicateIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator` > :class:`ChainingIterator` > :class:`ChainPredicateIterator`\n" +"\n" "A \"generic\" user-controlled ViewEdge iterator. This iterator is in\n" "particular built from a unary predicate and a binary predicate.\n" "First, the unary predicate is evaluated for all potential next\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp index 0549a4ac12b..caf43a800c5 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp @@ -15,6 +15,8 @@ extern "C" { // ChainSilhouetteIterator (const ChainSilhouetteIterator &brother) static char ChainSilhouetteIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator` > :class:`ChainingIterator` > :class:`ChainSilhouetteIterator`\n" +"\n" "A ViewEdge Iterator used to follow ViewEdges the most naturally. For\n" "example, it will follow visible ViewEdges of same nature. As soon, as\n" "the nature or the visibility changes, the iteration stops (by setting\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp index 9d3b1e5c0be..ddb957c900e 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp @@ -14,6 +14,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char ChainingIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator` > :class:`ChainingIterator`\n" +"\n" "Base class for chaining iterators. This class is designed to be\n" "overloaded in order to describe chaining rules. It makes the\n" "description of chaining rules easier. The two main methods that need\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp index 9af842b7612..d1a8fbef6b9 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp @@ -12,6 +12,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char CurvePointIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`CurvePointIterator`\n" +"\n" "Class representing an iterator on a curve. Allows an iterating\n" "outside initial vertices. A CurvePoint is instanciated and returned\n" "by getObject().\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp index 7276f7cd46b..6643913c32a 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp @@ -11,6 +11,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char Interface0DIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`Interface0DIterator`\n" +"\n" "Class defining an iterator over Interface0D elements. An instance of\n" "this iterator is always obtained from a 1D element.\n" "\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp index 06329ce2e30..ef40d994e27 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp @@ -13,6 +13,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char SVertexIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`SVertexIterator`\n" +"\n" "Class representing an iterator over :class:`SVertex` of a\n" ":class:`ViewEdge`. An instance of an SVertexIterator can be obtained\n" "from a ViewEdge by calling verticesBegin() or verticesEnd().\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp index 1273cc2a471..a9b2c4d774a 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp @@ -12,7 +12,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char StrokeVertexIterator___doc__[] = - +"Class hierarchy: :class:`Iterator` > :class:`StrokeVertexIterator`\n" +"\n" "Class defining an iterator designed to iterate over the\n" ":class:`StrokeVertex` of a :class:`Stroke`. An instance of a\n" "StrokeVertexIterator can only be obtained from a Stroke by calling\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp index 55402165226..660e00b7089 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp @@ -13,6 +13,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char ViewEdgeIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator`\n" +"\n" "Base class for iterators over ViewEdges of the :class:`ViewMap` Graph.\n" "Basically the increment() operator of this class should be able to\n" "take the decision of \"where\" (on which ViewEdge) to go when pointing\n" diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp index c080426daa8..46eb7055217 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp @@ -11,6 +11,8 @@ extern "C" { //------------------------INSTANCE METHODS ---------------------------------- static char orientedViewEdgeIterator___doc__[] = +"Class hierarchy: :class:`Iterator` > :class:`orientedViewEdgeIterator`\n" +"\n" "Class representing an iterator over oriented ViewEdges around a\n" ":class:`ViewVertex`. This iterator allows a CCW iteration (in the image\n" "plane). An instance of an orientedViewEdgeIterator can only be\n" -- cgit v1.2.3