KiCad PCB EDA Suite
pcb_plot_params.cpp File Reference

Go to the source code of this file.

Macros

#define PLOT_LINEWIDTH_MIN   (0.02*IU_PER_MM)
 
#define PLOT_LINEWIDTH_MAX   (2*IU_PER_MM)
 
#define PLOT_LINEWIDTH_DEFAULT   (0.15*IU_PER_MM)
 
#define HPGL_PEN_DIAMETER_MIN   0
 
#define HPGL_PEN_DIAMETER_MAX   100
 
#define HPGL_PEN_SPEED_MIN   1
 
#define HPGL_PEN_SPEED_MAX   99
 
#define HPGL_PEN_NUMBER_MIN   1
 
#define HPGL_PEN_NUMBER_MAX   16
 

Functions

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

Variables

int g_DrawDefaultLineThickness = PLOT_LINEWIDTH_DEFAULT
 Default line thickness in internal units used to draw or plot items using a default thickness line value (Frame references) More...
 
static const int gbrDefaultPrecision = 6
 

Macro Definition Documentation

#define HPGL_PEN_DIAMETER_MAX   100
#define HPGL_PEN_DIAMETER_MIN   0
#define HPGL_PEN_NUMBER_MAX   16

Definition at line 41 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS_PARSER::Parse().

#define HPGL_PEN_NUMBER_MIN   1

Definition at line 40 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS_PARSER::Parse().

#define HPGL_PEN_SPEED_MAX   99
#define HPGL_PEN_SPEED_MIN   1
#define PLOT_LINEWIDTH_DEFAULT   (0.15*IU_PER_MM)

Definition at line 35 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS_PARSER::Parse().

#define PLOT_LINEWIDTH_MAX   (2*IU_PER_MM)

Definition at line 34 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS::SetLineWidth().

#define PLOT_LINEWIDTH_MIN   (0.02*IU_PER_MM)

Definition at line 33 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS::SetLineWidth().

Function Documentation

static const char* getTokenName ( T  aTok)
static

Definition at line 58 of file pcb_plot_params.cpp.

References PCB_PLOT_PARAMS_LEXER::TokenName().

Referenced by PCB_PLOT_PARAMS::Format().

59 {
60  return PCB_PLOT_PARAMS_LEXER::TokenName( aTok );
61 }
static const char * TokenName(PCBPLOTPARAMS_T::T aTok)
Function TokenName returns the name of the token in ASCII form.
static bool setInt ( int *  aInt,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 64 of file pcb_plot_params.cpp.

Referenced by PCB_PLOT_PARAMS::SetHPGLPenDiameter(), PCB_PLOT_PARAMS::SetHPGLPenSpeed(), and PCB_PLOT_PARAMS::SetLineWidth().

65 {
66  int temp = aValue;
67 
68  if( aValue < aMin )
69  temp = aMin;
70  else if( aValue > aMax )
71  temp = aMax;
72 
73  *aInt = temp;
74  return (temp == aValue);
75 }

Variable Documentation

int g_DrawDefaultLineThickness = PLOT_LINEWIDTH_DEFAULT

Default line thickness in internal units used to draw or plot items using a default thickness line value (Frame references)

Default line thickness in PCnew units used to draw or plot items having a default thickness line value (Frame references) (i.e.

Definition at line 48 of file pcb_plot_params.cpp.

Referenced by CINFO3D_VISU::createLayers(), DIALOG_SVG_PRINT::initDialog(), DIALOG_GRAPHIC_ITEMS_OPTIONS::initValues(), DIALOG_PRINT_FOR_MODEDIT::InitValues(), DIALOG_PRINT_USING_PRINTER::initValues(), PCB_EDIT_FRAME::LoadSettings(), DIALOG_GRAPHIC_ITEMS_OPTIONS::OnOkClick(), PCB_PLOT_PARAMS::PCB_PLOT_PARAMS(), PCB_EDIT_FRAME::RedrawActiveWindow(), PCB_EDIT_FRAME::SaveSettings(), DIALOG_SVG_PRINT::SetPenWidth(), and DIALOG_PRINT_USING_PRINTER::SetPenWidth().