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

#include <CurveIterators.h>

Inheritance diagram for Freestyle::CurveInternal::CurvePointIterator:
Freestyle::Interface0DIteratorNested Freestyle::Iterator

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 22 of file CurveIterators.h.

Constructor & Destructor Documentation

◆ CurvePointIterator() [1/3]

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

Definition at line 40 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 51 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 82 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 87 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 117 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 112 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 123 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 162 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 170 of file CurveIterators.h.

References __B, and _end.

◆ operator*()

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

Implements Freestyle::Interface0DIteratorNested.

Definition at line 152 of file CurveIterators.h.

References __A, __B, _Point, and _t.

Referenced by operator->().

◆ operator++()

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

Definition at line 129 of file CurveIterators.h.

References increment().

◆ operator--()

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

Definition at line 135 of file CurveIterators.h.

References decrement().

◆ operator->()

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

Reimplemented from Freestyle::Interface0DIteratorNested.

Definition at line 157 of file CurveIterators.h.

References operator*().

◆ operator=()

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

Definition at line 66 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 277 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 282 of file CurveIterators.h.

References _CurveLength, and _CurvilinearLength.

Friends And Related Function Documentation

◆ Freestyle::Curve

friend class Freestyle::Curve
friend

Definition at line 24 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 31 of file CurveIterators.h.

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

◆ _currentn

int Freestyle::CurveInternal::CurvePointIterator::_currentn

Definition at line 34 of file CurveIterators.h.

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

◆ _CurveLength

float Freestyle::CurveInternal::CurvePointIterator::_CurveLength

Definition at line 37 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 32 of file CurveIterators.h.

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

◆ _n

int Freestyle::CurveInternal::CurvePointIterator::_n

Definition at line 33 of file CurveIterators.h.

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

◆ _Point

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

Definition at line 36 of file CurveIterators.h.

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

◆ _step

float Freestyle::CurveInternal::CurvePointIterator::_step

Definition at line 28 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: