KiCad PCB EDA Suite
pcb_screen.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <macros.h>
#include <trigo.h>
#include <pcb_screen.h>
#include <eda_text.h>
#include <base_units.h>
#include <pcbnew.h>
#include <board_design_settings.h>
#include <layers_id_colors_and_visibility.h>
#include <pcbnew_id.h>

Go to the source code of this file.

Macros

#define ZOOM_FACTOR(x)   ( x * IU_PER_MILS / 10 )
 
#define DMIL_GRID(x)
 
#define MM_GRID(x)
 
#define DEFAULT_ZOOM   ZOOM_FACTOR( 120 )
 Default Pcbnew zoom values. More...
 

Variables

static const double pcbZoomList []
 
static GRID_TYPE pcbGridList []
 

Macro Definition Documentation

#define DEFAULT_ZOOM   ZOOM_FACTOR( 120 )

Default Pcbnew zoom values.

Limited to 19 values to keep a decent size to menus. Roughly a 1.5 progression. The last 2 values are handy when somebody uses a library import of a module (or foreign data) which has a bad coordinate. Also useful in GerbView for this reason. Zoom 5 and 10 can create artefacts when drawing (integer overflow in low level graphic functions )

Definition at line 59 of file pcb_screen.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().

#define DMIL_GRID (   x)
Value:
wxRealPoint( x * IU_PER_MILS / 10,\
x * IU_PER_MILS / 10 )
#define IU_PER_MILS
Definition: plotter.cpp:134

Definition at line 43 of file pcb_screen.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().

#define MM_GRID (   x)
Value:
wxRealPoint( x * IU_PER_MM,\
x * IU_PER_MM )

Definition at line 45 of file pcb_screen.cpp.

#define ZOOM_FACTOR (   x)    ( x * IU_PER_MILS / 10 )

Definition at line 42 of file pcb_screen.cpp.

Referenced by GBR_SCREEN::GBR_SCREEN(), and GERBVIEW_FRAME::GERBVIEW_FRAME().

Variable Documentation

GRID_TYPE pcbGridList[]
static
Initial value:
=
{
}
#define MM_GRID(x)
Definition: pcb_screen.cpp:45
#define DMIL_GRID(x)
Definition: pcb_screen.cpp:43

Definition at line 130 of file pcb_screen.cpp.

const double pcbZoomList[]
static
Initial value:
=
{
ZOOM_FACTOR( 0.035 ),
ZOOM_FACTOR( 0.05 ),
ZOOM_FACTOR( 0.08 ),
ZOOM_FACTOR( 0.13 ),
ZOOM_FACTOR( 0.22 ),
ZOOM_FACTOR( 0.35 ),
ZOOM_FACTOR( 0.6 ),
ZOOM_FACTOR( 1.0 ),
ZOOM_FACTOR( 1.5 ),
ZOOM_FACTOR( 2.2 ),
ZOOM_FACTOR( 3.5 ),
ZOOM_FACTOR( 5.0 ),
ZOOM_FACTOR( 8.0 ),
ZOOM_FACTOR( 13.0 ),
ZOOM_FACTOR( 20.0 ),
ZOOM_FACTOR( 35.0 ),
ZOOM_FACTOR( 50.0 ),
ZOOM_FACTOR( 80.0 ),
ZOOM_FACTOR( 130.0 ),
ZOOM_FACTOR( 220.0 ),
}
#define ZOOM_FACTOR(x)
Definition: pcb_screen.cpp:42

Definition at line 61 of file pcb_screen.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().