KiCad PCB EDA Suite
Loading...
Searching...
No Matches
APERTURE Class Reference

#include <gbr_plotter_apertures.h>

Public Types

enum  APERTURE_TYPE {
  AT_CIRCLE = 1 , AT_RECT = 2 , AT_PLOTTING = 3 , AT_OVAL = 4 ,
  AT_REGULAR_POLY = 5 , AT_REGULAR_POLY3 , AT_REGULAR_POLY4 , AT_REGULAR_POLY5 ,
  AT_REGULAR_POLY6 , AT_REGULAR_POLY7 , AT_REGULAR_POLY8 , AT_REGULAR_POLY9 ,
  AT_REGULAR_POLY10 , AT_REGULAR_POLY11 , AT_REGULAR_POLY12 , AM_ROUND_RECT ,
  AM_ROT_RECT , APER_MACRO_OUTLINE4P , APER_MACRO_OUTLINE5P , APER_MACRO_OUTLINE6P ,
  APER_MACRO_OUTLINE7P , APER_MACRO_OUTLINE8P , AM_ROTATED_OVAL , AM_FREE_POLYGON
}
 

Public Member Functions

void SetSize (const VECTOR2I &aSize)
 
const VECTOR2I GetSize ()
 
void SetDiameter (int aDiameter)
 
int GetDiameter ()
 
void SetRegPolyVerticeCount (int aCount)
 
int GetRegPolyVerticeCount ()
 
void SetRotation (const EDA_ANGLE &aRotation)
 
EDA_ANGLE GetRotation ()
 

Public Attributes

APERTURE_TYPE m_Type
 
VECTOR2I m_Size
 
std::vector< VECTOR2Im_Corners
 
int m_Radius
 
EDA_ANGLE m_Rotation
 
int m_DCode
 
int m_ApertureAttribute
 

Detailed Description

Definition at line 44 of file gbr_plotter_apertures.h.

Member Enumeration Documentation

◆ APERTURE_TYPE

Enumerator
AT_CIRCLE 
AT_RECT 
AT_PLOTTING 
AT_OVAL 
AT_REGULAR_POLY 
AT_REGULAR_POLY3 
AT_REGULAR_POLY4 
AT_REGULAR_POLY5 
AT_REGULAR_POLY6 
AT_REGULAR_POLY7 
AT_REGULAR_POLY8 
AT_REGULAR_POLY9 
AT_REGULAR_POLY10 
AT_REGULAR_POLY11 
AT_REGULAR_POLY12 
AM_ROUND_RECT 
AM_ROT_RECT 
APER_MACRO_OUTLINE4P 
APER_MACRO_OUTLINE5P 
APER_MACRO_OUTLINE6P 
APER_MACRO_OUTLINE7P 
APER_MACRO_OUTLINE8P 
AM_ROTATED_OVAL 
AM_FREE_POLYGON 

Definition at line 47 of file gbr_plotter_apertures.h.

Member Function Documentation

◆ GetDiameter()

int APERTURE::GetDiameter ( )
inline

Definition at line 91 of file gbr_plotter_apertures.h.

References AT_CIRCLE, AT_PLOTTING, m_Radius, m_Size, m_Type, and VECTOR2< T >::x.

◆ GetRegPolyVerticeCount()

int APERTURE::GetRegPolyVerticeCount ( )
inline

Definition at line 112 of file gbr_plotter_apertures.h.

References AT_REGULAR_POLY3, and m_Type.

◆ GetRotation()

EDA_ANGLE APERTURE::GetRotation ( )
inline

Definition at line 118 of file gbr_plotter_apertures.h.

References m_Rotation.

◆ GetSize()

const VECTOR2I APERTURE::GetSize ( )
inline

Definition at line 81 of file gbr_plotter_apertures.h.

References m_Size.

◆ SetDiameter()

void APERTURE::SetDiameter ( int  aDiameter)
inline

Definition at line 86 of file gbr_plotter_apertures.h.

References m_Radius.

◆ SetRegPolyVerticeCount()

void APERTURE::SetRegPolyVerticeCount ( int  aCount)
inline

Definition at line 102 of file gbr_plotter_apertures.h.

References AT_REGULAR_POLY3, and m_Type.

◆ SetRotation()

void APERTURE::SetRotation ( const EDA_ANGLE aRotation)
inline

Definition at line 117 of file gbr_plotter_apertures.h.

References m_Rotation.

◆ SetSize()

void APERTURE::SetSize ( const VECTOR2I aSize)
inline

Definition at line 76 of file gbr_plotter_apertures.h.

References m_Size.

Member Data Documentation

◆ m_ApertureAttribute

int APERTURE::m_ApertureAttribute

Definition at line 141 of file gbr_plotter_apertures.h.

Referenced by GERBER_PLOTTER::GetOrCreateAperture().

◆ m_Corners

std::vector<VECTOR2I> APERTURE::m_Corners

Definition at line 127 of file gbr_plotter_apertures.h.

Referenced by GERBER_PLOTTER::GetOrCreateAperture().

◆ m_DCode

int APERTURE::m_DCode

Definition at line 136 of file gbr_plotter_apertures.h.

Referenced by GERBER_PLOTTER::GetOrCreateAperture().

◆ m_Radius

int APERTURE::m_Radius

◆ m_Rotation

EDA_ANGLE APERTURE::m_Rotation

◆ m_Size

VECTOR2I APERTURE::m_Size

◆ m_Type


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