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 430 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 478 of file cadstar_archive_parser.cpp.

479 {
480  wxASSERT( aNode->GetName() == wxT( "CUTOUT" ) );
481 
482  Vertices = ParseAllChildVertices( aNode, aContext, true );
483 }
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: