-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShapeTypes.h
More file actions
72 lines (65 loc) · 1.13 KB
/
ShapeTypes.h
File metadata and controls
72 lines (65 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#pragma once
//This file contains definitions of shape parameters
//Main shape type
enum ShapeType
{
shNone,
shLine,
shCircle,
shSegment,
};
//Shape size. Note the usage of synonims.
//During recognition only difference between VerySmall and Large is taken into account.
//During output, however, all sizes are used
enum ShapeSize
{
ssAny = 0,
ssSmall = 1,
ssShort = 1,
ssLarge = 2,
ssLong = 2,
ssVerySmall = 3,
ssVeryShort = 3,
};
//Direction of line
enum Direction
{
ddAny,
ddHorizontal,
ddVertical,
ddSlash,
ddBackslash,
};
//Parts of shapes. Not every value applies to each shape.
//For example, pt1 - pt12 are used only in circular shapes
//and ptTop is not applicable to horizontal lines
enum PartType
{
ptAny,
ptNone,
ptMiddle,
ptTop,
ptBottom,
ptLeft,
ptRight,
pt1,
pt2,
pt3,
pt4,
pt5,
pt6,
pt7,
pt8,
pt9,
pt10,
pt11,
pt12,
ptAbove,
ptBelow,
ptLefter,
ptRighter,
};
//Returns list of part types that are considered similar to given one.
//The same part type is always returned.
//For pt1 - pt12 two adjacent clocks from each side are also returned
std::vector<PartType> similar_parts(PartType type);