27#include "GraphicsApi.h"
31#ifndef DOXYGEN_SHOULD_SKIP_THIS
83 std::size_t m_pointCount;
113 std::size_t m_pointCount;
164 std::size_t m_pointCount;
165 std::vector<Vector2f> m_points;
239 std::vector<Vector2f> m_points;
244#ifndef DOXYGEN_SHOULD_SKIP_THIS
A compound curve.
Definition: Curves.h:175
CompoundCurve & setOrigin(Vector2f origin)
Set the first point of the curve.
void close()
Close the curve.
Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
CompoundCurve & cubicCurveTo(Vector2f p1, Vector2f p2, Vector2f p3, std::size_t pointCount=30)
Create a cubic Bézier curve from the last point to a new point.
CompoundCurve & quadraticCurveTo(Vector2f p1, Vector2f p2, std::size_t pointCount=20)
Create a quadratic Bézier curve from the last point to a new point.
CompoundCurve & clear(Vector2f origin=Vector2f(0, 0))
Reset the curve to a new origin.
std::size_t getPointCount() const override
Get the total number of points of the curve.
CompoundCurve & lineTo(Vector2f p1)
Create a line from the last point to a new point.
CompoundCurve(Vector2f origin=Vector2f(0, 0))
Constructor.
A cubic Bézier curve.
Definition: Curves.h:95
std::size_t getPointCount() const override
Get the total number of points of the curve.
CubicBezierCurve(Vector2f p0, Vector2f p1, Vector2f p2, Vector2f p3, std::size_t pointCount=30)
Constructor.
Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
A curve is a one dimension object.
Definition: Curve.h:52
A line.
Definition: Curves.h:41
std::size_t getPointCount() const override
Get the total number of points of the curve.
Line(Vector2f p0, Vector2f p1)
Constructor.
Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
A polyline.
Definition: Polyline.h:47
A quadratic Bézier curve.
Definition: Curves.h:66
Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
QuadraticBezierCurve(Vector2f p0, Vector2f p1, Vector2f p2, std::size_t pointCount=20)
Constructor.
std::size_t getPointCount() const override
Get the total number of points of the curve.
A Catmull–Rom spline.
Definition: Curves.h:126
void setControlPoints(const Polyline &line)
Set the control points of the spline.
SplineCurve(Type type=Centripetal, std::size_t pointCount=30)
Constructor.
Vector2f getPoint(std::size_t index) const override
Get a point of the curve.
std::size_t getPointCount() const override
Get the total number of points of the curve.
Type
The type of the spline.
Definition: Curves.h:137
@ Chordal
A uniform spline ( )
Definition: Curves.h:139
@ Uniform
A uniform spline ( )
Definition: Curves.h:138
@ Centripetal
A uniform spline ( )
Definition: Curves.h:140
Vector< float, 2 > Vector2f
A float vector with 2 components.
Definition: Vector.h:1117
The namespace for gf classes.