KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CADSTAR_ARCHIVE_PARSER::VERTEX Struct Reference

Represents a vertex in a shape. More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::VERTEX:
CADSTAR_ARCHIVE_PARSER::PARSER

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VERTEX()

CADSTAR_ARCHIVE_PARSER::VERTEX::VERTEX ( VERTEX_TYPE  aType = VERTEX_TYPE::POINT,
POINT  aEnd = POINT(),
POINT  aCenter = POINT() 
)
inline

Definition at line 444 of file cadstar_archive_parser.h.

Member Function Documentation

◆ AppendToChain()

void CADSTAR_ARCHIVE_PARSER::VERTEX::AppendToChain ( SHAPE_LINE_CHAIN aChainToAppendTo,
const std::function< VECTOR2I(const VECTOR2I &)>  aCadstarToKicadPointCallback,
double  aAccuracy 
) const

◆ BuildArc()

◆ IsVertex()

bool CADSTAR_ARCHIVE_PARSER::VERTEX::IsVertex ( XNODE aNode)
static

◆ Parse()

Member Data Documentation

◆ Center

◆ End

◆ Type


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