KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SYMBOL_SVG_EXPORT_FIXTURE Class Reference

Public Member Functions

 SYMBOL_SVG_EXPORT_FIXTURE ()
 
 ~SYMBOL_SVG_EXPORT_FIXTURE ()=default
 
void AddPin (int x, int y, const wxString &name, const wxString &number)
 
void AddRectangle (int x1, int y1, int x2, int y2)
 
void AddCircle (int cx, int cy, int radius)
 
void AddPolyline (const std::vector< std::pair< int, int > > &points)
 
void AddArc (int cx, int cy, int radius, EDA_ANGLE startAngle, EDA_ANGLE endAngle)
 
void AddText (int x, int y, const wxString &text)
 
wxString PlotToSvgString (int aUnit=0, int aBodyStyle=0)
 

Public Attributes

std::unique_ptr< LIB_SYMBOLm_symbol
 

Detailed Description

Definition at line 45 of file test_symbol_svg_export.cpp.

Constructor & Destructor Documentation

◆ SYMBOL_SVG_EXPORT_FIXTURE()

SYMBOL_SVG_EXPORT_FIXTURE::SYMBOL_SVG_EXPORT_FIXTURE ( )
inline

Definition at line 48 of file test_symbol_svg_export.cpp.

References m_symbol.

◆ ~SYMBOL_SVG_EXPORT_FIXTURE()

SYMBOL_SVG_EXPORT_FIXTURE::~SYMBOL_SVG_EXPORT_FIXTURE ( )
default

Member Function Documentation

◆ AddArc()

void SYMBOL_SVG_EXPORT_FIXTURE::AddArc ( int cx,
int cy,
int radius,
EDA_ANGLE startAngle,
EDA_ANGLE endAngle )
inline

Definition at line 94 of file test_symbol_svg_export.cpp.

References ARC, LAYER_DEVICE, m_symbol, radius, schIUScale, and SOLID.

◆ AddCircle()

void SYMBOL_SVG_EXPORT_FIXTURE::AddCircle ( int cx,
int cy,
int radius )
inline

Definition at line 74 of file test_symbol_svg_export.cpp.

References CIRCLE, circle(), LAYER_DEVICE, m_symbol, radius, schIUScale, and SOLID.

◆ AddPin()

void SYMBOL_SVG_EXPORT_FIXTURE::AddPin ( int x,
int y,
const wxString & name,
const wxString & number )
inline

Definition at line 55 of file test_symbol_svg_export.cpp.

References m_symbol, name, pin, and schIUScale.

◆ AddPolyline()

void SYMBOL_SVG_EXPORT_FIXTURE::AddPolyline ( const std::vector< std::pair< int, int > > & points)
inline

Definition at line 83 of file test_symbol_svg_export.cpp.

References LAYER_DEVICE, m_symbol, POLY, schIUScale, and SOLID.

◆ AddRectangle()

void SYMBOL_SVG_EXPORT_FIXTURE::AddRectangle ( int x1,
int y1,
int x2,
int y2 )
inline

Definition at line 65 of file test_symbol_svg_export.cpp.

References LAYER_DEVICE, m_symbol, RECTANGLE, schIUScale, and SOLID.

◆ AddText()

void SYMBOL_SVG_EXPORT_FIXTURE::AddText ( int x,
int y,
const wxString & text )
inline

Definition at line 104 of file test_symbol_svg_export.cpp.

References LAYER_DEVICE, m_symbol, schIUScale, and text.

◆ PlotToSvgString()

wxString SYMBOL_SVG_EXPORT_FIXTURE::PlotToSvgString ( int aUnit = 0,
int aBodyStyle = 0 )
inline

Member Data Documentation

◆ m_symbol

std::unique_ptr<LIB_SYMBOL> SYMBOL_SVG_EXPORT_FIXTURE::m_symbol

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