Blender  V2.93
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
Freestyle::CurveInternal::CurvePointIterator Class Reference

#include <CurveIterators.h>

Inherits Freestyle::Interface0DIteratorNested.

Public Member Functions

 CurvePointIterator (float step=0.0f)
 
 CurvePointIterator (const CurvePointIterator &iBrother)
 
CurvePointIteratoroperator= (const CurvePointIterator &iBrother)
 
virtual ~CurvePointIterator ()
 
virtual CurvePointIteratorcopy () const
 
Interface0DIterator castToInterface0DIterator () const
 
virtual string getExactTypeName () const
 
CurvePointIteratoroperator++ ()
 
CurvePointIteratoroperator-- ()
 
virtual bool operator== (const Interface0DIteratorNested &b) const
 
virtual CurvePointoperator* ()
 
virtual CurvePointoperator-> ()
 
virtual bool isBegin () const
 
virtual bool isEnd () const
 
virtual int increment ()
 
virtual int decrement ()
 
virtual float t () const
 
virtual float u () const
 
- Public Member Functions inherited from Freestyle::Interface0DIteratorNested
virtual ~Interface0DIteratorNested ()
 
virtual bool operator!= (const Interface0DIteratorNested &it) const
 
- Public Member Functions inherited from Freestyle::Iterator
virtual ~Iterator ()
 

Public Attributes

float _CurvilinearLength
 
float _step
 
Curve::vertex_container::iterator __A
 
Curve::vertex_container::iterator __B
 
Curve::vertex_container::iterator _begin
 
Curve::vertex_container::iterator _end
 
int _n
 
int _currentn
 
float _t
 
CurvePoint _Point
 
float _CurveLength
 

Protected Member Functions

 CurvePointIterator (Curve::vertex_container::iterator iA, Curve::vertex_container::iterator iB, Curve::vertex_container::iterator ibegin, Curve::vertex_container::iterator iend, int currentn, int n, float iCurveLength, float step, float t=0.0f, float iCurvilinearLength=0.0f)
 

Friends

class Freestyle::Curve
 

Detailed Description

iterator on a curve. Allows an iterating outside initial vertices. A CurvePoint is instantiated an returned when the iterator is dereferenced.

Definition at line 36 of file CurveIterators.h.

Constructor & Destructor Documentation

◆ CurvePointIterator() [1/3]

Freestyle::CurveInternal::CurvePointIterator::CurvePointIterator ( float  step = 0.0f)
inline

Definition at line 54 of file CurveIterators.h.

References _currentn, _CurveLength, _CurvilinearLength, _n, _step, and _t.

Referenced by copy().

◆ CurvePointIterator() [2/3]

Freestyle::CurveInternal::CurvePointIterator::CurvePointIterator ( const CurvePointIterator iBrother)
inline

Definition at line 65 of file CurveIterators.h.

References __A, __B, _begin, _currentn, _CurveLength, _CurvilinearLength, _end, _n, _Point, _step, and _t.

◆ ~CurvePointIterator()

virtual Freestyle::CurveInternal::CurvePointIterator::~CurvePointIterator ( )
inlinevirtual

Definition at line 96 of file CurveIterators.h.

◆ CurvePointIterator() [3/3]

Freestyle::CurveInternal::CurvePointIterator::CurvePointIterator ( Curve::vertex_container::iterator  iA,
Curve::vertex_container::iterator  iB,
Curve::vertex_container::iterator  ibegin,
Curve::vertex_container::iterator  iend,
int  currentn,
int  n,
float  iCurveLength,
float  step,
float  t = 0.0f,
float  iCurvilinearLength = 0.0f 
)
inlineprotected

Definition at line 101 of file CurveIterators.h.

References __A, __B, _begin, _currentn, _CurveLength, _CurvilinearLength, _end, _n, _step, _t, and t().

Member Function Documentation

◆ castToInterface0DIterator()

Interface0DIterator Freestyle::CurveInternal::CurvePointIterator::castToInterface0DIterator ( ) const
inline

Definition at line 131 of file CurveIterators.h.

References ret.

Referenced by Freestyle::__recursiveSplit().

◆ copy()

virtual CurvePointIterator* Freestyle::CurveInternal::CurvePointIterator::copy ( ) const
inlinevirtual

Implements Freestyle::Interface0DIteratorNested.

Definition at line 126 of file CurveIterators.h.

References CurvePointIterator().

◆ decrement()

virtual int Freestyle::CurveInternal::CurvePointIterator::decrement ( )
inlinevirtual

◆ getExactTypeName()

virtual string Freestyle::CurveInternal::CurvePointIterator::getExactTypeName ( ) const
inlinevirtual

Reimplemented from Freestyle::Interface0DIteratorNested.

Definition at line 137 of file CurveIterators.h.

◆ increment()

virtual int Freestyle::CurveInternal::CurvePointIterator::increment ( )
inlinevirtual

◆ isBegin()

virtual bool Freestyle::CurveInternal::CurvePointIterator::isBegin ( ) const
inlinevirtual

Implements Freestyle::Interface0DIteratorNested.

Definition at line 176 of file CurveIterators.h.

References __A, _begin, _t, and Freestyle::M_EPSILON.

◆ isEnd()

virtual bool Freestyle::CurveInternal::CurvePointIterator::isEnd ( ) const
inlinevirtual

Implements Freestyle::Interface0DIteratorNested.

Definition at line 184 of file CurveIterators.h.

References __B, and _end.

◆ operator*()

virtual CurvePoint& Freestyle::CurveInternal::CurvePointIterator::operator* ( )
inlinevirtual

Implements Freestyle::Interface0DIteratorNested.

Definition at line 166 of file CurveIterators.h.

References __A, __B, _Point, and _t.

Referenced by operator->().

◆ operator++()

CurvePointIterator& Freestyle::CurveInternal::CurvePointIterator::operator++ ( )
inline

Definition at line 143 of file CurveIterators.h.

References increment().

◆ operator--()

CurvePointIterator& Freestyle::CurveInternal::CurvePointIterator::operator-- ( )
inline

Definition at line 149 of file CurveIterators.h.

References decrement().

◆ operator->()

virtual CurvePoint* Freestyle::CurveInternal::CurvePointIterator::operator-> ( )
inlinevirtual

Reimplemented from Freestyle::Interface0DIteratorNested.

Definition at line 171 of file CurveIterators.h.

References operator*().

◆ operator=()

CurvePointIterator& Freestyle::CurveInternal::CurvePointIterator::operator= ( const CurvePointIterator iBrother)
inline

Definition at line 80 of file CurveIterators.h.

References __A, __B, _begin, _currentn, _CurveLength, _CurvilinearLength, _end, _n, _Point, _step, and _t.

◆ operator==()

virtual bool Freestyle::CurveInternal::CurvePointIterator::operator== ( const Interface0DIteratorNested b) const
inlinevirtual

◆ t()

virtual float Freestyle::CurveInternal::CurvePointIterator::t ( ) const
inlinevirtual

Returns the curvilinear abscissa

Implements Freestyle::Interface0DIteratorNested.

Definition at line 291 of file CurveIterators.h.

References _CurvilinearLength.

Referenced by CurvePointIterator().

◆ u()

virtual float Freestyle::CurveInternal::CurvePointIterator::u ( ) const
inlinevirtual

Returns the point parameter 0<u<1

Implements Freestyle::Interface0DIteratorNested.

Definition at line 296 of file CurveIterators.h.

References _CurveLength, and _CurvilinearLength.

Friends And Related Function Documentation

◆ Freestyle::Curve

friend class Freestyle::Curve
friend

Definition at line 38 of file CurveIterators.h.

Member Data Documentation

◆ __A

Curve::vertex_container::iterator Freestyle::CurveInternal::CurvePointIterator::__A

◆ __B

Curve::vertex_container::iterator Freestyle::CurveInternal::CurvePointIterator::__B

◆ _begin

Curve::vertex_container::iterator Freestyle::CurveInternal::CurvePointIterator::_begin

Definition at line 45 of file CurveIterators.h.

Referenced by CurvePointIterator(), isBegin(), and operator=().

◆ _currentn

int Freestyle::CurveInternal::CurvePointIterator::_currentn

Definition at line 48 of file CurveIterators.h.

Referenced by CurvePointIterator(), decrement(), increment(), and operator=().

◆ _CurveLength

float Freestyle::CurveInternal::CurvePointIterator::_CurveLength

Definition at line 51 of file CurveIterators.h.

Referenced by CurvePointIterator(), operator=(), and u().

◆ _CurvilinearLength

float Freestyle::CurveInternal::CurvePointIterator::_CurvilinearLength

◆ _end

Curve::vertex_container::iterator Freestyle::CurveInternal::CurvePointIterator::_end

Definition at line 46 of file CurveIterators.h.

Referenced by CurvePointIterator(), isEnd(), and operator=().

◆ _n

int Freestyle::CurveInternal::CurvePointIterator::_n

Definition at line 47 of file CurveIterators.h.

Referenced by CurvePointIterator(), decrement(), increment(), and operator=().

◆ _Point

CurvePoint Freestyle::CurveInternal::CurvePointIterator::_Point
mutable

Definition at line 50 of file CurveIterators.h.

Referenced by CurvePointIterator(), operator*(), and operator=().

◆ _step

float Freestyle::CurveInternal::CurvePointIterator::_step

Definition at line 42 of file CurveIterators.h.

Referenced by CurvePointIterator(), decrement(), increment(), and operator=().

◆ _t

float Freestyle::CurveInternal::CurvePointIterator::_t

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