22#include "aeongui/DrawType.hpp"
46 virtual void Construct (
const std::vector<DrawType>& aCommands,
size_t aPathDataHint = 0 ) = 0;
52 virtual void Construct (
const DrawType* aCommands,
size_t aCommandCount,
size_t aPathDataHint = 0 ) = 0;
Abstract base class for renderable path data.
Definition Path.hpp:40
virtual void Construct(const std::vector< DrawType > &aCommands, size_t aPathDataHint=0)=0
Build the path from a vector of draw commands.
virtual PathPoint GetPointAtLength(double aDistance) const =0
Get the position and tangent angle at a distance along the path.
virtual void Construct(const DrawType *aCommands, size_t aCommandCount, size_t aPathDataHint=0)=0
Build the path from a raw array of draw commands.
virtual ~Path()=0
Virtual destructor.
virtual double GetTotalLength() const =0
Compute the total arc length of the path.
virtual bool IsClosed() const =0
Check whether the path contains a close-path command.
Result of querying a point along a path.
Definition Path.hpp:28
double y
Y coordinate.
Definition Path.hpp:30
double x
X coordinate.
Definition Path.hpp:29
double angle
Tangent angle in radians.
Definition Path.hpp:31