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
 
void SetSourceLayer (const wxString &aSourceLayer)
 
const wxString & GetSourceLayer () const
 

Protected Attributes

int m_parentShapeIndex = -1
 
wxString m_sourceLayer
 

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 259 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

Member Function Documentation

◆ clone()

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

Implements IMPORTED_SHAPE.

Definition at line 278 of file graphics_importer_buffer.h.

◆ GetBoundingBox()

BOX2D IMPORTED_TEXT::GetBoundingBox ( ) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 292 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

◆ GetSourceLayer()

const wxString & IMPORTED_SHAPE::GetSourceLayer ( ) const
inlineinherited

Definition at line 52 of file graphics_importer_buffer.h.

References m_sourceLayer.

◆ ImportTo()

void IMPORTED_TEXT::ImportTo ( GRAPHICS_IMPORTER & aImporter) const
inlineoverridevirtual

◆ SetParentShapeIndex()

void IMPORTED_SHAPE::SetParentShapeIndex ( int aIndex)
inlineinherited

Definition at line 48 of file graphics_importer_buffer.h.

References m_parentShapeIndex.

◆ SetSourceLayer()

void IMPORTED_SHAPE::SetSourceLayer ( const wxString & aSourceLayer)
inlineinherited

Definition at line 51 of file graphics_importer_buffer.h.

References m_sourceLayer.

◆ Transform()

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

Implements IMPORTED_SHAPE.

Definition at line 283 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 310 of file graphics_importer_buffer.h.

Referenced by IMPORTED_TEXT(), and ImportTo().

◆ m_height

double IMPORTED_TEXT::m_height
private

Definition at line 304 of file graphics_importer_buffer.h.

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

◆ m_hJustify

GR_TEXT_H_ALIGN_T IMPORTED_TEXT::m_hJustify
private

Definition at line 308 of file graphics_importer_buffer.h.

Referenced by IMPORTED_TEXT(), and ImportTo().

◆ m_orientation

double IMPORTED_TEXT::m_orientation
private

Definition at line 307 of file graphics_importer_buffer.h.

Referenced by IMPORTED_TEXT(), and ImportTo().

◆ m_origin

VECTOR2D IMPORTED_TEXT::m_origin
private

Definition at line 302 of file graphics_importer_buffer.h.

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

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

Definition at line 57 of file graphics_importer_buffer.h.

Referenced by GetParentShapeIndex(), and SetParentShapeIndex().

◆ m_sourceLayer

wxString IMPORTED_SHAPE::m_sourceLayer
protectedinherited

Definition at line 58 of file graphics_importer_buffer.h.

Referenced by GetSourceLayer(), and SetSourceLayer().

◆ m_text

const wxString IMPORTED_TEXT::m_text
private

Definition at line 303 of file graphics_importer_buffer.h.

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

◆ m_thickness

double IMPORTED_TEXT::m_thickness
private

Definition at line 306 of file graphics_importer_buffer.h.

Referenced by IMPORTED_TEXT(), and ImportTo().

◆ m_vJustify

GR_TEXT_V_ALIGN_T IMPORTED_TEXT::m_vJustify
private

Definition at line 309 of file graphics_importer_buffer.h.

Referenced by IMPORTED_TEXT(), and ImportTo().

◆ m_width

double IMPORTED_TEXT::m_width
private

Definition at line 305 of file graphics_importer_buffer.h.

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


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