KiCad PCB EDA Suite
|
Represents a vertex in a shape. More...
#include <cadstar_archive_parser.h>
Public Member Functions | |
VERTEX (VERTEX_TYPE aType=VERTEX_TYPE::POINT, POINT aEnd=POINT(), POINT aCenter=POINT()) | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
void | AppendToChain (SHAPE_LINE_CHAIN *aChainToAppendTo, const std::function< VECTOR2I(const VECTOR2I &)> aCadstarToKicadPointCallback, double aAccuracy) const |
SHAPE_ARC | BuildArc (const VECTOR2I &aPrevPoint, const std::function< VECTOR2I(const VECTOR2I &)> aCadstarToKicadPointCallback) const |
Static Public Member Functions | |
static bool | IsVertex (XNODE *aNode) |
Public Attributes | |
VERTEX_TYPE | Type |
POINT | End |
POINT | Center |
Represents a vertex in a shape.
E.g. A circle is made by two semicircles with the same center point.
Definition at line 442 of file cadstar_archive_parser.h.
|
inline |
Definition at line 444 of file cadstar_archive_parser.h.
void CADSTAR_ARCHIVE_PARSER::VERTEX::AppendToChain | ( | SHAPE_LINE_CHAIN * | aChainToAppendTo, |
const std::function< VECTOR2I(const VECTOR2I &)> | aCadstarToKicadPointCallback, | ||
double | aAccuracy | ||
) | const |
Definition at line 485 of file cadstar_archive_parser.cpp.
References SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::GetPoint(), CADSTAR_ARCHIVE_PARSER::POINT, and SHAPE_LINE_CHAIN::PointCount().
SHAPE_ARC CADSTAR_ARCHIVE_PARSER::VERTEX::BuildArc | ( | const VECTOR2I & | aPrevPoint, |
const std::function< VECTOR2I(const VECTOR2I &)> | aCadstarToKicadPointCallback | ||
) | const |
Definition at line 503 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, SHAPE_ARC::ConstructFromStartEndCenter(), CADSTAR_ARCHIVE_PARSER::POINT, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices().
|
static |
Definition at line 423 of file cadstar_archive_parser.cpp.
Referenced by CADSTAR_ARCHIVE_PARSER::ParseAllChildVertices().
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 439 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::ParseAllChildPoints(), CADSTAR_ARCHIVE_PARSER::POINT, and CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
Referenced by CADSTAR_ARCHIVE_PARSER::ParseAllChildVertices().
POINT CADSTAR_ARCHIVE_PARSER::VERTEX::Center |
Definition at line 450 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getShapeFromVertex(), and CADSTAR_SCH_ARCHIVE_LOADER::loadLibrarySymbolShapeVertices().
POINT CADSTAR_ARCHIVE_PARSER::VERTEX::End |
Definition at line 449 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getFigureExtentsKiCad(), CADSTAR_PCB_ARCHIVE_LOADER::getShapeFromVertex(), CADSTAR_PCB_ARCHIVE_LOADER::getShapesFromVertices(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadLibrarySymbolShapeVertices(), and CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices().
VERTEX_TYPE CADSTAR_ARCHIVE_PARSER::VERTEX::Type |
Definition at line 448 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getShapeFromVertex(), CADSTAR_SCH_ARCHIVE_LOADER::loadLibrarySymbolShapeVertices(), and CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices().