|
Blender V5.0
|
#include <Curve.h>
Inherits Freestyle::Interface1D.
Inherited by Freestyle::Chain.
Protected Attributes | |
| vertex_container | _Vertices |
| double | _Length |
| Id | _Id |
| uint | _nSegments |
| Protected Attributes inherited from Freestyle::Interface1D | |
| uint | _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 |
Default Constructor.
Definition at line 384 of file Curve.h.
References _Id, _Length, and _nSegments.
Referenced by Freestyle::Chain::Chain(), Freestyle::Chain::Chain(), Freestyle::Chain::Chain(), and Curve().
|
inline |
|
inline |
|
virtual |
| CurveInternal::CurvePointIterator Curve::curvePointsBegin | ( | float | t = 0.0f | ) |
Definition at line 639 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), and curveVerticesBegin().
| CurveInternal::CurvePointIterator Curve::curvePointsEnd | ( | float | t = 0.0f | ) |
Definition at line 655 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), and curveVerticesEnd().
| CurveInternal::CurvePointIterator Curve::curveVerticesBegin | ( | ) |
Definition at line 671 of file Curve.cpp.
References curvePointsBegin().
Referenced by Freestyle::__recursiveSplit(), and Freestyle::__recursiveSplit().
| CurveInternal::CurvePointIterator Curve::curveVerticesEnd | ( | ) |
Definition at line 676 of file Curve.cpp.
References curvePointsEnd().
Referenced by Freestyle::__recursiveSplit(), and 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 483 of file Curve.h.
References _Id.
Referenced by Freestyle::__recursiveSplit(), and Freestyle::__recursiveSplit().
|
inlinevirtual |
Returns the 2D length of the Curve.
Reimplemented from Freestyle::Interface1D.
Definition at line 477 of file Curve.h.
References _Length.
Referenced by Freestyle::__recursiveSplit(), and Freestyle::__recursiveSplit().
|
inline |
Returns the number of segments in the polyline constituting the Curve.
Definition at line 489 of file Curve.h.
References _nSegments.
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), Freestyle::Operators::sequentialSplit(), and Freestyle::Operators::sequentialSplit().
| Curve::point_iterator Curve::points_begin | ( | float | step = 0 | ) |
Definition at line 572 of file Curve.cpp.
References _nSegments, _Vertices, and step.
Referenced by vertices_begin(), and vertices_begin().
| Curve::const_point_iterator Curve::points_begin | ( | float | step = 0 | ) | const |
Definition at line 581 of file Curve.cpp.
References _nSegments, _Vertices, and step.
| Curve::point_iterator Curve::points_end | ( | float | step = 0 | ) |
Definition at line 590 of file Curve.cpp.
References _Length, _nSegments, _Vertices, and step.
Referenced by vertices_end(), and vertices_end().
| Curve::const_point_iterator Curve::points_end | ( | float | step = 0 | ) | const |
|
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 681 of file Curve.cpp.
References _Length, _nSegments, _Vertices, and ret.
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 698 of file Curve.cpp.
References _Length, _nSegments, _Vertices, and ret.
Referenced by verticesEnd().
|
inline |
Adds a single vertex (SVertex) at the end of the Curve
Definition at line 435 of file Curve.h.
References _Length, _nSegments, _Vertices, Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::SVertex::point2d().
|
inline |
Adds a single vertex (CurvePoint) at the end of the Curve
Definition at line 423 of file Curve.h.
References _Length, _nSegments, _Vertices, Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::CurvePoint::point2d().
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), Freestyle::Operators::sequentialSplit(), and Freestyle::Operators::sequentialSplit().
|
inline |
Adds a single vertex (SVertex) at the front of the Curve
Definition at line 459 of file Curve.h.
References _Length, _nSegments, _Vertices, Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::SVertex::point2d().
|
inline |
Adds a single vertex (CurvePoint) at the front of the Curve
Definition at line 447 of file Curve.h.
References _Length, _nSegments, _Vertices, Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::CurvePoint::point2d().
|
inline |
| Curve::point_iterator Curve::vertices_begin | ( | ) |
Definition at line 618 of file Curve.cpp.
References points_begin().
| Curve::const_point_iterator Curve::vertices_begin | ( | ) | const |
Definition at line 623 of file Curve.cpp.
References points_begin().
| Curve::point_iterator Curve::vertices_end | ( | ) |
Definition at line 628 of file Curve.cpp.
References points_end().
| Curve::const_point_iterator Curve::vertices_end | ( | ) | const |
Definition at line 633 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 715 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 720 of file Curve.cpp.
References pointsEnd().
|
protected |
|
protected |
Definition at line 378 of file Curve.h.
Referenced by Curve(), Curve(), Curve(), curvePointsBegin(), curvePointsEnd(), getLength2D(), points_end(), points_end(), pointsBegin(), pointsEnd(), push_vertex_back(), push_vertex_back(), push_vertex_front(), and push_vertex_front().
|
protected |
Definition at line 380 of file Curve.h.
Referenced by Curve(), Curve(), Curve(), curvePointsBegin(), curvePointsEnd(), nSegments(), points_begin(), points_begin(), points_end(), points_end(), pointsBegin(), pointsEnd(), push_vertex_back(), push_vertex_back(), push_vertex_front(), and push_vertex_front().
|
protected |
Definition at line 377 of file Curve.h.
Referenced by Curve(), curvePointsBegin(), curvePointsEnd(), empty(), points_begin(), points_begin(), points_end(), points_end(), pointsBegin(), pointsEnd(), push_vertex_back(), push_vertex_back(), push_vertex_front(), push_vertex_front(), Freestyle::Chain::push_viewedge_back(), Freestyle::Chain::push_viewedge_front(), and ~Curve().