KiCad PCB EDA Suite
classpcb.cpp File Reference

Member functions of classes used in Pcbnew (see pcbstruct.h) except for tracks (see class_track.cpp). More...

#include <fctsys.h>
#include <common.h>
#include <macros.h>
#include <trigo.h>
#include <class_pcb_screen.h>
#include <eda_text.h>
#include <base_units.h>
#include <pcbnew.h>
#include <class_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 []
 

Detailed Description

Member functions of classes used in Pcbnew (see pcbstruct.h) except for tracks (see class_track.cpp).

Definition in file classpcb.cpp.

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 65 of file classpcb.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().

#define DMIL_GRID (   x)
Value:
wxRealPoint( x * IU_PER_MILS / 10,\
x * IU_PER_MILS / 10 )

Definition at line 49 of file classpcb.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().

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

Definition at line 51 of file classpcb.cpp.

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

Definition at line 48 of file classpcb.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: classpcb.cpp:51
#define DMIL_GRID(x)
Definition: classpcb.cpp:49

Definition at line 136 of file classpcb.cpp.

const double pcbZoomList[]
static
Initial value:
=
{
ZOOM_FACTOR( 0.1 ),
ZOOM_FACTOR( 0.2 ),
ZOOM_FACTOR( 0.3 ),
ZOOM_FACTOR( 0.5 ),
ZOOM_FACTOR( 1.0 ),
ZOOM_FACTOR( 1.5 ),
ZOOM_FACTOR( 2.0 ),
ZOOM_FACTOR( 3.0 ),
ZOOM_FACTOR( 4.5 ),
ZOOM_FACTOR( 6.0 ),
ZOOM_FACTOR( 8.0 ),
ZOOM_FACTOR( 11.0 ),
ZOOM_FACTOR( 15.0 ),
ZOOM_FACTOR( 22.0 ),
ZOOM_FACTOR( 35.0 ),
ZOOM_FACTOR( 50.0 ),
ZOOM_FACTOR( 80.0 ),
ZOOM_FACTOR( 110.0 ),
ZOOM_FACTOR( 150.0 ),
ZOOM_FACTOR( 200.0 ),
ZOOM_FACTOR( 300.0 ),
}
#define ZOOM_FACTOR(x)
Definition: classpcb.cpp:48

Definition at line 67 of file classpcb.cpp.

Referenced by PCB_SCREEN::PCB_SCREEN().