KiCad PCB EDA Suite
|
#include <outline_decomposer.h>
Public Member Functions | |
OUTLINE_DECOMPOSER (FT_Outline &aOutline) | |
bool | OutlineToSegments (std::vector< CONTOUR > *aContours) |
Private Member Functions | |
void | newContour () |
void | addContourPoint (const VECTOR2D &p) |
int | winding (const std::vector< VECTOR2D > &aContour) const |
Static Private Member Functions | |
static unsigned int | onCurve (char aTags) |
static unsigned int | thirdOrderBezierPoint (char aTags) |
static unsigned int | secondOrderBezierPoint (char aTags) |
static unsigned int | hasDropout (char aTags) |
static unsigned int | dropoutMode (char aTags) |
static int | moveTo (const FT_Vector *aEndPoint, void *aCallbackData) |
static int | lineTo (const FT_Vector *aEndPoint, void *aCallbackData) |
static int | quadraticTo (const FT_Vector *aControlPoint, const FT_Vector *aEndPoint, void *aCallbackData) |
static int | cubicTo (const FT_Vector *aFirstControlPoint, const FT_Vector *aSecondControlPoint, const FT_Vector *aEndPoint, void *aCallbackData) |
Private Attributes | |
FT_Outline & | m_outline |
std::vector< CONTOUR > * | m_contours |
VECTOR2D | m_lastEndPoint |
Definition at line 68 of file outline_decomposer.h.
OUTLINE_DECOMPOSER::OUTLINE_DECOMPOSER | ( | FT_Outline & | aOutline | ) |
Definition at line 33 of file outline_decomposer.cpp.
|
private |
Definition at line 55 of file outline_decomposer.cpp.
References m_contours.
|
staticprivate |
Definition at line 95 of file outline_decomposer.cpp.
References addContourPoint(), ADVANCED_CFG::GetCfg(), BEZIER_POLY::GetPoly(), m_lastEndPoint, and toVector2D().
Referenced by OutlineToSegments(), and quadraticTo().
|
inlinestaticprivate |
Definition at line 106 of file outline_decomposer.h.
References hasDropout().
|
inlinestaticprivate |
Definition at line 101 of file outline_decomposer.h.
Referenced by dropoutMode().
|
staticprivate |
Definition at line 76 of file outline_decomposer.cpp.
References addContourPoint(), m_lastEndPoint, and toVector2D().
Referenced by OutlineToSegments().
|
staticprivate |
Definition at line 63 of file outline_decomposer.cpp.
References addContourPoint(), m_lastEndPoint, newContour(), and toVector2D().
Referenced by OutlineToSegments().
|
private |
Definition at line 47 of file outline_decomposer.cpp.
References m_contours, KIFONT::CONTOUR::m_Orientation, and m_outline.
Referenced by moveTo().
|
inlinestaticprivate |
Definition at line 86 of file outline_decomposer.h.
Referenced by secondOrderBezierPoint(), and thirdOrderBezierPoint().
bool OUTLINE_DECOMPOSER::OutlineToSegments | ( | std::vector< CONTOUR > * | aContours | ) |
Definition at line 126 of file outline_decomposer.cpp.
References cubicTo(), lineTo(), m_contours, m_outline, moveTo(), quadraticTo(), and winding().
Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphsUnlocked().
|
staticprivate |
Definition at line 88 of file outline_decomposer.cpp.
References cubicTo().
Referenced by OutlineToSegments().
|
inlinestaticprivate |
Definition at line 96 of file outline_decomposer.h.
References onCurve(), and thirdOrderBezierPoint().
|
inlinestaticprivate |
Definition at line 91 of file outline_decomposer.h.
References onCurve().
Referenced by secondOrderBezierPoint().
|
private |
Definition at line 151 of file outline_decomposer.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by OutlineToSegments().
|
private |
Definition at line 124 of file outline_decomposer.h.
Referenced by addContourPoint(), newContour(), and OutlineToSegments().
|
private |
Definition at line 126 of file outline_decomposer.h.
|
private |
Definition at line 123 of file outline_decomposer.h.
Referenced by newContour(), and OutlineToSegments().