vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
constUnitValues.h
1 #pragma once
2 
3 /*
4 static const std::string concate (const std::string &s1, const std::string &s2) { return s1 + s2; }
5 static const std::string asState (const std::string &str) { return "state" + str; }
6 static const std::string asTempl (const std::string &str) { return "templ" + str; }
7 static const std::string asMatch (const std::string &str) { return "match" + str; }
8 static const std::string asProc (const std::string &str) { return "proc" + str; }
9 */
10 
11 static const int anzArcRanges = 8;
12 static const double minCombinationArcLength = CV_PI / 2.;
13 
14 static const double originalRotationsGrenze = 0.005;
15 
16 static const int subPixelWinSize_6mm = 9;
17 static const int subPixelWinSize_9mm = 11;
18 
19 static const int minMarkBorderDistance = 5;
20 
21 static const size_t MAX_PARALLEL_INVOKE_ARGUMENTS = 8;
22 
23 enum FrontModelIndex {
24  markOR,
25  markOL,
26  markOM,
27  // 6 mm-Marken an Auslegern zur FSW-Messung
28  markUR,
29  markUL,
30  pivotMark,
31  // Strichmarken, wo die Federstreben in den Bügel eingesetzt sind
32  fswMarkOR,
33  fswMarkOL,
34  // weiße Ringe
35  fswMarkUR,
36  fswMarkUL,
37 
38  rightTopLensBox,
39  rightBottomLensBox,
40  rightInnerLensBox,
41  rightOuterLensBox,
42  // die auf dem Rand (aussen) liegenden Entsprechungen
43  rightTopLensBoxMargin,
44  rightBottomLensBoxMargin,
45  rightInnerLensBoxMargin,
46  rightOuterLensBoxMargin,
47 
48  //dient der Bestimmung der Defaultsetzung der Seiten-Pkte boxTop, boxBottom:
49  lensStegCrossingOR,
50  lensStegCrossingUR,
51 
52  leftTopLensBox,
53  leftBottomLensBox,
54  leftInnerLensBox,
55  leftOuterLensBox,
56  // die auf dem Rand (aussen) liegenden Entsprechungen
57  leftTopLensBoxMargin,
58  leftBottomLensBoxMargin,
59  leftInnerLensBoxMargin,
60  leftOuterLensBoxMargin,
61  //dient der Bestimmung der Defaultsetzung der Seiten-Pkte boxTop, boxBottom:
62  lensStegCrossingOL,
63  lensStegCrossingUL,
64  irisR,
65  irisL,
66  stegOR,
67  stegUR,
68  stegOL,
69  stegUL,
70  rightProgressiveCorridorBottom,
71  leftProgressiveCorridorBottom,
72  rightProgressiveCorridorTop,
73  leftProgressiveCorridorTop,
74  lensCenterSphericalR,
75  lensCenterSphericalL,
76  lensCenterAsphericR,
77  lensCenterAsphericL,
78  lensCenterProgressiveR,
79  lensCenterProgressiveL,
80  nFrontMarks
81  };
82 
83 const FrontModelIndex lensCenterIndex[LENS_TYPE][LATERAL_SIDE] = {
84  {lensCenterSphericalR, lensCenterSphericalL},
85  {lensCenterAsphericR, lensCenterAsphericL},
86  {lensCenterProgressiveR, lensCenterProgressiveL}
87 };
88 
89 const FrontModelIndex faceFormAngleRefR = fswMarkUR;
90 const FrontModelIndex faceFormAngleRefL = fswMarkUL;
91 
92 
93 enum SideModelIndex {
94  markTop,
95  markBottom,
96  markCorneal,
97  boxTop,
98  boxBottom,
99  boxMOK,
100  sidePivot,
101  nSideMarks
102  };
103 
104 enum TransformModelIndex {
105  tfPivot,
106  tfIm00,
107  tfIm10,
108  tfIm11,
109  tfIm01,
110  tfUse00,
111  tfUse10,
112  tfUse11,
113  tfUse01,
114  tfMarkBoxOR,
115  tfMarkBoxOM,
116  tfMarkBoxOL,
117  tfMarkBoxUR,
118  tfMarkBoxUL,
119  tfMarkBoxRO,
120  tfMarkBoxLO,
121  tfMarkBoxRB,
122  tfMarkBoxLB,
123  nTransModel
124  };
125 
126 enum EngineValueIndex {
127  engHeadRotationCorrection,
128  engPDistance,
129  engPDistanceR,
130  engPDistanceL,
131  engYR,
132  engYL,
133  engYR_CREreq,
134  engYL_CREreq,
135  engZR,
136  engZL,
137  engFrameWidth,
138  engFrameHeight,
139  engDistanceBetweenLenses,
140  engHeadRotation,
141  engHeadRotationCompensation,
142  engInclination,
143  engReadingDistance,
144  engFaceFormAngle,
145  engCorneaVertexDistanceR,
146  engCorneaVertexDistanceL,
147  engProgressiveCorridorLength,
148  engValueSize
149  };
150 
151 // Statuswerte - globale wie St_Ready in StatusGroup
152 static const StatusValue St_Valid = 1 << 2;
153 static const StatusValue St_Adjusted = 1 << 3;
154 static const StatusValue St_Calculated = 1 << 4;
155 static const StatusValue St_Default = 1 << 5;
156 static const StatusValue St_Invalid = 1 << 6;
157 static const StatusValue St_Clear = (1 << 2 | 1 << 3 | 1 << 4 | 1 << 5 | 1 << 6);
158 
159 
160 
161 
162 
163  void streamOut (const char *str);
164  void streamOut (const std::string &str);
165  void streamOut (const std::string &text, const std::string &str);
166  void streamOut (const char *text, int iVal);
167  void streamOut (const char *text, double dVal);
168  void streamOut (int iVal);
169  void streamNL ();
170 
171