|
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 65 of file outline_decomposer.h.
| OUTLINE_DECOMPOSER::OUTLINE_DECOMPOSER | ( | FT_Outline & | aOutline | ) |
Definition at line 29 of file outline_decomposer.cpp.
References m_contours, and m_outline.
|
private |
Definition at line 51 of file outline_decomposer.cpp.
References m_contours.
|
staticprivate |
Definition at line 91 of file outline_decomposer.cpp.
References addContourPoint(), ADVANCED_CFG::GetCfg(), BEZIER_POLY::GetPoly(), m_lastEndPoint, OUTLINE_DECOMPOSER(), result, and toVector2D().
Referenced by OutlineToSegments(), and quadraticTo().
|
inlinestaticprivate |
Definition at line 103 of file outline_decomposer.h.
References hasDropout().
|
inlinestaticprivate |
Definition at line 98 of file outline_decomposer.h.
Referenced by dropoutMode().
|
staticprivate |
Definition at line 72 of file outline_decomposer.cpp.
References addContourPoint(), m_lastEndPoint, OUTLINE_DECOMPOSER(), and toVector2D().
Referenced by OutlineToSegments().
|
staticprivate |
Definition at line 59 of file outline_decomposer.cpp.
References addContourPoint(), m_lastEndPoint, newContour(), OUTLINE_DECOMPOSER(), and toVector2D().
Referenced by OutlineToSegments().
|
private |
Definition at line 43 of file outline_decomposer.cpp.
References m_contours, KIFONT::CONTOUR::m_Orientation, and m_outline.
Referenced by moveTo().
|
inlinestaticprivate |
Definition at line 83 of file outline_decomposer.h.
Referenced by secondOrderBezierPoint(), and thirdOrderBezierPoint().
| bool OUTLINE_DECOMPOSER::OutlineToSegments | ( | std::vector< CONTOUR > * | aContours | ) |
Definition at line 122 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 84 of file outline_decomposer.cpp.
References cubicTo().
Referenced by OutlineToSegments().
|
inlinestaticprivate |
Definition at line 93 of file outline_decomposer.h.
References onCurve(), and thirdOrderBezierPoint().
|
inlinestaticprivate |
Definition at line 88 of file outline_decomposer.h.
References onCurve().
Referenced by secondOrderBezierPoint().
|
private |
Definition at line 147 of file outline_decomposer.cpp.
References cw, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by OutlineToSegments().
|
private |
Definition at line 121 of file outline_decomposer.h.
Referenced by addContourPoint(), newContour(), OUTLINE_DECOMPOSER(), and OutlineToSegments().
|
private |
Definition at line 123 of file outline_decomposer.h.
|
private |
Definition at line 120 of file outline_decomposer.h.
Referenced by newContour(), OUTLINE_DECOMPOSER(), and OutlineToSegments().