KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIFONT::STROKE_GLYPH Class Reference

#include <glyph.h>

Inheritance diagram for KIFONT::STROKE_GLYPH:
KIFONT::GLYPH

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< GLYPHTransform (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

elements
 STL member.
 

Private Attributes

bool m_penIsDown = false
 
BOX2D m_boundingBox
 

Detailed Description

Definition at line 96 of file glyph.h.

Constructor & Destructor Documentation

◆ STROKE_GLYPH() [1/2]

KIFONT::STROKE_GLYPH::STROKE_GLYPH ( )
inline

Definition at line 99 of file glyph.h.

◆ STROKE_GLYPH() [2/2]

STROKE_GLYPH::STROKE_GLYPH ( const STROKE_GLYPH aGlyph)

Definition at line 28 of file glyph.cpp.

References m_boundingBox.

Member Function Documentation

◆ AddPoint()

void STROKE_GLYPH::AddPoint ( const VECTOR2D aPoint)

Definition at line 39 of file glyph.cpp.

References m_penIsDown.

Referenced by drawMarkup().

◆ BoundingBox()

BOX2D KIFONT::STROKE_GLYPH::BoundingBox ( )
inlineoverridevirtual

Implements KIFONT::GLYPH.

Definition at line 110 of file glyph.h.

Referenced by KIFONT::STROKE_FONT::GetTextAsGlyphs().

◆ Finalize()

void STROKE_GLYPH::Finalize ( )

Definition at line 63 of file glyph.cpp.

References empty().

Referenced by drawMarkup().

◆ IsOutline()

virtual bool KIFONT::GLYPH::IsOutline ( ) const
inlinevirtualinherited

◆ IsStroke()

bool KIFONT::STROKE_GLYPH::IsStroke ( ) const
inlineoverridevirtual

Reimplemented from KIFONT::GLYPH.

Definition at line 104 of file glyph.h.

◆ Move()

void STROKE_GLYPH::Move ( const VECTOR2I aOffset)

Definition at line 114 of file glyph.cpp.

References m_boundingBox, and BOX2< Vec >::Offset().

◆ RaisePen()

void STROKE_GLYPH::RaisePen ( )

Definition at line 52 of file glyph.cpp.

References m_penIsDown.

◆ SetBoundingBox()

void KIFONT::STROKE_GLYPH::SetBoundingBox ( const BOX2D bbox)
inline

Definition at line 111 of file glyph.h.

◆ Transform()

std::unique_ptr< GLYPH > STROKE_GLYPH::Transform ( const VECTOR2D aGlyphSize,
const VECTOR2I aOffset,
double  aTilt,
const EDA_ANGLE aAngle,
bool  aMirror,
const VECTOR2I aOrigin 
)

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_boundingBox

BOX2D KIFONT::STROKE_GLYPH::m_boundingBox
private

Definition at line 121 of file glyph.h.

Referenced by Move(), and STROKE_GLYPH().

◆ m_penIsDown

bool KIFONT::STROKE_GLYPH::m_penIsDown = false
private

Definition at line 120 of file glyph.h.

Referenced by AddPoint(), and RaisePen().


The documentation for this class was generated from the following files: