Blender
V3.3
|
#include <StrokeIterators.h>
Public Member Functions | |
StrokeVertexIterator () | |
StrokeVertexIterator (const StrokeVertexIterator &vi) | |
StrokeVertexIterator (const Stroke::vertex_container::iterator &it, const Stroke::vertex_container::iterator &begin, const Stroke::vertex_container::iterator &end) | |
virtual | ~StrokeVertexIterator () |
Interface0DIterator | castToInterface0DIterator () const |
StrokeVertexIterator & | operator= (const StrokeVertexIterator &vi) |
virtual string | getExactTypeName () const |
virtual StrokeVertex & | operator* () |
virtual StrokeVertex * | operator-> () |
virtual StrokeVertexIterator & | operator++ () |
virtual StrokeVertexIterator | operator++ (int) |
virtual StrokeVertexIterator & | operator-- () |
virtual StrokeVertexIterator | operator-- (int) |
virtual int | increment () |
virtual int | decrement () |
bool | isBegin () const |
bool | atLast () |
bool | isEnd () const |
virtual bool | operator== (const Interface0DIteratorNested &it) const |
virtual float | t () const |
virtual float | u () const |
virtual StrokeVertexIterator * | copy () const |
const Stroke::vertex_container::iterator & | getIt () |
![]() | |
virtual | ~Interface0DIteratorNested () |
virtual bool | operator!= (const Interface0DIteratorNested &it) const |
![]() | |
virtual | ~Iterator () |
Class defining an iterator designed to iterate over the StrokeVertex of a Stroke. An instance of a StrokeVertexIterator can only be obtained from a Stroke by calling strokeVerticesBegin() or strokeVerticesEnd(). It is iterating over the same vertices as an Interface0DIterator. The difference resides in the object access. Indeed, an Interface0DIterator allows only an access to an Interface0D whereas we could need to access the specialized StrokeVertex type. In this case, one should use a StrokeVertexIterator. The castToInterface0DIterator() method is useful to get an Interface0DIterator from a StrokeVertexIterator in order to call any functions of the type UnaryFunction0D.
Definition at line 33 of file StrokeIterators.h.
|
inline |
Default constructor.
Definition at line 36 of file StrokeIterators.h.
Referenced by castToInterface0DIterator(), and copy().
|
inline |
Copy constructor.
Definition at line 41 of file StrokeIterators.h.
|
inline |
Definition at line 48 of file StrokeIterators.h.
|
inlinevirtual |
Definition at line 57 of file StrokeIterators.h.
|
inline |
Returns true if the pointed StrokeVertex is the final valid StrokeVertex of the Stroke.
Definition at line 156 of file StrokeIterators.h.
References result.
|
inline |
Casts this StrokeVertexIterator into an Interface0DIterator. Useful for any call to a function of the type UnaryFunction0D.
Definition at line 64 of file StrokeIterators.h.
References ret, and StrokeVertexIterator().
|
inlinevirtual |
Cloning method
Implements Freestyle::Interface0DIteratorNested.
Definition at line 197 of file StrokeIterators.h.
References StrokeVertexIterator().
|
inlinevirtual |
Decrements.
Implements Freestyle::Interface0DIteratorNested.
Definition at line 143 of file StrokeIterators.h.
Referenced by operator--().
|
inlinevirtual |
Returns the string "StrokeVertexIterator".
Reimplemented from Freestyle::Interface0DIteratorNested.
Definition at line 84 of file StrokeIterators.h.
|
inline |
Definition at line 206 of file StrokeIterators.h.
|
inlinevirtual |
Increments.
Implements Freestyle::Interface0DIteratorNested.
Definition at line 136 of file StrokeIterators.h.
Referenced by operator++().
|
inlinevirtual |
Returns true if the pointed StrokeVertex is the first of the Stroke.
Implements Freestyle::Interface0DIteratorNested.
Definition at line 150 of file StrokeIterators.h.
Referenced by Freestyle::createStroke().
|
inlinevirtual |
Returns true if the pointed StrokeVertex is after the last StrokeVertex of the Stroke.
Implements Freestyle::Interface0DIteratorNested.
Definition at line 169 of file StrokeIterators.h.
Referenced by Freestyle::createStroke(), and Freestyle::StrokeShaders::BezierCurveShader::shade().
|
inlinevirtual |
Returns a reference to the pointed StrokeVertex. In the scripting language, you must call "getObject()"instead.
Implements Freestyle::Interface0DIteratorNested.
Definition at line 92 of file StrokeIterators.h.
Referenced by operator->().
|
inlinevirtual |
Increments. In the scripting language, call "increment()".
Definition at line 106 of file StrokeIterators.h.
References increment().
|
inlinevirtual |
Increments. In the scripting language, call "increment()".
Definition at line 113 of file StrokeIterators.h.
References increment(), and ret.
|
inlinevirtual |
Decrements. In the scripting language, call "decrement()".
Definition at line 121 of file StrokeIterators.h.
References decrement().
|
inlinevirtual |
Decrements. In the scripting language, call "decrement()".
Definition at line 128 of file StrokeIterators.h.
References decrement(), and ret.
|
inlinevirtual |
Returns a pointer to the pointed StrokeVertex. Can't be called in the scripting language.
Reimplemented from Freestyle::Interface0DIteratorNested.
Definition at line 100 of file StrokeIterators.h.
References operator*().
|
inline |
operator=
Definition at line 75 of file StrokeIterators.h.
|
inlinevirtual |
operator ==
Implements Freestyle::Interface0DIteratorNested.
Definition at line 175 of file StrokeIterators.h.
|
inlinevirtual |
Returns the curvilinear abscissa of the current point
Implements Freestyle::Interface0DIteratorNested.
Definition at line 185 of file StrokeIterators.h.
|
inlinevirtual |
Returns the point's parameter in the stroke
Implements Freestyle::Interface0DIteratorNested.
Definition at line 191 of file StrokeIterators.h.