From 439029c0228ec639013502d4094361f80f836c5d Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Wed, 18 Sep 2019 12:07:19 +0300 Subject: Dropped dependencies of ColorLab module. Implemented ColorConversion view and view model. Refactored Machine Designer "Color Calibration" Tab. --- .../ViewModels/ColorConversionViewVM.cs | 3 - .../Tango.MachineStudio.RML/ViewModels/RgbVM.cs | 2 +- .../Views/CalibrationDataView.xaml | 2 +- .../Views/ColorConversionView.xaml | 1013 ++++++-------------- .../Tango.MachineStudio.RML/Views/RmlView.xaml | 13 +- 5 files changed, 332 insertions(+), 701 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/ColorConversionViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/ColorConversionViewVM.cs index 2624c9b7d..735f75ab0 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/ColorConversionViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/ColorConversionViewVM.cs @@ -174,9 +174,6 @@ namespace Tango.MachineStudio.RML.ViewModels public ColorConversionViewVM(INotificationProvider notification) { _notification = notification; - - // CCT = new Cct(); - SourceColor = new RgbVM(); SourceColor.ColorChanged += SourceColor_ColorChanged; } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/RgbVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/RgbVM.cs index e64592aae..18e6d4fca 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/RgbVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/RgbVM.cs @@ -24,7 +24,7 @@ namespace Tango.MachineStudio.RML.ViewModels _color_change_timer.Tick += _color_change_timer_Tick; _color_change_timer.Stop(); - Color = Colors.DimGray; + _color = Colors.DimGray; } private void _color_change_timer_Tick(object sender, EventArgs e) diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml index 54e96017c..824ed7495 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml @@ -53,7 +53,7 @@ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/ColorConversionView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/ColorConversionView.xaml index ed27c1760..912ec3b0a 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/ColorConversionView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/ColorConversionView.xaml @@ -28,745 +28,370 @@ - - - - - - - - COLOR CONVERSION - - - - - - - - - - - - - - - - - - - - - - - - RGB - LAB + + + + + + + + + + + + + + + + + + + + + + RGB + LAB + + + + + + + Color is out of gamut + + + + - - - - - Color is out of gamut - - - - - - - - - - - - - - + + + + + - - SOURCE / INVERSE - SUGGESTIONS - LIQUID VOLUMES - - - - - - - - - - - + + + + + + + + + + + , - - - - - - - - - - - - - - - - - - R - - - - - - - - - - - - G - - - - - - - - - - - B - - - - - - - - - - - - - L + + + + + + + + + + + + + + + + + + R - - - - - - - A + + + + + + + + + + + G + + + + + + + + + + + B + + + + + + + + + + + + + L - - - - - - - B + + + + + + + A - - - - - - - + + + + + + + B - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - + GAMUT REGION: - - - + + - - - - - Liquid volumes exceeds the maximum range - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - COMPOSITE - - - - - - - - - - - - - - R - - - - - - - - - - - - G - - - - - - - - - - - B - - - - - - - - - - - - - L - - - - - - - - A - - - - - - - - B - - - - - - - - - - - - - - + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/RmlView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/RmlView.xaml index 628b9e402..1e8e55c5d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/RmlView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/RmlView.xaml @@ -147,7 +147,17 @@ - + + + + + + + COLOR CONVERSION + + + + @@ -186,7 +196,6 @@ - -- cgit v1.3.1 From c87fdf91d84a21ea5d1e3824166e11e645bb10ec Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 19 Sep 2019 11:25:37 +0300 Subject: Fixed issue with calibration view flow direction. --- .../Views/CalibrationDataView.xaml | 42 ++++++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml index 824ed7495..f1995283c 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Views/CalibrationDataView.xaml @@ -53,14 +53,50 @@ + + + + + - - + + -- cgit v1.3.1