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

#include <Chain.h>

Inheritance diagram for Freestyle::Chain:
Freestyle::Curve Freestyle::Interface1D

Public Member Functions

 Chain ()
 
 Chain (const Id &id)
 
 Chain (const Chain &iBrother)
 
virtual ~Chain ()
 
virtual string getExactTypeName () const
 
void push_viewedge_back (ViewEdge *iViewEdge, bool orientation)
 
void push_viewedge_front (ViewEdge *iViewEdge, bool orientation)
 
void setSplittingId (Id *sid)
 
IdgetSplittingId ()
 
- Public Member Functions inherited from Freestyle::Curve
 Curve ()
 
 Curve (const Id &id)
 
 Curve (const Curve &iBrother)
 
virtual ~Curve ()
 
void push_vertex_back (Vertex *iVertex)
 
void push_vertex_back (SVertex *iVertex)
 
void push_vertex_front (Vertex *iVertex)
 
void push_vertex_front (SVertex *iVertex)
 
bool empty () const
 
real getLength2D () const
 
virtual Id getId () const
 
unsigned int nSegments () const
 
void setId (const Id &id)
 
point_iterator points_begin (float step=0)
 
const_point_iterator points_begin (float step=0) const
 
point_iterator points_end (float step=0)
 
const_point_iterator points_end (float step=0) const
 
point_iterator vertices_begin ()
 
const_point_iterator vertices_begin () const
 
point_iterator vertices_end ()
 
const_point_iterator vertices_end () const
 
CurveInternal::CurvePointIterator curvePointsBegin (float t=0.0f)
 
CurveInternal::CurvePointIterator curvePointsEnd (float t=0.0f)
 
CurveInternal::CurvePointIterator curveVerticesBegin ()
 
CurveInternal::CurvePointIterator curveVerticesEnd ()
 
virtual Interface0DIterator verticesBegin ()
 
virtual Interface0DIterator verticesEnd ()
 
virtual Interface0DIterator pointsBegin (float t=0.0f)
 
virtual Interface0DIterator pointsEnd (float t=0.0f)
 
- Public Member Functions inherited from Freestyle::Interface1D
 Interface1D ()
 
virtual ~Interface1D ()
 
virtual Nature::EdgeNature getNature () const
 
virtual unsigned getTimeStamp () const
 
void setTimeStamp (unsigned iTimeStamp)
 

Protected Attributes

Id_splittingId
 
FEdge_fedgeB
 
- Protected Attributes inherited from Freestyle::Curve
vertex_container _Vertices
 
double _Length
 
Id _Id
 
unsigned _nSegments
 
- Protected Attributes inherited from Freestyle::Interface1D
unsigned _timeStamp
 

Additional Inherited Members

- Public Types inherited from Freestyle::Curve
typedef CurvePoint Vertex
 
typedef CurvePoint Point
 
typedef Point point_type
 
typedef Vertex vertex_type
 
typedef deque< Vertex * > vertex_container
 
typedef CurveInternal::__point_iterator< CurveInternal::CurvePoint_nonconst_traitspoint_iterator
 
typedef CurveInternal::__point_iterator< CurveInternal::CurvePoint_const_traitsconst_point_iterator
 
typedef point_iterator vertex_iterator
 
typedef const_point_iterator const_vertex_iterator
 

Detailed Description

Class to represent a 1D elements issued from the chaining process. A Chain is the last step before the Stroke and is used in the Splitting and Creation processes.

Definition at line 19 of file Chain.h.

Constructor & Destructor Documentation

◆ Chain() [1/3]

Freestyle::Chain::Chain ( )
inline

Default constructor.

Definition at line 28 of file Chain.h.

References _fedgeB, and _splittingId.

◆ Chain() [2/3]

Freestyle::Chain::Chain ( const Id id)
inline

Builds a chain from its Id.

Definition at line 35 of file Chain.h.

References _fedgeB, and _splittingId.

◆ Chain() [3/3]

Freestyle::Chain::Chain ( const Chain iBrother)
inline

Copy Constructor

Definition at line 42 of file Chain.h.

References _fedgeB, and _splittingId.

◆ ~Chain()

virtual Freestyle::Chain::~Chain ( )
inlinevirtual

Destructor.

Definition at line 49 of file Chain.h.

References Freestyle::Curve::_Id, and _splittingId.

Member Function Documentation

◆ getExactTypeName()

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

Returns the string "Chain"

Reimplemented from Freestyle::Curve.

Definition at line 60 of file Chain.h.

◆ getSplittingId()

Id* Freestyle::Chain::getSplittingId ( )
inline

Definition at line 86 of file Chain.h.

References _splittingId.

Referenced by Freestyle::__recursiveSplit().

◆ push_viewedge_back()

void Freestyle::Chain::push_viewedge_back ( ViewEdge iViewEdge,
bool  orientation 
)

◆ push_viewedge_front()

void Freestyle::Chain::push_viewedge_front ( ViewEdge iViewEdge,
bool  orientation 
)

◆ setSplittingId()

void Freestyle::Chain::setSplittingId ( Id sid)
inline

Definition at line 81 of file Chain.h.

References _splittingId.

Referenced by Freestyle::__recursiveSplit().

Member Data Documentation

◆ _fedgeB

FEdge* Freestyle::Chain::_fedgeB
protected

Definition at line 24 of file Chain.h.

Referenced by Chain(), push_viewedge_back(), and push_viewedge_front().

◆ _splittingId

Id* Freestyle::Chain::_splittingId
protected

Definition at line 22 of file Chain.h.

Referenced by Chain(), getSplittingId(), setSplittingId(), and ~Chain().


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