KiCad PCB EDA Suite
Loading...
Searching...
No Matches
target3001_pcb_builder.cpp File Reference
#include "target3001_pcb_builder.h"
#include <algorithm>
#include <cmath>
#include <base_units.h>
#include <board.h>
#include <board_design_settings.h>
#include <convert_basic_shapes_to_polygon.h>
#include <eda_units.h>
#include <footprint.h>
#include <geometry/shape_ellipse.h>
#include <ki_exception.h>
#include <macros.h>
#include <netinfo.h>
#include <pad.h>
#include <pcb_shape.h>
#include <pcb_text.h>
#include <pcb_track.h>
#include <reporter.h>
#include <zone.h>
#include <wx/tokenzr.h>

Go to the source code of this file.

Classes

struct  ELEMENT_BASE
 Fields shared by every drawable element. More...
 
struct  SPLINE
 Quadratic Bezier from the base position to the end point. More...
 
struct  RECTANGLE
 Filled rectangle anchored at a corner (the base position); sizes are signed. More...
 
struct  FIDUCIAL
 
struct  PACKAGE
 Footprint placement. Pads and graphics of the footprint are stored in board coordinates. More...
 

Enumerations

enum class  ELEMENT_TYPE
 Element class tags as stored in the file. More...
 
enum class  TEXT_FUNCTION
 
enum class  LAYER_FUNCTION
 Board layer function codes stored per layer in the project header. More...
 

Functions

static wxString ruleNetLiteral (const wxString &aNetName)
 An expression string literal, whose only escape is \', inside a quoted rules file string.
 
wxString ToWx (const std::string &aRaw)
 Convert a stored ANSI string to a wxString.
 

Variables

constexpr int BOARD_LAYER_COUNT
 Board layers 0..99 carry a per-project function; 100 and above have fixed meanings.
 
constexpr uint8_t NO_ASSOCIATION
 Layer association value for a layer that belongs to no copper layer.
 
constexpr int ALL_COPPER_LAYER
 Board elements on this layer exist on every copper layer.
 

Enumeration Type Documentation

◆ ELEMENT_TYPE

enum class TARGET3001::ELEMENT_TYPE : uint8_t
strong

Element class tags as stored in the file.

Definition at line 52 of file target3001_parser.h.

◆ LAYER_FUNCTION

enum class TARGET3001::LAYER_FUNCTION : uint8_t
strong

Board layer function codes stored per layer in the project header.

Definition at line 417 of file target3001_parser.h.

◆ TEXT_FUNCTION

enum class TARGET3001::TEXT_FUNCTION : uint8_t
strong

Definition at line 245 of file target3001_parser.h.

Function Documentation

◆ ruleNetLiteral()

static wxString ruleNetLiteral ( const wxString & aNetName)
static

An expression string literal, whose only escape is \', inside a quoted rules file string.

Definition at line 168 of file target3001_pcb_builder.cpp.

References text.

Referenced by TARGET3001_PCB_BUILDER::buildAreaClearanceRules().

◆ ToWx()

wxString TARGET3001::ToWx ( const std::string & aRaw)

Convert a stored ANSI string to a wxString.

Definition at line 1125 of file target3001_parser.cpp.

Variable Documentation

◆ ALL_COPPER_LAYER

int TARGET3001::ALL_COPPER_LAYER
constexpr

Board elements on this layer exist on every copper layer.

Definition at line 82 of file target3001_parser.h.

Referenced by TARGET3001_PCB_BUILDER::addItem().

◆ BOARD_LAYER_COUNT

int TARGET3001::BOARD_LAYER_COUNT
constexpr

Board layers 0..99 carry a per-project function; 100 and above have fixed meanings.

Definition at line 385 of file target3001_parser.h.

Referenced by TARGET3001_PCB_BUILDER::buildLayerMap(), TARGET3001_PCB_BUILDER::LayerFunction(), and TARGET3001_PCB_BUILDER::pourCopperLayer().

◆ NO_ASSOCIATION

uint8_t TARGET3001::NO_ASSOCIATION
constexpr

Layer association value for a layer that belongs to no copper layer.

Definition at line 452 of file target3001_parser.h.

Referenced by TARGET3001_PCB_BUILDER::pourCopperLayer().