2014-10-21 18:36:45 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
|
|
|
|
* Copyright (C) 1992-2014 KiCad Developers, see change_log.txt for contributors.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef GERBVIEW_H
|
|
|
|
#define GERBVIEW_H
|
|
|
|
|
2008-11-08 06:44:07 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
|
2010-10-10 17:57:54 +00:00
|
|
|
#define CURSEUR_ON_GRILLE 0
|
|
|
|
#define CURSEUR_OFF_GRILLE 1
|
|
|
|
|
2011-12-31 05:44:00 +00:00
|
|
|
/// List of page sizes
|
|
|
|
extern const wxChar* g_GerberPageSizeList[8];
|
2009-02-04 15:25:03 +00:00
|
|
|
|
2007-11-02 09:58:42 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
// Interpolation type
|
2009-11-09 14:00:22 +00:00
|
|
|
enum Gerb_Interpolation
|
|
|
|
{
|
2007-11-02 09:58:42 +00:00
|
|
|
GERB_INTERPOL_LINEAR_1X = 0,
|
|
|
|
GERB_INTERPOL_ARC_NEG,
|
2010-10-04 12:58:07 +00:00
|
|
|
GERB_INTERPOL_ARC_POS
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Command Type (GCodes)
|
2009-11-09 14:00:22 +00:00
|
|
|
enum Gerb_GCommand
|
|
|
|
{
|
|
|
|
GC_MOVE = 0,
|
|
|
|
GC_LINEAR_INTERPOL_1X = 1,
|
|
|
|
GC_CIRCLE_NEG_INTERPOL = 2,
|
|
|
|
GC_CIRCLE_POS_INTERPOL = 3,
|
|
|
|
GC_COMMENT = 4,
|
2007-11-02 09:58:42 +00:00
|
|
|
GC_TURN_ON_POLY_FILL = 36,
|
|
|
|
GC_TURN_OFF_POLY_FILL = 37,
|
2009-11-09 14:00:22 +00:00
|
|
|
GC_SELECT_TOOL = 54,
|
|
|
|
GC_PHOTO_MODE = 55, // can start a D03 flash command: redundant with D03
|
|
|
|
GC_SPECIFY_INCHES = 70,
|
2007-11-02 09:58:42 +00:00
|
|
|
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
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
enum Gerb_Analyse_Cmd
|
|
|
|
{
|
2007-11-02 09:58:42 +00:00
|
|
|
CMD_IDLE = 0,
|
|
|
|
END_BLOCK,
|
|
|
|
ENTER_RS274X_CMD
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
2007-11-02 09:58:42 +00:00
|
|
|
#endif // ifndef GERBVIEW_H
|