KiCad PCB EDA Suite
IMPORTED_TEXT Class Reference

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_TEXT:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_TEXT (const VECTOR2D &aOrigin, const wxString &aText, double aHeight, double aWidth, double aThickness, double aOrientation, EDA_TEXT_HJUSTIFY_T aHJustify, EDA_TEXT_VJUSTIFY_T aVJustify)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 

Private Attributes

const VECTOR2D m_origin
 
const wxString m_text
 
double m_height
 
double m_width
 
double m_thickness
 
double m_orientation
 
EDA_TEXT_HJUSTIFY_T m_hJustify
 
EDA_TEXT_VJUSTIFY_T m_vJustify
 

Detailed Description

Definition at line 121 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_TEXT()

IMPORTED_TEXT::IMPORTED_TEXT ( const VECTOR2D aOrigin,
const wxString &  aText,
double  aHeight,
double  aWidth,
double  aThickness,
double  aOrientation,
EDA_TEXT_HJUSTIFY_T  aHJustify,
EDA_TEXT_VJUSTIFY_T  aVJustify 
)
inline

Definition at line 124 of file graphics_importer_buffer.h.

127  : m_origin( aOrigin ), m_text( aText ),
128  m_height( aHeight ), m_width( aWidth ), m_thickness( aThickness ),
129  m_orientation( aOrientation ),
130  m_hJustify( aHJustify ), m_vJustify( aVJustify )
131  {
132  }
EDA_TEXT_HJUSTIFY_T m_hJustify
EDA_TEXT_VJUSTIFY_T m_vJustify

Member Function Documentation

◆ ImportTo()

void IMPORTED_TEXT::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 134 of file graphics_importer_buffer.h.

135  {
136  aImporter.AddText( m_origin, m_text, m_height, m_width,
138  }
EDA_TEXT_HJUSTIFY_T m_hJustify
EDA_TEXT_VJUSTIFY_T m_vJustify
virtual void AddText(const VECTOR2D &aOrigin, const wxString &aText, double aHeight, double aWidth, double aThickness, double aOrientation, EDA_TEXT_HJUSTIFY_T aHJustify, EDA_TEXT_VJUSTIFY_T aVJustify)=0
Create an object representing a text.

References GRAPHICS_IMPORTER::AddText(), m_height, m_hJustify, m_orientation, m_origin, m_text, m_thickness, m_vJustify, and m_width.

Member Data Documentation

◆ m_height

double IMPORTED_TEXT::m_height
private

Definition at line 143 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_hJustify

EDA_TEXT_HJUSTIFY_T IMPORTED_TEXT::m_hJustify
private

Definition at line 147 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_orientation

double IMPORTED_TEXT::m_orientation
private

Definition at line 146 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_origin

const VECTOR2D IMPORTED_TEXT::m_origin
private

Definition at line 141 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_text

const wxString IMPORTED_TEXT::m_text
private

Definition at line 142 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_thickness

double IMPORTED_TEXT::m_thickness
private

Definition at line 145 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_vJustify

EDA_TEXT_VJUSTIFY_T IMPORTED_TEXT::m_vJustify
private

Definition at line 148 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_width

double IMPORTED_TEXT::m_width
private

Definition at line 144 of file graphics_importer_buffer.h.

Referenced by ImportTo().


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