#include <PathData.h>
Public Types | |
enum | PathSegmentType { e_moveto = 1, e_lineto, e_cubicto, e_conicto, e_rect, e_closepath } |
Public Member Functions | |
PathData () | |
void | SetOperators (const std::vector< unsigned char > &operators) |
void | SetPoints (const std::vector< double > &points) |
const std::vector< unsigned char > & | GetOperators () const |
const std::vector< double > & | GetPoints () const |
bool | IsDefined () const |
int | GetGlyphIndex () const |
Contains the information required to draw the path. Contains an array of PathSegmentType Operators and corresponding path data Points. A point may be on or off (off points are control points). The meaning of a point depends on associated id (or segment type) in the path segment type array.
Definition at line 19 of file PathData.h.
Enumeration used to indicate operator type.
Enumerator | |
---|---|
e_moveto | |
e_lineto | |
e_cubicto | |
e_conicto | |
e_rect | |
e_closepath |
Definition at line 25 of file PathData.h.
|
inline |
Create a new empty PathData object.
Definition at line 62 of file PathData.h.
|
inline |
Definition at line 128 of file PathData.h.
|
inline |
Get the current operators.
Definition at line 92 of file PathData.h.
|
inline |
Get the current data points.
Definition at line 107 of file PathData.h.
|
inline |
If PathData was acquired from Font::GetGlyphPath then is method will indicate if this is an 'undefined character code'.
Definition at line 121 of file PathData.h.
|
inline |
Overwrite the existing operators.
operators | - The new operators to use. |
Definition at line 69 of file PathData.h.
|
inline |
Overwrite the existing data points.
points | - The new data points to use. |
Definition at line 78 of file PathData.h.