Blender  V3.3
Public Member Functions | List of all members
Freestyle::ChainSilhouetteIterator Class Reference

#include <ChainingIterators.h>

Inheritance diagram for Freestyle::ChainSilhouetteIterator:
Freestyle::ChainingIterator Freestyle::ViewEdgeInternal::ViewEdgeIterator Freestyle::Iterator

Public Member Functions

 ChainSilhouetteIterator (bool iRestrictToSelection=true, ViewEdge *begin=NULL, 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=NULL, bool orientation=true)
 
 ChainingIterator (const ChainingIterator &brother)
 
ViewVertexgetVertex ()
 
bool isIncrementing () const
 
virtual int increment ()
 
virtual int decrement ()
 
- Public Member Functions inherited from Freestyle::ViewEdgeInternal::ViewEdgeIterator
 ViewEdgeIterator (ViewEdge *begin=NULL, bool orientation=true)
 
 ViewEdgeIterator (const ViewEdgeIterator &it)
 
virtual ~ViewEdgeIterator ()
 
ViewEdgegetCurrentEdge ()
 
void setCurrentEdge (ViewEdge *edge)
 
ViewEdgegetBegin ()
 
void setBegin (ViewEdge *begin)
 
bool getOrientation () const
 
void setOrientation (bool orientation)
 
void changeOrientation ()
 
virtual ViewEdgeoperator* ()
 
virtual ViewEdgeoperator-> ()
 
virtual ViewEdgeIteratoroperator++ ()
 
virtual ViewEdgeIterator operator++ (int)
 
virtual ViewEdgeIteratoroperator-- ()
 
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
ViewEdgeresult
 
voidpy_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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ChainSilhouetteIterator() [1/2]

Freestyle::ChainSilhouetteIterator::ChainSilhouetteIterator ( bool  iRestrictToSelection = true,
ViewEdge begin = NULL,
bool  orientation = true 
)
inline

Builds a ChainSilhouetteIterator from the first ViewEdge used for iteration and its orientation.

Parameters
iRestrictToSelectionIndicates whether to force the chaining to stay within the set of selected ViewEdges or not.
beginThe ViewEdge from where to start the iteration.
orientationIf 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.

◆ ChainSilhouetteIterator() [2/2]

Freestyle::ChainSilhouetteIterator::ChainSilhouetteIterator ( const ChainSilhouetteIterator brother)
inline

Copy constructor

Definition at line 272 of file ChainingIterators.h.

Member Function Documentation

◆ getExactTypeName()

virtual string Freestyle::ChainSilhouetteIterator::getExactTypeName ( ) const
inlinevirtual

Returns the string "ChainSilhouetteIterator"

Reimplemented from Freestyle::ChainingIterator.

Definition at line 277 of file ChainingIterators.h.

◆ init()

virtual int Freestyle::ChainSilhouetteIterator::init ( )
inlinevirtual

Initializes the iterator context

Reimplemented from Freestyle::ChainingIterator.

Definition at line 289 of file ChainingIterators.h.

◆ traverse()

int Freestyle::ChainSilhouetteIterator::traverse ( const AdjacencyIterator it)
virtual

The documentation for this class was generated from the following files: