KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::CUTOUT Struct Reference

Represents a cutout in a closed shape (e.g. More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::CUTOUT:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Public Attributes

std::vector< VERTEXVertices
 

Detailed Description

Represents a cutout in a closed shape (e.g.

OUTLINE)

Definition at line 466 of file cadstar_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_ARCHIVE_PARSER::CUTOUT::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 534 of file cadstar_archive_parser.cpp.

535{
536 wxASSERT( aNode->GetName() == wxT( "CUTOUT" ) );
537
538 Vertices = ParseAllChildVertices( aNode, aContext, true );
539}
static std::vector< VERTEX > ParseAllChildVertices(XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false)
if no children are present, it just returns an empty vector (without throwing an exception)

References CADSTAR_ARCHIVE_PARSER::ParseAllChildVertices().

Referenced by CADSTAR_ARCHIVE_PARSER::ParseAllChildCutouts().

Member Data Documentation

◆ Vertices


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