1 package inkrecognizer
2
3
4
5
6
7
8
9
10 type Application string
11
12 const (
13
14 Drawing Application = "drawing"
15
16 Mixed Application = "mixed"
17
18 Writing Application = "writing"
19 )
20
21
22 func PossibleApplicationValues() []Application {
23 return []Application{Drawing, Mixed, Writing}
24 }
25
26
27 type Category string
28
29 const (
30
31 InkBullet Category = "inkBullet"
32
33 InkDrawing Category = "inkDrawing"
34
35 InkWord Category = "inkWord"
36
37 Line Category = "line"
38
39 Paragraph Category = "paragraph"
40
41 Root Category = "root"
42
43 Unknown Category = "unknown"
44
45 WritingRegion Category = "writingRegion"
46 )
47
48
49 func PossibleCategoryValues() []Category {
50 return []Category{InkBullet, InkDrawing, InkWord, Line, Paragraph, Root, Unknown, WritingRegion}
51 }
52
53
54 type Class string
55
56 const (
57
58 ClassContainer Class = "container"
59
60 ClassLeaf Class = "leaf"
61 )
62
63
64 func PossibleClassValues() []Class {
65 return []Class{ClassContainer, ClassLeaf}
66 }
67
68
69 type Container string
70
71 const (
72
73 ContainerLine Container = "line"
74
75 ContainerParagraph Container = "paragraph"
76
77 ContainerRoot Container = "root"
78
79 ContainerWritingRegion Container = "writingRegion"
80 )
81
82
83 func PossibleContainerValues() []Container {
84 return []Container{ContainerLine, ContainerParagraph, ContainerRoot, ContainerWritingRegion}
85 }
86
87
88 type InputDevice string
89
90 const (
91
92 Armature InputDevice = "armature"
93
94 ArticulatedArm InputDevice = "articulatedArm"
95
96 Digitizer InputDevice = "digitizer"
97
98 LightPen InputDevice = "lightPen"
99
100 Pen InputDevice = "pen"
101
102 StereoPlotter InputDevice = "stereoPlotter"
103
104 ThreedDigitizer InputDevice = "3dDigitizer"
105
106 TouchPad InputDevice = "touchPad"
107
108 TouchScreen InputDevice = "touchScreen"
109
110 WhiteBoard InputDevice = "whiteBoard"
111 )
112
113
114 func PossibleInputDeviceValues() []InputDevice {
115 return []InputDevice{Armature, ArticulatedArm, Digitizer, LightPen, Pen, StereoPlotter, ThreedDigitizer, TouchPad, TouchScreen, WhiteBoard}
116 }
117
118
119 type Kind string
120
121 const (
122
123 KindInkDrawing Kind = "inkDrawing"
124
125 KindInkWriting Kind = "inkWriting"
126 )
127
128
129 func PossibleKindValues() []Kind {
130 return []Kind{KindInkDrawing, KindInkWriting}
131 }
132
133
134 type Leaf string
135
136 const (
137
138 LeafInkBullet Leaf = "inkBullet"
139
140 LeafInkDrawing Leaf = "inkDrawing"
141
142 LeafInkWord Leaf = "inkWord"
143
144 LeafUnknown Leaf = "unknown"
145 )
146
147
148 func PossibleLeafValues() []Leaf {
149 return []Leaf{LeafInkBullet, LeafInkDrawing, LeafInkWord, LeafUnknown}
150 }
151
152
153 type RasterOp string
154
155 const (
156
157 CopyPen RasterOp = "copyPen"
158
159 MaskPen RasterOp = "maskPen"
160
161 NoOperation RasterOp = "noOperation"
162 )
163
164
165 func PossibleRasterOpValues() []RasterOp {
166 return []RasterOp{CopyPen, MaskPen, NoOperation}
167 }
168
169
170 type Shape string
171
172 const (
173
174 ShapeBlockArrow Shape = "blockArrow"
175
176 ShapeCircle Shape = "circle"
177
178 ShapeCloud Shape = "cloud"
179
180 ShapeCurve Shape = "curve"
181
182 ShapeDiamond Shape = "diamond"
183
184 ShapeDrawing Shape = "drawing"
185
186 ShapeEllipse Shape = "ellipse"
187
188 ShapeEquilateralTriangle Shape = "equilateralTriangle"
189
190 ShapeHeart Shape = "heart"
191
192 ShapeHexagon Shape = "hexagon"
193
194 ShapeIsoscelesTriangle Shape = "isoscelesTriangle"
195
196 ShapeLine Shape = "line"
197
198 ShapeParallelogram Shape = "parallelogram"
199
200 ShapePentagon Shape = "pentagon"
201
202 ShapePolyLine Shape = "polyLine"
203
204 ShapeQuadrilateral Shape = "quadrilateral"
205
206 ShapeRectangle Shape = "rectangle"
207
208 ShapeRightTriangle Shape = "rightTriangle"
209
210 ShapeSquare Shape = "square"
211
212 ShapeStarCrossed Shape = "starCrossed"
213
214 ShapeStarSimple Shape = "starSimple"
215
216 ShapeTrapezoid Shape = "trapezoid"
217
218 ShapeTriangle Shape = "triangle"
219 )
220
221
222 func PossibleShapeValues() []Shape {
223 return []Shape{ShapeBlockArrow, ShapeCircle, ShapeCloud, ShapeCurve, ShapeDiamond, ShapeDrawing, ShapeEllipse, ShapeEquilateralTriangle, ShapeHeart, ShapeHexagon, ShapeIsoscelesTriangle, ShapeLine, ShapeParallelogram, ShapePentagon, ShapePolyLine, ShapeQuadrilateral, ShapeRectangle, ShapeRightTriangle, ShapeSquare, ShapeStarCrossed, ShapeStarSimple, ShapeTrapezoid, ShapeTriangle}
224 }
225
226
227 type Tip string
228
229 const (
230
231 Ellipse Tip = "ellipse"
232
233 Rectangle Tip = "rectangle"
234 )
235
236
237 func PossibleTipValues() []Tip {
238 return []Tip{Ellipse, Rectangle}
239 }
240
241
242 type Unit string
243
244 const (
245
246 Cm Unit = "cm"
247
248 In Unit = "in"
249
250 Mm Unit = "mm"
251 )
252
253
254 func PossibleUnitValues() []Unit {
255 return []Unit{Cm, In, Mm}
256 }
257
View as plain text