KiCad PCB EDA Suite
GBR_METADATA Class Reference

#include <plot_auxiliary_data.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 98 of file plot_auxiliary_data.h.

Constructor & Destructor Documentation

GBR_METADATA::GBR_METADATA ( )
inline

Definition at line 101 of file plot_auxiliary_data.h.

101 : m_isCopper( false) {}
bool m_isCopper
if the metadata is relative to a copper layer or not.

Member Function Documentation

GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB GBR_METADATA::GetApertureAttrib ( )
inline

Definition at line 108 of file plot_auxiliary_data.h.

References GBR_APERTURE_METADATA::m_ApertAttribute, and m_ApertureMetadata.

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

109  {
111  }
GBR_APERTURE_METADATA m_ApertureMetadata
a item to handle aperture attribute:
GBR_APERTURE_ATTRIB m_ApertAttribute
int GBR_METADATA::GetNetAttribType ( ) const
inline

Definition at line 118 of file plot_auxiliary_data.h.

References GBR_NETLIST_METADATA::m_NetAttribType, and m_NetlistMetadata.

119  {
121  }
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
int m_NetAttribType
the type of net info (used to define the gerber string to create)
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 131 of file plot_auxiliary_data.h.

References m_isCopper.

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

131 { return m_isCopper; }
bool m_isCopper
if the metadata is relative to a copper layer or not.
void GBR_METADATA::SetCmpReference ( const wxString &  aComponentRef)
inline

Definition at line 125 of file plot_auxiliary_data.h.

References GBR_NETLIST_METADATA::m_Cmpref, and m_NetlistMetadata.

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

125 { 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:
void GBR_METADATA::SetCopper ( bool  aValue)
inline

Definition at line 132 of file plot_auxiliary_data.h.

References m_isCopper.

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

132 { m_isCopper = aValue; }
bool m_isCopper
if the metadata is relative to a copper layer or not.
void GBR_METADATA::SetNetAttribType ( int  aNetAttribType)
inline

Definition at line 113 of file plot_auxiliary_data.h.

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().

114  {
115  m_NetlistMetadata.m_NetAttribType = aNetAttribType;
116  }
GBR_NETLIST_METADATA m_NetlistMetadata
a item to handle object attribute:
int m_NetAttribType
the type of net info (used to define the gerber string to create)
void GBR_METADATA::SetNetName ( const wxString &  aNetname)
inline

Definition at line 123 of file plot_auxiliary_data.h.

References m_NetlistMetadata, and GBR_NETLIST_METADATA::m_Netname.

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

123 { 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:
void GBR_METADATA::SetPadName ( const wxString &  aPadname)
inline

Definition at line 124 of file plot_auxiliary_data.h.

References m_NetlistMetadata, and GBR_NETLIST_METADATA::m_Padname.

Referenced by BRDITEMS_PLOTTER::PlotPad().

124 { 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:

Member Data Documentation

GBR_APERTURE_METADATA GBR_METADATA::m_ApertureMetadata

a item to handle aperture attribute:

Definition at line 137 of file plot_auxiliary_data.h.

Referenced by GetApertureAttrib(), and SetApertureAttrib().

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 151 of file plot_auxiliary_data.h.

Referenced by IsCopper(), and SetCopper().


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