Blender
V3.3
|
#include <Curve.h>
Public Types | |
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_traits > | point_iterator |
typedef CurveInternal::__point_iterator< CurveInternal::CurvePoint_const_traits > | const_point_iterator |
typedef point_iterator | vertex_iterator |
typedef const_point_iterator | const_vertex_iterator |
Protected Attributes | |
vertex_container | _Vertices |
double | _Length |
Id | _Id |
unsigned | _nSegments |
![]() | |
unsigned | _timeStamp |
Base class for curves made of CurvePoints. SVertex is the type of the initial curve vertices. A Chain is a specialization of a Curve.
typedef CurveInternal::__point_iterator<CurveInternal::CurvePoint_const_traits> Freestyle::Curve::const_point_iterator |
typedef const_point_iterator Freestyle::Curve::const_vertex_iterator |
typedef CurvePoint Freestyle::Curve::Point |
typedef CurveInternal::__point_iterator<CurveInternal::CurvePoint_nonconst_traits> Freestyle::Curve::point_iterator |
typedef CurvePoint Freestyle::Curve::Vertex |
typedef point_iterator Freestyle::Curve::vertex_iterator |
|
inline |
|
inline |
|
virtual |
CurveInternal::CurvePointIterator Curve::curvePointsBegin | ( | float | t = 0.0f | ) |
Definition at line 630 of file Curve.cpp.
References _Length, _nSegments, _Vertices, and t.
Referenced by Freestyle::__recursiveSplit(), and curveVerticesBegin().
CurveInternal::CurvePointIterator Curve::curvePointsEnd | ( | float | t = 0.0f | ) |
Definition at line 646 of file Curve.cpp.
References _Length, _nSegments, _Vertices, and t.
Referenced by Freestyle::__recursiveSplit(), and curveVerticesEnd().
CurveInternal::CurvePointIterator Curve::curveVerticesBegin | ( | ) |
Definition at line 662 of file Curve.cpp.
References curvePointsBegin().
Referenced by Freestyle::__recursiveSplit().
CurveInternal::CurvePointIterator Curve::curveVerticesEnd | ( | ) |
Definition at line 667 of file Curve.cpp.
References curvePointsEnd().
Referenced by Freestyle::__recursiveSplit().
|
inline |
|
inlinevirtual |
Returns the string "Curve"
Reimplemented from Freestyle::Interface1D.
Reimplemented in Freestyle::Chain.
|
inlinevirtual |
Returns the Id of the 1D element.
Reimplemented from Freestyle::Interface1D.
Definition at line 485 of file Curve.h.
Referenced by Freestyle::__recursiveSplit().
|
inlinevirtual |
Returns the 2D length of the Curve.
Reimplemented from Freestyle::Interface1D.
Definition at line 479 of file Curve.h.
Referenced by Freestyle::__recursiveSplit().
|
inline |
Returns the number of segments in the polyline constituting the Curve.
Definition at line 491 of file Curve.h.
Referenced by Freestyle::__recursiveSplit(), and Freestyle::Operators::sequentialSplit().
Curve::point_iterator Curve::points_begin | ( | float | step = 0 | ) |
iterators access
Definition at line 563 of file Curve.cpp.
References _nSegments, and _Vertices.
Referenced by vertices_begin().
Curve::const_point_iterator Curve::points_begin | ( | float | step = 0 | ) | const |
Definition at line 572 of file Curve.cpp.
References _nSegments, and _Vertices.
Curve::point_iterator Curve::points_end | ( | float | step = 0 | ) |
Definition at line 581 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
Referenced by vertices_end().
Curve::const_point_iterator Curve::points_end | ( | float | step = 0 | ) | const |
Definition at line 594 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
|
virtual |
Returns an Interface0DIterator pointing onto the first point of the Curve and that can iterate over the points of the Curve at any resolution. At each iteration a virtual temporary CurvePoint is created.
Reimplemented from Freestyle::Interface1D.
Definition at line 672 of file Curve.cpp.
References _Length, _nSegments, _Vertices, ret, and t.
Referenced by verticesBegin().
|
virtual |
Returns an Interface0DIterator pointing after the last point of the Curve and that can iterate over the points of the Curve at any resolution. At each iteration a virtual temporary CurvePoint is created.
Reimplemented from Freestyle::Interface1D.
Definition at line 689 of file Curve.cpp.
References _Length, _nSegments, _Vertices, ret, and t.
Referenced by verticesEnd().
Adds a single vertex (SVertex) at the end of the Curve
Definition at line 437 of file Curve.h.
References Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::SVertex::point2d().
Adds a single vertex (CurvePoint) at the end of the Curve
Definition at line 425 of file Curve.h.
References Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::CurvePoint::point2d().
Referenced by Freestyle::__recursiveSplit(), Freestyle::Chain::push_viewedge_back(), and Freestyle::Operators::sequentialSplit().
Adds a single vertex (SVertex) at the front of the Curve
Definition at line 461 of file Curve.h.
References Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::SVertex::point2d().
Adds a single vertex (CurvePoint) at the front of the Curve
Definition at line 449 of file Curve.h.
References Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::CurvePoint::point2d().
Referenced by Freestyle::Chain::push_viewedge_front().
Curve::point_iterator Curve::vertices_begin | ( | ) |
Definition at line 609 of file Curve.cpp.
References points_begin().
Curve::const_point_iterator Curve::vertices_begin | ( | ) | const |
Definition at line 614 of file Curve.cpp.
References points_begin().
Curve::point_iterator Curve::vertices_end | ( | ) |
Definition at line 619 of file Curve.cpp.
References points_end().
Curve::const_point_iterator Curve::vertices_end | ( | ) | const |
Definition at line 624 of file Curve.cpp.
References points_end().
|
virtual |
Returns an Interface0DIterator pointing onto the first vertex of the Curve and that can iterate over the vertices of the Curve.
Reimplemented from Freestyle::Interface1D.
Definition at line 706 of file Curve.cpp.
References pointsBegin().
|
virtual |
Returns an Interface0DIterator pointing after the last vertex of the Curve and that can iterate over the vertices of the Curve.
Reimplemented from Freestyle::Interface1D.
Definition at line 711 of file Curve.cpp.
References pointsEnd().
|
protected |
Definition at line 381 of file Curve.h.
Referenced by Curve(), and Freestyle::Chain::~Chain().
|
protected |
Definition at line 380 of file Curve.h.
Referenced by Curve(), curvePointsBegin(), curvePointsEnd(), points_end(), pointsBegin(), and pointsEnd().
|
protected |
Definition at line 382 of file Curve.h.
Referenced by curvePointsBegin(), curvePointsEnd(), points_begin(), points_end(), pointsBegin(), and pointsEnd().
|
protected |
Definition at line 379 of file Curve.h.
Referenced by Curve(), curvePointsBegin(), curvePointsEnd(), points_begin(), points_end(), pointsBegin(), pointsEnd(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), and ~Curve().