KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EPOLYGON Struct Reference

Eagle polygon, without vertices which are parsed as needed. More...

#include <eagle_parser.h>

Inheritance diagram for EPOLYGON:
EAGLE_BASE

Public Types

enum  { ESOLID , EHATCH , ECUTOUT }
 

Public Member Functions

bool IsValidOutline () const
 Fewer than three vertices cannot bound an area; such polygons (which pre-v6 binary files can carry) would throw on later geometry queries.
 
 EPOLYGON (wxXmlNode *aPolygon, IO_BASE *aIo=nullptr)
 
void Report (const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
 Send a message to the IO_BASE REPORTER object if one exists.
 
void AdvanceProgressPhase ()
 

Public Attributes

ECOORD width
 
int layer
 
std::optional< ECOORDspacing
 
int pour
 
std::optional< ECOORDisolate
 
std::optional< bool > orphans
 
std::optional< bool > thermals
 
std::optional< int > rank
 
std::vector< std::unique_ptr< EVERTEX > > vertices
 
IO_BASEio
 

Static Public Attributes

static const int max_priority = 6
 

Detailed Description

Eagle polygon, without vertices which are parsed as needed.

Definition at line 961 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ESOLID 
EHATCH 
ECUTOUT 

Definition at line 994 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EPOLYGON()

EPOLYGON::EPOLYGON ( wxXmlNode * aPolygon,
IO_BASE * aIo = nullptr )

Member Function Documentation

◆ AdvanceProgressPhase()

◆ IsValidOutline()

bool EPOLYGON::IsValidOutline ( ) const
inline

Fewer than three vertices cannot bound an area; such polygons (which pre-v6 binary files can carry) would throw on later geometry queries.

Definition at line 1012 of file eagle_parser.h.

References vertices.

◆ Report()

void EAGLE_BASE::Report ( const wxString & aMsg,
SEVERITY aSeverity = RPT_SEVERITY_UNDEFINED )
inherited

Send a message to the IO_BASE REPORTER object if one exists.

Parameters
aMsgis the message to send to the REPORTER object.

Definition at line 567 of file eagle_parser.cpp.

References io.

Member Data Documentation

◆ io

IO_BASE* EAGLE_BASE::io
inherited

Definition at line 225 of file eagle_parser.h.

Referenced by AdvanceProgressPhase(), EAGLE_BASE(), and Report().

◆ isolate

std::optional<ECOORD> EPOLYGON::isolate

Definition at line 1001 of file eagle_parser.h.

Referenced by EPOLYGON(), and PCB_IO_EAGLE::loadPolygon().

◆ layer

int EPOLYGON::layer

◆ max_priority

const int EPOLYGON::max_priority = 6
static

Definition at line 992 of file eagle_parser.h.

Referenced by PCB_IO_EAGLE::loadPolygon().

◆ orphans

std::optional<bool> EPOLYGON::orphans

Definition at line 1002 of file eagle_parser.h.

Referenced by EPOLYGON(), and PCB_IO_EAGLE::loadPolygon().

◆ pour

int EPOLYGON::pour

◆ rank

std::optional<int> EPOLYGON::rank

Definition at line 1004 of file eagle_parser.h.

Referenced by EPOLYGON(), and PCB_IO_EAGLE::loadPolygon().

◆ spacing

std::optional<ECOORD> EPOLYGON::spacing

Definition at line 985 of file eagle_parser.h.

Referenced by EPOLYGON(), and PCB_IO_EAGLE::loadPolygon().

◆ thermals

std::optional<bool> EPOLYGON::thermals

Definition at line 1003 of file eagle_parser.h.

Referenced by EPOLYGON(), and PCB_IO_EAGLE::loadPolygon().

◆ vertices

std::vector<std::unique_ptr<EVERTEX> > EPOLYGON::vertices

Definition at line 1006 of file eagle_parser.h.

Referenced by EPOLYGON(), and IsValidOutline().

◆ width

ECOORD EPOLYGON::width

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