aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-07-05 10:39:47 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-07-05 10:39:47 +0300
commitfd9cafdc483384d40191b062c69f76466ac04273 (patch)
tree53b82119da45fcb0f8ce3b2cf27c1abc2afd6961 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models
parent93f4cb963fa4ba040809779e60e64fb1161ea50d (diff)
parentb79f7dfdb81f7f9ec838f79093858cf7077dd007 (diff)
downloadTango-fd9cafdc483384d40191b062c69f76466ac04273.tar.gz
Tango-fd9cafdc483384d40191b062c69f76466ac04273.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs
new file mode 100644
index 000000000..fe9ec7e37
--- /dev/null
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.Documents;
+
+namespace Tango.MachineStudio.RML.Models
+{
+ public class ColorLinearizationModel
+ {
+ private class LinearizationDataItem
+ {
+ public double L { get; set; }
+ public double A { get; set; }
+ public double B { get; set; }
+ public int InkPercentage { get; set; }
+ }
+
+ public ColorLinearizationModel()
+ {
+
+ }
+
+ public void GetDataFromFile(string fileName)
+ {
+
+ ExcelReader reader = new ExcelReader(fileName);
+ var items = reader.GetDataByIndex<LinearizationDataItem>("Sheet1", 2);
+ foreach (var item in items)
+ {
+ }
+ reader.Dispose();
+ }
+ }
+}