KiCad PCB EDA Suite
gerbview.h File Reference
#include <vector>
#include <set>

Go to the source code of this file.

Macros

#define CURSEUR_ON_GRILLE   0
 
#define CURSEUR_OFF_GRILLE   1
 
#define GERBER_BUFZ   4000
 size of single line of a text from a gerber file. More...
 
#define GERBER_DRAWLAYERS_COUNT   32
 

Enumerations

enum  GERBER_VISIBLE_ID { DCODES_VISIBLE = 1, GERBER_GRID_VISIBLE, NEGATIVE_OBJECTS_VISIBLE, END_GERBER_VISIBLE_LIST }
 Enum GERBER_VISIBLE_ID is a set of visible GERBVIEW elements. More...
 
enum  Gerb_Interpolation {
  GERB_INTERPOL_LINEAR_1X = 0, GERB_INTERPOL_LINEAR_10X, GERB_INTERPOL_LINEAR_01X, GERB_INTERPOL_LINEAR_001X,
  GERB_INTERPOL_ARC_NEG, GERB_INTERPOL_ARC_POS
}
 
enum  Gerb_GCommand {
  GC_MOVE = 0, GC_LINEAR_INTERPOL_1X = 1, GC_CIRCLE_NEG_INTERPOL = 2, GC_CIRCLE_POS_INTERPOL = 3,
  GC_COMMENT = 4, GC_LINEAR_INTERPOL_10X = 10, GC_LINEAR_INTERPOL_0P1X = 11, GC_LINEAR_INTERPOL_0P01X = 12,
  GC_TURN_ON_POLY_FILL = 36, GC_TURN_OFF_POLY_FILL = 37, GC_SELECT_TOOL = 54, GC_PHOTO_MODE = 55,
  GC_SPECIFY_INCHES = 70, GC_SPECIFY_MILLIMETERS = 71, GC_TURN_OFF_360_INTERPOL = 74, GC_TURN_ON_360_INTERPOL = 75,
  GC_SPECIFY_ABSOLUES_COORD = 90, GC_SPECIFY_RELATIVEES_COORD = 91
}
 
enum  Gerb_Analyse_Cmd { CMD_IDLE = 0, END_BLOCK, ENTER_RS274X_CMD }
 

Variables

const wxChar * g_GerberPageSizeList [8]
 List of page sizes. More...
 
enum GERBER_VISIBLE_ID kiface
 

Macro Definition Documentation

#define CURSEUR_OFF_GRILLE   1

Definition at line 33 of file gerbview.h.

#define CURSEUR_ON_GRILLE   0

Definition at line 32 of file gerbview.h.

#define GERBER_BUFZ   4000

size of single line of a text from a gerber file.

warning: some files can have very long lines, so the buffer must be large.

Definition at line 39 of file gerbview.h.

Referenced by GERBER_FILE_IMAGE::ExecuteRS274XCommand(), GetEndOfBlock(), GetNextLine(), GERBER_FILE_IMAGE::LoadGerberFile(), and GERBER_FILE_IMAGE::ReadRS274XCommand().

Enumeration Type Documentation

Enumerator
CMD_IDLE 
END_BLOCK 
ENTER_RS274X_CMD 

Definition at line 97 of file gerbview.h.

98 {
99  CMD_IDLE = 0,
100  END_BLOCK,
102 };
Enumerator
GC_MOVE 
GC_LINEAR_INTERPOL_1X 
GC_CIRCLE_NEG_INTERPOL 
GC_CIRCLE_POS_INTERPOL 
GC_COMMENT 
GC_LINEAR_INTERPOL_10X 
GC_LINEAR_INTERPOL_0P1X 
GC_LINEAR_INTERPOL_0P01X 
GC_TURN_ON_POLY_FILL 
GC_TURN_OFF_POLY_FILL 
GC_SELECT_TOOL 
GC_PHOTO_MODE 
GC_SPECIFY_INCHES 
GC_SPECIFY_MILLIMETERS 
GC_TURN_OFF_360_INTERPOL 
GC_TURN_ON_360_INTERPOL 
GC_SPECIFY_ABSOLUES_COORD 
GC_SPECIFY_RELATIVEES_COORD 

Definition at line 74 of file gerbview.h.

Enumerator
GERB_INTERPOL_LINEAR_1X 
GERB_INTERPOL_LINEAR_10X 
GERB_INTERPOL_LINEAR_01X 
GERB_INTERPOL_LINEAR_001X 
GERB_INTERPOL_ARC_NEG 
GERB_INTERPOL_ARC_POS 

Definition at line 62 of file gerbview.h.

Enum GERBER_VISIBLE_ID is a set of visible GERBVIEW elements.

Enumerator
DCODES_VISIBLE 
GERBER_GRID_VISIBLE 
NEGATIVE_OBJECTS_VISIBLE 
END_GERBER_VISIBLE_LIST 

Definition at line 51 of file gerbview.h.

52 {
53  DCODES_VISIBLE = 1, // visible item id cannot be 0
54  // because this id is used as wxWidget id
56  NEGATIVE_OBJECTS_VISIBLE, // use the selected color to draw negative objects
57  // instaed of background color, to make them visible
58  END_GERBER_VISIBLE_LIST // sentinel
59 };

Variable Documentation

enum GERBER_VISIBLE_ID kiface