2 using System.Collections.Generic;
5 using System.Xml.Serialization;
14 private const string fileName =
"Configuration.xml";
29 if (!File.Exists(fileName))
36 XmlSerializer reader =
new XmlSerializer(typeof (
Information));
37 StreamReader file =
new StreamReader(fileName);
41 this.SetMissingValues();
44 private void SetMissingValues()
66 XmlSerializer writer =
new XmlSerializer(typeof(
Information));
67 StreamWriter file =
new StreamWriter(fileName);
76 private static Information CreateInitialConfiguration()
103 WorldCoordinates =
new Coordinates {X = 0.0f,
Y = 5.57f, Z = 30.9f},
120 MicroStepsEnabled =
true
132 WorldCoordinates =
new Coordinates {X = 14.0f,
Y = 6.4f, Z = 28.8f},
150 WorldCoordinates =
new Coordinates {X = 0.0f,
Y = 0.0f, Z = 7.5f},
164 PercentFromTop = 75f,
165 Color = Color.FromKnownColor(KnownColor.Blue)
190 ImageSubPath =
"Images",
192 LastFilePath = String.Empty,
204 return new List<Resolution>
223 SaturationMin = 0.05f,
225 LuminanceMin = 0.05f,
229 UseColorFilter =
true,
233 FilterGreenMax = 255,
237 UseThresholdFilter =
true,
239 UseErosionFilter =
true,
240 UseDiletationFilter =
true
static List< Resolution > CreateDefaultResolutions()
Creates the default resolutions.
Path dependend configuration
Configuration of a scan resulution
Configuration of a turntable
Information Information
Gets the information.
static Arduino CreateDefaultArduinoSettings()
Creates the default arduino settings.
static Motor CreateDefaultMotor()
Creates the default motor.
Class holding configuration to access an arduino
Configuration of a camera
void WriteConfiguration()
Writes the configuration to file.
int SafetyDistance
Gets or sets the safety distance.
static Camera CreateDefaultCamera()
Creates the default camera.
void ReadConfiguration()
Reads the configuration from file.
static Places CreateDefaultPlaces()
Creates the default places.
static Turntable CreateDefaultTurntable()
Creates the default turntable.
Configuration regarding a laser
static Line CreateDefaultVisibleLimits()
Creates the default visible limits.
static Laser CreateDefaultLaser()
Creates the default laser.
FileFormat
File output format
static Filter CreateDefaultFilter()
Creates the default filter.
Class for accessing the configuration.
Precision
Information about the precision of a scan
double Radius
Gets or sets the radius.