KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_plot_params.cpp File Reference
#include <board_design_settings.h>
#include <charconv>
#include <layer_ids.h>
#include <lset.h>
#include <string_utils.h>
#include <pcb_plot_params.h>
#include <pcb_plot_params_parser.h>
#include <plotters/plotter.h>
#include <io/kicad/kicad_io_utils.h>
#include <settings/color_settings.h>

Go to the source code of this file.

Macros

#define PLOT_LINEWIDTH_DEFAULT   ( DEFAULT_TEXT_WIDTH * IU_PER_MM )
 
#define HPGL_PEN_DIAMETER_MIN   0
 
#define HPGL_PEN_DIAMETER_MAX   100.0
 
#define HPGL_PEN_SPEED_MIN   1
 
#define HPGL_PEN_SPEED_MAX   99
 
#define HPGL_PEN_NUMBER_MIN   1
 
#define HPGL_PEN_NUMBER_MAX   16
 
#define SVG_PRECISION_MIN   3U
 
#define SVG_PRECISION_MAX   6U
 
#define SVG_PRECISION_DEFAULT   4
 

Functions

static const char * getTokenName (T aTok)
 
static bool setInt (int *aTarget, int aValue, int aMin, int aMax)
 
static bool setDouble (double *aTarget, double aValue, double aMin, double aMax)
 

Variables

static const int gbrDefaultPrecision = 6
 

Macro Definition Documentation

◆ HPGL_PEN_DIAMETER_MAX

#define HPGL_PEN_DIAMETER_MAX   100.0

Definition at line 39 of file pcb_plot_params.cpp.

◆ HPGL_PEN_DIAMETER_MIN

#define HPGL_PEN_DIAMETER_MIN   0

Definition at line 38 of file pcb_plot_params.cpp.

◆ HPGL_PEN_NUMBER_MAX

#define HPGL_PEN_NUMBER_MAX   16

Definition at line 43 of file pcb_plot_params.cpp.

◆ HPGL_PEN_NUMBER_MIN

#define HPGL_PEN_NUMBER_MIN   1

Definition at line 42 of file pcb_plot_params.cpp.

◆ HPGL_PEN_SPEED_MAX

#define HPGL_PEN_SPEED_MAX   99

Definition at line 41 of file pcb_plot_params.cpp.

◆ HPGL_PEN_SPEED_MIN

#define HPGL_PEN_SPEED_MIN   1

Definition at line 40 of file pcb_plot_params.cpp.

◆ PLOT_LINEWIDTH_DEFAULT

#define PLOT_LINEWIDTH_DEFAULT   ( DEFAULT_TEXT_WIDTH * IU_PER_MM )

Definition at line 36 of file pcb_plot_params.cpp.

◆ SVG_PRECISION_DEFAULT

#define SVG_PRECISION_DEFAULT   4

Definition at line 47 of file pcb_plot_params.cpp.

◆ SVG_PRECISION_MAX

#define SVG_PRECISION_MAX   6U

Definition at line 46 of file pcb_plot_params.cpp.

◆ SVG_PRECISION_MIN

#define SVG_PRECISION_MIN   3U

Definition at line 45 of file pcb_plot_params.cpp.

Function Documentation

◆ getTokenName()

static const char * getTokenName ( aTok)
static

Definition at line 58 of file pcb_plot_params.cpp.

◆ setDouble()

static bool setDouble ( double *  aTarget,
double  aValue,
double  aMin,
double  aMax 
)
static

Definition at line 78 of file pcb_plot_params.cpp.

◆ setInt()

static bool setInt ( int *  aTarget,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 64 of file pcb_plot_params.cpp.

Variable Documentation

◆ gbrDefaultPrecision