Simply3DScan
Simple3DScan.UI.ConfigurationControl Class Reference

Configuration of arduino specific values More...

Inheritance diagram for Simple3DScan.UI.ConfigurationControl:
Collaboration diagram for Simple3DScan.UI.ConfigurationControl:

Public Member Functions

 ConfigurationControl ()
 Initializes a new instance of the ConfigurationControl class. More...
 

Protected Member Functions

void ComboBoxCameras_SelectedIndexChanged (object sender, EventArgs e)
 Handles the SelectedIndexChanged event of the ComboBoxCameras control. More...
 
override void Dispose (bool disposing)
 

Package Functions

void Stop ()
 Stops this instance. More...
 
void Start ()
 Starts this instance. More...
 

Detailed Description

Configuration of arduino specific values

Controlf or the configuration

Definition at line 9 of file ConfigurationControl.Arduino.cs.

Constructor & Destructor Documentation

Simple3DScan.UI.ConfigurationControl.ConfigurationControl ( )

Initializes a new instance of the ConfigurationControl class.

Definition at line 22 of file ConfigurationControl.cs.

23  {
24  this.InitializeComponent();
25 
26  this.InitArduinoValues();
27  this.InitCameraValues();
28  this.InitTurnTableValues();
29  this.InitLaserValues();
30  this.InitLimitValues();
31  this.InitPlacesValues();
32  this.InitResolutionValues();
33  this.InitLanguageValues();
34  this.InitFilterValues();
35  }

Member Function Documentation

void Simple3DScan.UI.ConfigurationControl.ComboBoxCameras_SelectedIndexChanged ( object  sender,
EventArgs  e 
)
protected

Handles the SelectedIndexChanged event of the ComboBoxCameras control.

Parameters
senderThe source of the event.
eThe EventArgs instance containing the event data.

Definition at line 78 of file ConfigurationControl.Camera.cs.

79  {
80  if (!this.videoSources.ContainsKey(this.comboBoxCamera.Text))
81  return;
82 
83  this.configuration.Camera.Name = this.comboBoxCamera.Text;
84  this.configuration.Camera.Moniker = this.videoSources[this.comboBoxCamera.Text];
85 
86  this.textBoxMoniker.Text = this.configuration.Camera.Moniker;
87 
88  this.SetMaxFrameSizes(this.configuration.Camera.Moniker);
89  }
override void Simple3DScan.UI.ConfigurationControl.Dispose ( bool  disposing)
protected

Definition at line 39 of file ConfigurationControl.cs.

40  {
41  if (disposing)
42  {
43  this.components?.Dispose();
44  }
45  this.imagingControl.StopImaging();
46 
47  this.DetachArduinoEvents();
48  this.DetachTurntableEvents();
49  this.DetachCameraEvents();
50  this.DetachFilterEvents();
51  this.DetachLaserEvents();
52  this.DetachLimitEvents();
53  this.DetachPlacesEvents();
54 
55  base.Dispose(disposing);
56  }
void StopImaging()
Stops the imaging.
void Simple3DScan.UI.ConfigurationControl.Start ( )
package

Starts this instance.

Definition at line 365 of file ConfigurationControl.Filter.cs.

366  {
367  this.imagingControl.StartImaging(this.configuration.Camera.Name);
368  this.imagingControl.FilterLaser = true;
369  this.imagingControl.ShowLaserLine = true;
370  }
void StartImaging(string source)
Starts the imaging.
Camera Camera
Gets or sets the camera.
Definition: Information.cs:24
string Name
Gets or sets the name.
Definition: Camera.cs:15
bool FilterLaser
Gets a value indicating whether [filter laser].
bool ShowLaserLine
Gets or sets a value indicating whether [show laser line].
void Simple3DScan.UI.ConfigurationControl.Stop ( )
package

Stops this instance.

Definition at line 355 of file ConfigurationControl.Filter.cs.

356  {
357  this.imagingControl.StopImaging();
358  }
void StopImaging()
Stops the imaging.

The documentation for this class was generated from the following files: