KiCad PCB EDA Suite
GERBER_LAYER Class Reference

#include <gerber_file_image.h>

Public Member Functions

 GERBER_LAYER ()
 
 ~GERBER_LAYER ()
 

Public Attributes

wxString m_LayerName
 
bool m_LayerNegative
 
wxRealPoint m_StepForRepeat
 
int m_XRepeatCount
 
int m_YRepeatCount
 
bool m_StepForRepeatMetric
 

Private Member Functions

void ResetDefaultValues ()
 

Friends

class GERBER_FILE_IMAGE
 

Detailed Description

Definition at line 78 of file gerber_file_image.h.

Constructor & Destructor Documentation

◆ GERBER_LAYER()

GERBER_LAYER::GERBER_LAYER ( )

Definition at line 67 of file gerber_file_image.cpp.

68 {
70 }

References ResetDefaultValues().

◆ ~GERBER_LAYER()

GERBER_LAYER::~GERBER_LAYER ( )

Definition at line 73 of file gerber_file_image.cpp.

74 {
75 }

Member Function Documentation

◆ ResetDefaultValues()

void GERBER_LAYER::ResetDefaultValues ( )
private

Definition at line 78 of file gerber_file_image.cpp.

79 {
80  m_LayerName = wxT( "no name" ); // Layer name from the LN command
81  m_LayerNegative = false; // true = Negative Layer
82  m_StepForRepeat.x = m_StepForRepeat.y = 0; // X and Y offsets for Step and Repeat command
83  m_XRepeatCount = 1; // The repeat count on X axis
84  m_YRepeatCount = 1; // The repeat count on Y axis
85  m_StepForRepeatMetric = false; // false = Inches, true = metric
86 }
wxString m_LayerName
wxRealPoint m_StepForRepeat
bool m_StepForRepeatMetric

References m_LayerName, m_LayerNegative, m_StepForRepeat, m_StepForRepeatMetric, m_XRepeatCount, and m_YRepeatCount.

Referenced by GERBER_LAYER(), and GERBER_FILE_IMAGE::ResetDefaultValues().

Friends And Related Function Documentation

◆ GERBER_FILE_IMAGE

friend class GERBER_FILE_IMAGE
friend

Definition at line 80 of file gerber_file_image.h.

Member Data Documentation

◆ m_LayerName

wxString GERBER_LAYER::m_LayerName

Definition at line 84 of file gerber_file_image.h.

Referenced by ResetDefaultValues(), and GERBVIEW_FRAME::UpdateTitleAndInfo().

◆ m_LayerNegative

bool GERBER_LAYER::m_LayerNegative

◆ m_StepForRepeat

wxRealPoint GERBER_LAYER::m_StepForRepeat

◆ m_StepForRepeatMetric

bool GERBER_LAYER::m_StepForRepeatMetric

◆ m_XRepeatCount

int GERBER_LAYER::m_XRepeatCount

◆ m_YRepeatCount

int GERBER_LAYER::m_YRepeatCount

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