KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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, GR_TEXT_H_ALIGN_T aHJustify, GR_TEXT_V_ALIGN_T aVJustify, const COLOR4D &aColor)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 
virtual std::unique_ptr< IMPORTED_SHAPEclone () const override
 
void Transform (const MATRIX3x3D &aTransform, const VECTOR2D &aTranslation) override
 
BOX2D GetBoundingBox () const override
 
void SetParentShapeIndex (int aIndex)
 
int GetParentShapeIndex () const
 

Protected Attributes

int m_parentShapeIndex = -1
 

Private Attributes

VECTOR2D m_origin
 
const wxString m_text
 
double m_height
 
double m_width
 
double m_thickness
 
double m_orientation
 
GR_TEXT_H_ALIGN_T m_hJustify
 
GR_TEXT_V_ALIGN_T m_vJustify
 
COLOR4D m_color
 

Detailed Description

Definition at line 252 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,
GR_TEXT_H_ALIGN_T  aHJustify,
GR_TEXT_V_ALIGN_T  aVJustify,
const COLOR4D aColor 
)
inline

Definition at line 255 of file graphics_importer_buffer.h.

Member Function Documentation

◆ clone()

virtual std::unique_ptr< IMPORTED_SHAPE > IMPORTED_TEXT::clone ( ) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 271 of file graphics_importer_buffer.h.

◆ GetBoundingBox()

BOX2D IMPORTED_TEXT::GetBoundingBox ( ) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 285 of file graphics_importer_buffer.h.

References m_height, m_origin, m_text, m_width, and BOX2< Vec >::Merge().

◆ GetParentShapeIndex()

int IMPORTED_SHAPE::GetParentShapeIndex ( ) const
inlineinherited

◆ ImportTo()

void IMPORTED_TEXT::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

◆ SetParentShapeIndex()

void IMPORTED_SHAPE::SetParentShapeIndex ( int  aIndex)
inlineinherited

Definition at line 47 of file graphics_importer_buffer.h.

References IMPORTED_SHAPE::m_parentShapeIndex.

◆ Transform()

void IMPORTED_TEXT::Transform ( const MATRIX3x3D aTransform,
const VECTOR2D aTranslation 
)
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 276 of file graphics_importer_buffer.h.

References m_height, m_origin, m_width, VECTOR2< T >::x, and VECTOR2< T >::y.

Member Data Documentation

◆ m_color

COLOR4D IMPORTED_TEXT::m_color
private

Definition at line 303 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_height

double IMPORTED_TEXT::m_height
private

Definition at line 297 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), ImportTo(), and Transform().

◆ m_hJustify

GR_TEXT_H_ALIGN_T IMPORTED_TEXT::m_hJustify
private

Definition at line 301 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_orientation

double IMPORTED_TEXT::m_orientation
private

Definition at line 300 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_origin

VECTOR2D IMPORTED_TEXT::m_origin
private

Definition at line 295 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), ImportTo(), and Transform().

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

◆ m_text

const wxString IMPORTED_TEXT::m_text
private

Definition at line 296 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), and ImportTo().

◆ m_thickness

double IMPORTED_TEXT::m_thickness
private

Definition at line 299 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_vJustify

GR_TEXT_V_ALIGN_T IMPORTED_TEXT::m_vJustify
private

Definition at line 302 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_width

double IMPORTED_TEXT::m_width
private

Definition at line 298 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), ImportTo(), and Transform().


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