KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gerbview.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright (C) 2007-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef GERBVIEW_H
22
#define GERBVIEW_H
23
24
#include <vector>
25
#include <set>
26
27
28
// Interpolation type
29
enum
Gerb_Interpolation
30
{
31
GERB_INTERPOL_LINEAR_1X
= 0,
32
GERB_INTERPOL_ARC_NEG
,
33
GERB_INTERPOL_ARC_POS
34
};
35
36
37
// Command Type (GCodes)
38
enum
Gerb_GCommand
39
{
40
GC_MOVE
= 0,
41
GC_LINEAR_INTERPOL_1X
= 1,
42
GC_CIRCLE_NEG_INTERPOL
= 2,
43
GC_CIRCLE_POS_INTERPOL
= 3,
44
GC_COMMENT
= 4,
45
GC_TURN_ON_POLY_FILL
= 36,
46
GC_TURN_OFF_POLY_FILL
= 37,
47
GC_SELECT_TOOL
= 54,
48
GC_PHOTO_MODE
= 55,
// can start a D03 flash command: redundant with D03
49
GC_SPECIFY_INCHES
= 70,
50
GC_SPECIFY_MILLIMETERS
= 71,
51
GC_TURN_OFF_360_INTERPOL
= 74,
52
GC_TURN_ON_360_INTERPOL
= 75,
53
GC_SPECIFY_ABSOLUES_COORD
= 90,
54
GC_SPECIFY_RELATIVEES_COORD
= 91
55
};
56
57
58
enum
Gerb_Analyse_Cmd
59
{
60
CMD_IDLE
= 0,
61
END_BLOCK
,
62
ENTER_RS274X_CMD
63
};
64
65
#endif
// ifndef GERBVIEW_H
Gerb_GCommand
Gerb_GCommand
Definition
gerbview.h:39
GC_SPECIFY_MILLIMETERS
@ GC_SPECIFY_MILLIMETERS
Definition
gerbview.h:50
GC_SPECIFY_RELATIVEES_COORD
@ GC_SPECIFY_RELATIVEES_COORD
Definition
gerbview.h:54
GC_COMMENT
@ GC_COMMENT
Definition
gerbview.h:44
GC_TURN_ON_360_INTERPOL
@ GC_TURN_ON_360_INTERPOL
Definition
gerbview.h:52
GC_LINEAR_INTERPOL_1X
@ GC_LINEAR_INTERPOL_1X
Definition
gerbview.h:41
GC_TURN_OFF_360_INTERPOL
@ GC_TURN_OFF_360_INTERPOL
Definition
gerbview.h:51
GC_SELECT_TOOL
@ GC_SELECT_TOOL
Definition
gerbview.h:47
GC_TURN_OFF_POLY_FILL
@ GC_TURN_OFF_POLY_FILL
Definition
gerbview.h:46
GC_CIRCLE_POS_INTERPOL
@ GC_CIRCLE_POS_INTERPOL
Definition
gerbview.h:43
GC_PHOTO_MODE
@ GC_PHOTO_MODE
Definition
gerbview.h:48
GC_MOVE
@ GC_MOVE
Definition
gerbview.h:40
GC_SPECIFY_INCHES
@ GC_SPECIFY_INCHES
Definition
gerbview.h:49
GC_TURN_ON_POLY_FILL
@ GC_TURN_ON_POLY_FILL
Definition
gerbview.h:45
GC_CIRCLE_NEG_INTERPOL
@ GC_CIRCLE_NEG_INTERPOL
Definition
gerbview.h:42
GC_SPECIFY_ABSOLUES_COORD
@ GC_SPECIFY_ABSOLUES_COORD
Definition
gerbview.h:53
Gerb_Interpolation
Gerb_Interpolation
Definition
gerbview.h:30
GERB_INTERPOL_ARC_NEG
@ GERB_INTERPOL_ARC_NEG
Definition
gerbview.h:32
GERB_INTERPOL_LINEAR_1X
@ GERB_INTERPOL_LINEAR_1X
Definition
gerbview.h:31
GERB_INTERPOL_ARC_POS
@ GERB_INTERPOL_ARC_POS
Definition
gerbview.h:33
Gerb_Analyse_Cmd
Gerb_Analyse_Cmd
Definition
gerbview.h:59
END_BLOCK
@ END_BLOCK
Definition
gerbview.h:61
ENTER_RS274X_CMD
@ ENTER_RS274X_CMD
Definition
gerbview.h:62
CMD_IDLE
@ CMD_IDLE
Definition
gerbview.h:60
src
gerbview
gerbview.h
Generated on Fri Jun 26 2026 00:05:36 for KiCad PCB EDA Suite by
1.13.2