KiCad PCB EDA Suite
GBR_METADATA Class Reference

#include <gbr_metadata.h>

Public Member Functions

 GBR_METADATA ()
 
void SetApertureAttrib (GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB aApertAttribute)
 
GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB GetApertureAttrib ()
 
void SetNetAttribType (int aNetAttribType)
 
int GetNetAttribType () const
 
void SetNetName (const wxString &aNetname)
 
void SetPadName (const wxString &aPadname)
 
void SetCmpReference (const wxString &aComponentRef)
 
bool IsCopper ()
 Allowed attributes are not the same on board copper layers and on other layers Therefore a flag can be set or reset when attributes can be depending on layers. More...
 
void SetCopper (bool aValue)
 

Public Attributes

GBR_APERTURE_METADATA m_ApertureMetadata
 a item to handle aperture attribute: More...
 
GBR_NETLIST_METADATA m_NetlistMetadata
 a item to handle object attribute: More...
 

Private Attributes

bool m_isCopper
 if the metadata is relative to a copper layer or not. More...
 

Detailed Description

Definition at line 137 of file gbr_metadata.h.

Constructor & Destructor Documentation

◆ GBR_METADATA()

GBR_METADATA::GBR_METADATA ( )
inline

Definition at line 140 of file gbr_metadata.h.

140 : m_isCopper( false) {}
bool m_isCopper
if the metadata is relative to a copper layer or not.
Definition: gbr_metadata.h:190

Member Function Documentation

◆ GetApertureAttrib()

GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB GBR_METADATA::GetApertureAttrib ( )
inline

Definition at line 147 of file gbr_metadata.h.

148  {
150  }
GBR_APERTURE_METADATA m_ApertureMetadata
a item to handle aperture attribute:
Definition: gbr_metadata.h:176
GBR_APERTURE_ATTRIB m_ApertAttribute
Definition: gbr_metadata.h:132

References GBR_APERTURE_METADATA::m_ApertAttribute, and m_ApertureMetadata.

Referenced by GERBER_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), and GERBER_PLOTTER::SetCurrentLineWidth().

◆ GetNetAttribType()

int GBR_METADATA::GetNetAttribType ( ) const
inline

Definition at line 157 of file gbr_metadata.h.

158  {
160  }
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
Definition: gbr_metadata.h:181
int m_NetAttribType
the type of net info (used to define the gerber string to create)

References GBR_NETLIST_METADATA::m_NetAttribType, and m_NetlistMetadata.

◆ IsCopper()

bool GBR_METADATA::IsCopper ( )
inline

Allowed attributes are not the same on board copper layers and on other layers Therefore a flag can be set or reset when attributes can be depending on layers.

Definition at line 170 of file gbr_metadata.h.

170 { return m_isCopper; }
bool m_isCopper
if the metadata is relative to a copper layer or not.
Definition: gbr_metadata.h:190

References m_isCopper.

Referenced by GERBER_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRoundRect(), and GERBER_PLOTTER::FlashPadTrapez().

◆ SetApertureAttrib()

◆ SetCmpReference()

void GBR_METADATA::SetCmpReference ( const wxString &  aComponentRef)
inline

Definition at line 164 of file gbr_metadata.h.

164 { m_NetlistMetadata.m_Cmpref = aComponentRef; }
wxString m_Cmpref
the component reference parent of the data
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
Definition: gbr_metadata.h:181

References GBR_NETLIST_METADATA::m_Cmpref, and m_NetlistMetadata.

Referenced by GERBER_WRITER::createDrillFile(), BRDITEMS_PLOTTER::PlotPad(), and BRDITEMS_PLOTTER::PlotTextModule().

◆ SetCopper()

void GBR_METADATA::SetCopper ( bool  aValue)
inline

Definition at line 171 of file gbr_metadata.h.

171 { m_isCopper = aValue; }
bool m_isCopper
if the metadata is relative to a copper layer or not.
Definition: gbr_metadata.h:190

References m_isCopper.

Referenced by BRDITEMS_PLOTTER::PlotFilledAreas(), and BRDITEMS_PLOTTER::PlotPad().

◆ SetNetAttribType()

void GBR_METADATA::SetNetAttribType ( int  aNetAttribType)
inline

Definition at line 152 of file gbr_metadata.h.

153  {
154  m_NetlistMetadata.m_NetAttribType = aNetAttribType;
155  }
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
Definition: gbr_metadata.h:181
int m_NetAttribType
the type of net info (used to define the gerber string to create)

References GBR_NETLIST_METADATA::m_NetAttribType, and m_NetlistMetadata.

Referenced by GERBER_WRITER::createDrillFile(), BRDITEMS_PLOTTER::Plot_1_EdgeModule(), BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotPad(), PlotStandardLayer(), and BRDITEMS_PLOTTER::PlotTextModule().

◆ SetNetName()

void GBR_METADATA::SetNetName ( const wxString &  aNetname)
inline

Definition at line 162 of file gbr_metadata.h.

162 { m_NetlistMetadata.m_Netname = aNetname; }
wxString m_Netname
for items associated to a net: the netname
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
Definition: gbr_metadata.h:181

References m_NetlistMetadata, and GBR_NETLIST_METADATA::m_Netname.

Referenced by BRDITEMS_PLOTTER::PlotFilledAreas(), BRDITEMS_PLOTTER::PlotPad(), and PlotStandardLayer().

◆ SetPadName()

void GBR_METADATA::SetPadName ( const wxString &  aPadname)
inline

Definition at line 163 of file gbr_metadata.h.

163 { m_NetlistMetadata.m_Padname = aPadname; }
wxString m_Padname
for a flashed pad: the pad name ((TO.P attribute)
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
Definition: gbr_metadata.h:181

References m_NetlistMetadata, and GBR_NETLIST_METADATA::m_Padname.

Referenced by BRDITEMS_PLOTTER::PlotPad().

Member Data Documentation

◆ m_ApertureMetadata

GBR_APERTURE_METADATA GBR_METADATA::m_ApertureMetadata

a item to handle aperture attribute:

Definition at line 176 of file gbr_metadata.h.

Referenced by GetApertureAttrib(), and SetApertureAttrib().

◆ m_isCopper

bool GBR_METADATA::m_isCopper
private

if the metadata is relative to a copper layer or not.

This is a flag which can be set/reset when an attribute for a given item depends on the fact a copper layer or a non copper layer is plotted. The initial state in false.

Definition at line 190 of file gbr_metadata.h.

Referenced by IsCopper(), and SetCopper().

◆ m_NetlistMetadata


The documentation for this class was generated from the following file: