24#ifndef GRAPHICS_GPATH_H_
25#define GRAPHICS_GPATH_H_
64 static std::vector<glm::vec3> samplePoints(
65 const std::vector<glm::vec3>& sourcepoints,
69 std::vector<glm::vec3> points;
70 std::size_t currentpoint;
88 glm::vec3
getPoint(
int subpathno,
int subpathpointno);
98 std::vector<gSubPath> subpaths;
99 std::size_t currentsubpath;
Definition gBezierQuad.h:16
Evaluates and renders a single quadratic Bezier curve requiring exactly 3 control points (two ends an...
Definition gBezier.h:27
gSubPath(const gBezier &bezier, int pointcount)
gSubPath(gArc &arc, int pointcount)
int getPointCount() const
gSubPath(const gPath &path, int pointcount)
gSubPath(gLine &line, int pointcount)
Type
Definition gPath.h:40
@ TYPE_PATH
Definition gPath.h:45
@ TYPE_LINE
Definition gPath.h:41
@ TYPE_BEZIER
Definition gPath.h:43
@ TYPE_ARC
Definition gPath.h:42
@ TYPE_BEZIERQUAD
Definition gPath.h:44
const std::vector< glm::vec3 > & getPoints() const
bool hasNextPoint() const
glm::vec3 getPoint(int pointno)
gSubPath(const gBezierQuad &bezierquad, int pointcount)
void addSubPath(const gBezierQuad &bezierquad, int pointcount)
void addSubPath(const gBezier &bezier, int pointcount)
std::vector< glm::vec3 > getPoints() const
void addSubPath(gLine &line, int pointcount)
int getPointCount() const
int getSubPathCount() const
glm::vec3 getPoint(int pointno)
const std::vector< gSubPath > & getSubPaths() const
glm::vec3 getPoint(int subpathno, int subpathpointno)
void addSubPath(const gPath &path, int pointcount)
bool hasNextPoint() const
void addSubPath(const gSubPath &subpath)
void addSubPath(gArc &arc, int pointcount)