|
Blender V4.3
|
#include <ChainingIterators.h>
Inherits Freestyle::ChainingIterator.
Public Member Functions | |
| ChainSilhouetteIterator (bool iRestrictToSelection=true, ViewEdge *begin=nullptr, bool orientation=true) | |
| ChainSilhouetteIterator (const ChainSilhouetteIterator &brother) | |
| virtual string | getExactTypeName () const |
| virtual int | traverse (const AdjacencyIterator &it) |
| virtual int | init () |
Public Member Functions inherited from Freestyle::ChainingIterator | |
| ChainingIterator (bool iRestrictToSelection=true, bool iRestrictToUnvisited=true, ViewEdge *begin=nullptr, bool orientation=true) | |
| ChainingIterator (const ChainingIterator &brother) | |
| ViewVertex * | getVertex () |
| bool | isIncrementing () const |
| virtual int | increment () |
| virtual int | decrement () |
Public Member Functions inherited from Freestyle::ViewEdgeInternal::ViewEdgeIterator | |
| ViewEdgeIterator (ViewEdge *begin=nullptr, bool orientation=true) | |
| ViewEdgeIterator (const ViewEdgeIterator &it) | |
| virtual | ~ViewEdgeIterator () |
| ViewEdge * | getCurrentEdge () |
| void | setCurrentEdge (ViewEdge *edge) |
| ViewEdge * | getBegin () |
| void | setBegin (ViewEdge *begin) |
| bool | getOrientation () const |
| void | setOrientation (bool orientation) |
| void | changeOrientation () |
| virtual ViewEdge * | operator* () |
| virtual ViewEdge * | operator-> () |
| virtual ViewEdgeIterator & | operator++ () |
| virtual ViewEdgeIterator | operator++ (int) |
| virtual ViewEdgeIterator & | operator-- () |
| virtual ViewEdgeIterator | operator-- (int) |
| virtual bool | isBegin () const |
| virtual bool | isEnd () const |
| virtual bool | operator== (ViewEdgeIterator &it) const |
| virtual bool | operator!= (ViewEdgeIterator &it) const |
Public Member Functions inherited from Freestyle::Iterator | |
| virtual | ~Iterator () |
Additional Inherited Members | |
Public Attributes inherited from Freestyle::ChainingIterator | |
| ViewEdge * | result |
| void * | py_c_it |
Protected Attributes inherited from Freestyle::ChainingIterator | |
| bool | _restrictToSelection |
| bool | _restrictToUnvisited |
| bool | _increment |
Protected Attributes inherited from Freestyle::ViewEdgeInternal::ViewEdgeIterator | |
| bool | _orientation |
| ViewEdge * | _edge |
| ViewEdge * | _begin |
A ViewEdge Iterator used to follow ViewEdges the most naturally. For example, it will follow visible ViewEdges of same nature. As soon, as the nature or the visibility changes, the iteration stops (by setting the pointed ViewEdge to 0). In the case of an iteration over a set of ViewEdge that are both Silhouette and Crease, there will be a precedence of the silhouette over the crease criterion.
Definition at line 250 of file ChainingIterators.h.
|
inline |
Builds a ChainSilhouetteIterator from the first ViewEdge used for iteration and its orientation.
| iRestrictToSelection | Indicates whether to force the chaining to stay within the set of selected ViewEdges or not. |
| begin | The ViewEdge from where to start the iteration. |
| orientation | If true, we'll look for the next ViewEdge among the ViewEdges that surround the ending ViewVertex of begin. If false, we'll search over the ViewEdges surrounding the ending ViewVertex of begin. |
Definition at line 264 of file ChainingIterators.h.
|
inline |
Copy constructor
Definition at line 272 of file ChainingIterators.h.
|
inlinevirtual |
Returns the string "ChainSilhouetteIterator"
Reimplemented from Freestyle::ChainingIterator.
Definition at line 275 of file ChainingIterators.h.
|
inlinevirtual |
Initializes the iterator context
Reimplemented from Freestyle::ChainingIterator.
Definition at line 287 of file ChainingIterators.h.
|
virtual |
This method iterates over the potential next ViewEdges and returns the one that will be followed next. When reaching the end of a chain, 0 is returned.
Reimplemented from Freestyle::ChainingIterator.
Definition at line 125 of file ChainingIterators.cpp.
References ARRAY_SIZE, Freestyle::Nature::BORDER, Freestyle::Nature::CREASE, Freestyle::Nature::EDGE_MARK, Freestyle::ViewEdgeInternal::ViewEdgeIterator::getCurrentEdge(), Freestyle::ViewEdge::getNature(), Freestyle::ViewVertex::getNature(), Freestyle::ChainingIterator::getVertex(), Freestyle::Nature::MATERIAL_BOUNDARY, Freestyle::Nature::NON_T_VERTEX, Freestyle::Nature::RIDGE, Freestyle::Nature::SILHOUETTE, Freestyle::Nature::SUGGESTIVE_CONTOUR, Freestyle::Nature::T_VERTEX, and Freestyle::Nature::VALLEY.