ViSP  2.8.0
vpCgiconstants.h
1 /****************************************************************************
2  *
3  * $Id: vpCgiconstants.h 4056 2013-01-05 13:04:42Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  *
36  * Authors:
37  * Jean-Luc CORRE
38  *
39  *****************************************************************************/
40 
41 #ifndef vpCgiconstants_H
42 #define vpCgiconstants_H
43 
44 #include <visp/vpConfig.h>
45 
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 
48 /* errors */
49 #define NO_ERROR 0
50 #define ENOTCGCL 1
51 #define ENOTCGOP 2
52 #define ENOTVSOP 3
53 #define ENOTVSAC 4
54 #define ENOTOPOP 5
55 #define EVSIDINV 10
56 #define ENOWSTYP 11
57 #define EMAXVSOP 12
58 #define EVSNOTOP 13
59 #define EVSISACT 14
60 #define EVSNTACT 15
61 #define EINQALTL 16
62 #define EBADRCTD 20
63 #define EBDVIEWP 21
64 #define ECLIPTOL 22
65 #define ECLIPTOS 23
66 #define EVDCSDIL 24
67 #define EBTBUNDL 30
68 #define EBBDTBDI 31
69 #define EBTUNDEF 32
70 #define EBADLINX 33
71 #define EBDWIDTH 34
72 #define ECINDXLZ 35
73 #define EBADCOLX 36
74 #define EBADMRKX 37
75 #define EBADSIZE 38
76 #define EBADFABX 39
77 #define EPATARTL 40
78 #define EPATSZTS 41
79 #define ESTYLLEZ 42
80 #define ENOPATNX 43
81 #define EPATITOL 44
82 #define EBADTXTX 45
83 #define EBDCHRIX 46
84 #define ETXTFLIN 47
85 #define ECEXFOOR 48
86 #define ECHHTLEZ 49
87 #define ECHRUPVZ 50
88 #define ECOLRNGE 51
89 #define ENMPTSTL 60
90 #define EPLMTWPT 61
91 #define EPLMTHPT 62
92 #define EGPLISFL 63
93 #define EARCPNCI 64
94 #define EARCPNEL 65
95 #define ECELLATS 66
96 #define ECELLPOS 67
97 #define ECELLTLS 68
98 #define EVALOVWS 69
99 #define EPXNOTCR 70
100 #define EINDNOEX 80
101 #define EINDINIT 81
102 #define EINDALIN 82
103 #define EINASAEX 83
104 #define EINAIIMP 84
105 #define EINNTASD 85
106 #define EINTRNEX 86
107 #define EINNECHO 87
108 #define EINECHON 88
109 #define EINEINCP 89
110 #define EINERVWS 90
111 #define EINETNSU 91
112 #define EINENOTO 92
113 #define EIAEVNEN 93
114 #define EINEVNEN 94
115 #define EBADDATA 95
116 #define ESTRSIZE 96
117 #define EINQOVFL 97
118 #define EINNTRQE 98
119 #define EINNTRSE 99
120 #define EINNTQUE 100
121 #define EMEMSPAC 110
122 #define ENOTCSTD 111
123 #define ENOTCCPW 112
124 #define EFILACC 113
125 #define ECGIWIN 114
126 
127 /* devices */
128 #define BW1DD 1
129 #define BW2DD 2
130 #define CG1DD 3
131 #define BWPIXWINDD 4
132 #define CGPIXWINDD 5
133 #define GP1DD 6
134 #define CG2DD 7
135 #define CG4DD 8
136 #define PIXWINDD 9
137 
138 #define VWSURF_NEWFLG 1
139 #define _CGI_KEYBORDS 1
140 #define _CGI_LOCATORS 4
141 #define _CGI_STROKES 3
142 #define _CGI_VALUATRS 3
143 #define _CGI_CHOICES 3
144 #define _CGI_PICKS 3
145 #define MAXVWS 5
146 #define MAXTRIG 6
147 #define MAXASSOC 5
148 #define MAXEVENTS 1024
149 
150 /* limits */
151 #define MAXAESSIZE 10 /* maximum number of AES table entries */
152 #define MAXNUMPATS 50 /* maximum number of pattern table entries */
153 #define MAXPATSIZE 256 /* maximum pattern size */
154 
155 #define MAXPTS 1024 /* maximum number of pts per polygon */
156 #define MAXCHAR 256 /* maximum number of chars in a string */
157 
158 #define OUTFUNS 67 /* number of output functions */
159 #define INFUNS 22 /* number of input functions */
160 
161 /* attributes */
162 
163 /* fonts */
164 #define ROMAN 0
165 #define GREEK 1
166 #define SCRIPT 2
167 #define OLDENGLISH 3
168 #define STICK 4
169 #define SYMBOLS 5
170 
171 #define DEVNAMESIZE 20
172 /* Warning: Because of the ; separators,
173  * do not use the following macro unless it is surrounded with { }s.
174  * Beware interactions with if-else and ?: constructs.
175  */
176 #define NORMAL_VWSURF(dev,surf) \
177  dev.screenname[0] = '\0'; \
178  dev.windowname[0] = '\0'; \
179  dev.windowfd = 0; \
180  dev.retained = 0; \
181  dev.dd = surf; \
182  dev.cmapsize = 0; \
183  dev.cmapname[0] ='\0'; \
184  dev.flags = 0; \
185  dev.ptr= '\0' ;
186 
187 
188 #endif
189 #endif