Download Touch Screen Based Measuring Equipment

Transcript
Touch screen based equipment
Page: 36
7.5.2.4. CField
As with most other parameter dependent classes the
dialog for the field dependent parameters is
controlled in its own class. As mentioned earlier, this
is the object in which the measurement parameter
objects are linked. For the first development the
objects are linked statically. This means there is a
variable for every measurement parameter. To fulfil
the needs this must be changed to a dynamic
construct or to an association of a linked list of
measurement parameters. In the last case the name of
the measurement is passed as an argument. By
passing the name of the desired measurement every
member of the linked list can determine if it must
take the appropriate action. In the first release 5
pointers are implemented. The first four are the
parameters for the measurements: colour recognition,
convergence, eccentricity and linewidth. The fifth is
added to store the field related parameters and
measurements of the 'meas. utility' dialog. In figure
7 the currently implemented version is shown. In
figure 8 the desired implementation is shown.
As with the tube class two functions are available to
load and save the tube dependent parameters. The
argument to these two functions is the filename.
Field
m_ColourReco""
"". CColourRecollP"'a
m_ConvPara
"
CConvPara
m_EccePara
,."
CEccePara
m_ LineWidthPara
m_DumpVar
".
...
,"
CLineWidtllPara
CDumpPara
Figure 6 : Actual implementation
Fieldobjeot
After executing a measurement it is visualised in
the tube dialog. The involved measuring object
initialises a measurement, and it is not desired that
those objects write directly in the tube object. The
field object is the place to store a flag to the last
updated parameter object. Using this construct the
tube class itself is able to visualise the last
measurements. Some measurements have multiple
values which can not been displayed at the same
time in the tube dialog. The indication of which
value to show, and how to get this value is handled
in the involved object.
See appendix P for the user interface layout of the
previous mentioned dialog.
Figure 7 : Future implementation