KiCad PCB EDA Suite
|
#include <cadstar_archive_parser.h>
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
SHAPE_LINE_CHAIN | OutlineAsChain (const std::function< VECTOR2I(const VECTOR2I &)> aCadstarToKicadPointCallback, double aAccuracy) const |
SHAPE_POLY_SET | ConvertToPolySet (const std::function< VECTOR2I(const VECTOR2I &)> aCadstarToKicadPointCallback, double aAccuracy) const |
Static Public Member Functions | |
static bool | IsShape (XNODE *aNode) |
Public Attributes | |
SHAPE_TYPE | Type |
std::vector< VERTEX > | Vertices |
std::vector< CUTOUT > | Cutouts |
Not Applicable to OPENSHAPE Type. | |
wxString | HatchCodeID |
Only Applicable for HATCHED Type. | |
Definition at line 484 of file cadstar_archive_parser.h.
SHAPE_POLY_SET CADSTAR_ARCHIVE_PARSER::SHAPE::ConvertToPolySet | ( | const std::function< VECTOR2I(const VECTOR2I &)> | aCadstarToKicadPointCallback, |
double | aAccuracy | ||
) | const |
Definition at line 622 of file cadstar_archive_parser.cpp.
References SHAPE_POLY_SET::AddHole(), SHAPE_POLY_SET::AddOutline(), CADSTAR_ARCHIVE_PARSER::OPENSHAPE, and SHAPE_LINE_CHAIN::SetClosed().
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymdef().
|
static |
Definition at line 542 of file cadstar_archive_parser.cpp.
SHAPE_LINE_CHAIN CADSTAR_ARCHIVE_PARSER::SHAPE::OutlineAsChain | ( | const std::function< VECTOR2I(const VECTOR2I &)> | aCadstarToKicadPointCallback, |
double | aAccuracy | ||
) | const |
Definition at line 598 of file cadstar_archive_parser.cpp.
References SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::CPoint(), CADSTAR_ARCHIVE_PARSER::OPENSHAPE, and SHAPE_LINE_CHAIN::SetClosed().
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 558 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::HATCHED, CADSTAR_ARCHIVE_PARSER::OPENSHAPE, CADSTAR_ARCHIVE_PARSER::OUTLINE, CADSTAR_ARCHIVE_PARSER::ParseAllChildCutouts(), CADSTAR_ARCHIVE_PARSER::ParseAllChildVertices(), and CADSTAR_ARCHIVE_PARSER::SOLID.
std::vector<CUTOUT> CADSTAR_ARCHIVE_PARSER::SHAPE::Cutouts |
Not Applicable to OPENSHAPE Type.
Definition at line 488 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarShape(), CADSTAR_SCH_ARCHIVE_LOADER::getFigureExtentsKiCad(), CADSTAR_PCB_ARCHIVE_LOADER::getPolySetFromCadstarShape(), CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers(), and CADSTAR_SCH_ARCHIVE_LOADER::loadFigure().
wxString CADSTAR_ARCHIVE_PARSER::SHAPE::HatchCodeID |
Only Applicable for HATCHED Type.
Definition at line 489 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers().
SHAPE_TYPE CADSTAR_ARCHIVE_PARSER::SHAPE::Type |
Definition at line 486 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarShape(), CADSTAR_PCB_ARCHIVE_LOADER::getZoneFromCadstarShape(), CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymdef().
std::vector<VERTEX> CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices |
Definition at line 487 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarShape(), CADSTAR_SCH_ARCHIVE_LOADER::getFigureExtentsKiCad(), CADSTAR_PCB_ARCHIVE_LOADER::getPolySetFromCadstarShape(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers(), CADSTAR_SCH_ARCHIVE_LOADER::loadFigure(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymdef().