KiCad PCB EDA Suite
EDA_SHAPE_DESC Struct Reference

Public Member Functions

 EDA_SHAPE_DESC ()
 

Detailed Description

Definition at line 1619 of file eda_shape.cpp.

Constructor & Destructor Documentation

◆ EDA_SHAPE_DESC()

EDA_SHAPE_DESC::EDA_SHAPE_DESC ( )
inline

Definition at line 1621 of file eda_shape.cpp.

1622 {
1624 .Map( SHAPE_T::SEGMENT, _HKI( "Segment" ) )
1625 .Map( SHAPE_T::RECT, _HKI( "Rectangle" ) )
1626 .Map( SHAPE_T::ARC, _HKI( "Arc" ) )
1627 .Map( SHAPE_T::CIRCLE, _HKI( "Circle" ) )
1628 .Map( SHAPE_T::POLY, _HKI( "Polygon" ) )
1629 .Map( SHAPE_T::BEZIER, _HKI( "Bezier" ) );
1631 .Map( PLOT_DASH_TYPE::DEFAULT, _HKI( "Default" ) )
1632 .Map( PLOT_DASH_TYPE::SOLID, _HKI( "Solid" ) )
1633 .Map( PLOT_DASH_TYPE::DASH, _HKI( "Dashed" ) )
1634 .Map( PLOT_DASH_TYPE::DOT, _HKI( "Dotted" ) )
1635 .Map( PLOT_DASH_TYPE::DASHDOT, _HKI( "Dash-Dot" ) )
1636 .Map( PLOT_DASH_TYPE::DASHDOTDOT, _HKI( "Dash-Dot-Dot" ) );
1637
1640 propMgr.AddProperty( new PROPERTY_ENUM<EDA_SHAPE, SHAPE_T>( _HKI( "Shape" ),
1642 propMgr.AddProperty( new PROPERTY<EDA_SHAPE, int>( _HKI( "Start X" ),
1644 propMgr.AddProperty( new PROPERTY<EDA_SHAPE, int>( _HKI( "Start Y" ),
1646 propMgr.AddProperty( new PROPERTY<EDA_SHAPE, int>( _HKI( "End X" ),
1648 propMgr.AddProperty( new PROPERTY<EDA_SHAPE, int>( _HKI( "End Y" ),
1650 // TODO: m_arcCenter, m_bezierC1, m_bezierC2, m_poly
1651 propMgr.AddProperty( new PROPERTY<EDA_SHAPE, int>( _HKI( "Line Width" ),
1653 }
void SetStartX(int x)
Definition: eda_shape.h:131
int GetStartY() const
Definition: eda_shape.h:116
void SetEndY(int y)
Definition: eda_shape.h:150
int GetEndX() const
Definition: eda_shape.h:142
void SetStartY(int y)
Definition: eda_shape.h:125
SHAPE_T GetShape() const
Definition: eda_shape.h:110
int GetEndY() const
Definition: eda_shape.h:141
void SetEndX(int x)
Definition: eda_shape.h:156
void SetShape(SHAPE_T aShape)
Definition: eda_shape.h:109
int GetWidth() const
Definition: eda_shape.h:106
int GetStartX() const
Definition: eda_shape.h:117
void SetWidth(int aWidth)
Definition: eda_shape.h:105
static ENUM_MAP< T > & Instance()
Definition: property.h:510
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:63
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
#define _HKI(x)
#define REGISTER_TYPE(x)
Definition: property_mgr.h:248

References _HKI, PROPERTY_MANAGER::AddProperty(), ARC, BEZIER, CIRCLE, DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, EDA_SHAPE::GetEndX(), EDA_SHAPE::GetEndY(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStartX(), EDA_SHAPE::GetStartY(), EDA_SHAPE::GetWidth(), ENUM_MAP< T >::Instance(), PROPERTY_MANAGER::Instance(), POLY, RECT, REGISTER_TYPE, SEGMENT, EDA_SHAPE::SetEndX(), EDA_SHAPE::SetEndY(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStartX(), EDA_SHAPE::SetStartY(), EDA_SHAPE::SetWidth(), and SOLID.


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