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 (C) 1992-2014 KiCad Developers, see change_log.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, you may find one here:
19
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20
* or you may search the http://www.gnu.org website for the version 2 license,
21
* or you may write to the Free Software Foundation, Inc.,
22
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23
*/
24
25
#ifndef GERBVIEW_H
26
#define GERBVIEW_H
27
28
#include <vector>
29
#include <set>
30
31
32
// Interpolation type
33
enum
Gerb_Interpolation
34
{
35
GERB_INTERPOL_LINEAR_1X
= 0,
36
GERB_INTERPOL_ARC_NEG
,
37
GERB_INTERPOL_ARC_POS
38
};
39
40
41
// Command Type (GCodes)
42
enum
Gerb_GCommand
43
{
44
GC_MOVE
= 0,
45
GC_LINEAR_INTERPOL_1X
= 1,
46
GC_CIRCLE_NEG_INTERPOL
= 2,
47
GC_CIRCLE_POS_INTERPOL
= 3,
48
GC_COMMENT
= 4,
49
GC_TURN_ON_POLY_FILL
= 36,
50
GC_TURN_OFF_POLY_FILL
= 37,
51
GC_SELECT_TOOL
= 54,
52
GC_PHOTO_MODE
= 55,
// can start a D03 flash command: redundant with D03
53
GC_SPECIFY_INCHES
= 70,
54
GC_SPECIFY_MILLIMETERS
= 71,
55
GC_TURN_OFF_360_INTERPOL
= 74,
56
GC_TURN_ON_360_INTERPOL
= 75,
57
GC_SPECIFY_ABSOLUES_COORD
= 90,
58
GC_SPECIFY_RELATIVEES_COORD
= 91
59
};
60
61
62
enum
Gerb_Analyse_Cmd
63
{
64
CMD_IDLE
= 0,
65
END_BLOCK
,
66
ENTER_RS274X_CMD
67
};
68
69
#endif
// ifndef GERBVIEW_H
Gerb_GCommand
Gerb_GCommand
Definition:
gerbview.h:43
GC_SPECIFY_MILLIMETERS
@ GC_SPECIFY_MILLIMETERS
Definition:
gerbview.h:54
GC_SPECIFY_RELATIVEES_COORD
@ GC_SPECIFY_RELATIVEES_COORD
Definition:
gerbview.h:58
GC_COMMENT
@ GC_COMMENT
Definition:
gerbview.h:48
GC_TURN_ON_360_INTERPOL
@ GC_TURN_ON_360_INTERPOL
Definition:
gerbview.h:56
GC_LINEAR_INTERPOL_1X
@ GC_LINEAR_INTERPOL_1X
Definition:
gerbview.h:45
GC_TURN_OFF_360_INTERPOL
@ GC_TURN_OFF_360_INTERPOL
Definition:
gerbview.h:55
GC_SELECT_TOOL
@ GC_SELECT_TOOL
Definition:
gerbview.h:51
GC_TURN_OFF_POLY_FILL
@ GC_TURN_OFF_POLY_FILL
Definition:
gerbview.h:50
GC_CIRCLE_POS_INTERPOL
@ GC_CIRCLE_POS_INTERPOL
Definition:
gerbview.h:47
GC_PHOTO_MODE
@ GC_PHOTO_MODE
Definition:
gerbview.h:52
GC_MOVE
@ GC_MOVE
Definition:
gerbview.h:44
GC_SPECIFY_INCHES
@ GC_SPECIFY_INCHES
Definition:
gerbview.h:53
GC_TURN_ON_POLY_FILL
@ GC_TURN_ON_POLY_FILL
Definition:
gerbview.h:49
GC_CIRCLE_NEG_INTERPOL
@ GC_CIRCLE_NEG_INTERPOL
Definition:
gerbview.h:46
GC_SPECIFY_ABSOLUES_COORD
@ GC_SPECIFY_ABSOLUES_COORD
Definition:
gerbview.h:57
Gerb_Interpolation
Gerb_Interpolation
Definition:
gerbview.h:34
GERB_INTERPOL_ARC_NEG
@ GERB_INTERPOL_ARC_NEG
Definition:
gerbview.h:36
GERB_INTERPOL_LINEAR_1X
@ GERB_INTERPOL_LINEAR_1X
Definition:
gerbview.h:35
GERB_INTERPOL_ARC_POS
@ GERB_INTERPOL_ARC_POS
Definition:
gerbview.h:37
Gerb_Analyse_Cmd
Gerb_Analyse_Cmd
Definition:
gerbview.h:63
END_BLOCK
@ END_BLOCK
Definition:
gerbview.h:65
ENTER_RS274X_CMD
@ ENTER_RS274X_CMD
Definition:
gerbview.h:66
CMD_IDLE
@ CMD_IDLE
Definition:
gerbview.h:64
src
gerbview
gerbview.h
Generated on Thu Nov 21 2024 00:06:43 for KiCad PCB EDA Suite by
1.9.6