KiCad PCB EDA Suite
|
#include <glyph.h>
Public Member Functions | |
STROKE_GLYPH () | |
STROKE_GLYPH (const STROKE_GLYPH &aGlyph) | |
bool | IsStroke () const override |
void | AddPoint (const VECTOR2D &aPoint) |
void | RaisePen () |
void | Finalize () |
BOX2D | BoundingBox () override |
void | SetBoundingBox (const BOX2D &bbox) |
std::unique_ptr< GLYPH > | Transform (const VECTOR2D &aGlyphSize, const VECTOR2I &aOffset, double aTilt, const EDA_ANGLE &aAngle, bool aMirror, const VECTOR2I &aOrigin) |
void | Move (const VECTOR2I &aOffset) |
virtual bool | IsOutline () const |
Public Attributes | |
T | elements |
STL member. | |
Private Attributes | |
bool | m_penIsDown = false |
BOX2D | m_boundingBox |
STROKE_GLYPH::STROKE_GLYPH | ( | const STROKE_GLYPH & | aGlyph | ) |
Definition at line 28 of file glyph.cpp.
References m_boundingBox.
void STROKE_GLYPH::AddPoint | ( | const VECTOR2D & | aPoint | ) |
|
inlineoverridevirtual |
Implements KIFONT::GLYPH.
Definition at line 110 of file glyph.h.
Referenced by KIFONT::STROKE_FONT::GetTextAsGlyphs().
void STROKE_GLYPH::Finalize | ( | ) |
|
inlinevirtualinherited |
Reimplemented in KIFONT::OUTLINE_GLYPH.
Definition at line 50 of file glyph.h.
Referenced by CALLBACK_GAL::DrawGlyph(), KIGFX::OPENGL_GAL::DrawGlyph(), and KIGFX::CAIRO_GAL_BASE::DrawGlyph().
|
inlineoverridevirtual |
Reimplemented from KIFONT::GLYPH.
void STROKE_GLYPH::Move | ( | const VECTOR2I & | aOffset | ) |
Definition at line 114 of file glyph.cpp.
References m_boundingBox, and BOX2< Vec >::Offset().
void STROKE_GLYPH::RaisePen | ( | ) |
Definition at line 52 of file glyph.cpp.
References m_penIsDown.
|
inline |
std::unique_ptr< GLYPH > STROKE_GLYPH::Transform | ( | const VECTOR2D & | aGlyphSize, |
const VECTOR2I & | aOffset, | ||
double | aTilt, | ||
const EDA_ANGLE & | aAngle, | ||
bool | aMirror, | ||
const VECTOR2I & | aOrigin | ||
) |
Definition at line 74 of file glyph.cpp.
References EDA_ANGLE::IsZero(), RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by drawMarkup(), and KIFONT::STROKE_FONT::GetTextAsGlyphs().
|
inherited |
STL member.
|
private |
Definition at line 121 of file glyph.h.
Referenced by Move(), and STROKE_GLYPH().
|
private |
Definition at line 120 of file glyph.h.
Referenced by AddPoint(), and RaisePen().