|
Blender V4.3
|
#include <Curve.h>
Inherits Freestyle::Interface1D.
Inherited by Freestyle::Chain.
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 |
| 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 388 of file Curve.h.
References _Id, _Length, and _nSegments.
|
inline |
|
inline |
|
virtual |
| CurveInternal::CurvePointIterator Curve::curvePointsBegin | ( | float | t = 0.0f | ) |
Definition at line 638 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 654 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), and curveVerticesEnd().
| CurveInternal::CurvePointIterator Curve::curveVerticesBegin | ( | ) |
Definition at line 670 of file Curve.cpp.
References curvePointsBegin().
Referenced by Freestyle::__recursiveSplit(), and Freestyle::__recursiveSplit().
| CurveInternal::CurvePointIterator Curve::curveVerticesEnd | ( | ) |
Definition at line 675 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 487 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 481 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 493 of file Curve.h.
References _nSegments.
Referenced by Freestyle::__recursiveSplit(), Freestyle::__recursiveSplit(), Freestyle::Operators::sequentialSplit(), and Freestyle::Operators::sequentialSplit().
| Curve::point_iterator Freestyle::Curve::points_begin | ( | float | step = 0 | ) |
iterators access
Definition at line 571 of file Curve.cpp.
References _nSegments, and _Vertices.
Referenced by vertices_begin(), and vertices_begin().
| Curve::const_point_iterator Curve::points_begin | ( | float | step = 0 | ) | const |
Definition at line 580 of file Curve.cpp.
References _nSegments, and _Vertices.
| Curve::point_iterator Curve::points_end | ( | float | step = 0 | ) |
Definition at line 589 of file Curve.cpp.
References _Length, _nSegments, and _Vertices.
Referenced by vertices_end(), and vertices_end().
| Curve::const_point_iterator Curve::points_end | ( | float | step = 0 | ) | const |
Definition at line 602 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 680 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 697 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 439 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 427 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 463 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 451 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 617 of file Curve.cpp.
References points_begin().
| Curve::const_point_iterator Curve::vertices_begin | ( | ) | const |
Definition at line 622 of file Curve.cpp.
References points_begin().
| Curve::point_iterator Curve::vertices_end | ( | ) |
Definition at line 627 of file Curve.cpp.
References points_end().
| Curve::const_point_iterator Curve::vertices_end | ( | ) | const |
Definition at line 632 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 714 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 719 of file Curve.cpp.
References pointsEnd().
|
protected |
|
protected |
Definition at line 382 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 384 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 381 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().