Debian Codegraph @

Plotter.h

raw symbols SCIP
1 /***************************************************************************
2 * This file is part of Robocut. *
3 * Copyright (C) 2010 Tim Hutt <[email protected]> *
4 * Copyright (C) 2010 Markus Schulz <[email protected]> *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
20 ***************************************************************************/
21
22 #pragma once
23
24 #include <QList>
25 #include <QPolygonF>
26 #include "Common.h"
27
28 using namespace std;
29
30 #include "CuttingThread.h"
31
32 // Perform the cut. Returns error state. Note that this just sends the data, it has no way of knowing whether it really
33 // worked and there is no easy way to cancel it.
34 //
35 // media: The type of media. I'm not sure what this effects, see CuttingDialog.cpp/ui for values. 300 is "custom".
36 // The value is not fully checked for sanity.
37 // speed: Cutting speed: 1-10 inclusive.
38 // pressure: Cutting pressure: 1-33 inclusive.
39 // trackenhancing: Supposed to feed/unfeed the media a few times to create tracks.
40 // regmark: Whether to use registration marks for calibration.
41 // regsearch: ?
42 // regwidth/height: Distance between the registration marks.
43 //
44 // TODO: Apparently you can change the number of registration marks?
45 Error Cut(CutParams p);
46
47
48 const int VENDOR_ID_GRAPHTEC = 0x0b4d;
49 const int PRODUCT_ID_CC200_20 = 0x110a;
50 const int PRODUCT_ID_CC300_20 = 0x111a;
51 const int PRODUCT_ID_SILHOUETTE_SD_1 = 0x111c;
52 const int PRODUCT_ID_SILHOUETTE_SD_2 = 0x111d;
53 const int PRODUCT_ID_SILHOUETTE_CAMEO = 0x1121;
54 const int PRODUCT_ID_SILHOUETTE_PORTRAIT = 0x1123;
55
56 struct cutter_id
57 {
58 string msg;
59 int usb_vendor_id;
60 int usb_product_id;
61 };
62
63 struct cutter_id *Identify();