diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-11-24 23:28:19 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-11-24 23:28:19 +0200 |
| commit | 9e9a565b76877c7bcedd82639c4b5f851196ea90 (patch) | |
| tree | 81e111fa5cd84d48d9b4aadfeaf6cdcf29267c31 /Software/Visual_Studio/Tango.PMR | |
| parent | 331266b13685e16520ae5baa8a7aff50789c31df (diff) | |
| download | Tango-9e9a565b76877c7bcedd82639c4b5f851196ea90.tar.gz Tango-9e9a565b76877c7bcedd82639c4b5f851196ea90.zip | |
Added Extra Inks + Color Blending + MS Handling.
Removed Violet Impl.
Updated Inks LAB.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR')
6 files changed, 101 insertions, 549 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/ColorMeasurement.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/ColorMeasurement.cs deleted file mode 100644 index f11849c1f..000000000 --- a/Software/Visual_Studio/Tango.PMR/ColorLab/ColorMeasurement.cs +++ /dev/null @@ -1,357 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColorMeasurement.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Tango.PMR.ColorLab { - - /// <summary>Holder for reflection information generated from ColorMeasurement.proto</summary> - public static partial class ColorMeasurementReflection { - - #region Descriptor - /// <summary>File descriptor for ColorMeasurement.proto</summary> - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ColorMeasurementReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChZDb2xvck1lYXN1cmVtZW50LnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIi", - "agoQQ29sb3JNZWFzdXJlbWVudBIJCgFDGAEgASgBEgkKAU0YAiABKAESCQoB", - "WRgDIAEoARIJCgFLGAQgASgBEgkKAVYYBSABKAESCQoBTBgKIAEoARIJCgFB", - "GAsgASgBEgkKAUIYDCABKAFCHgocY29tLnR3aW5lLnRhbmdvLnBtci5jb2xv", - "cmxhYmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.ColorMeasurement), global::Tango.PMR.ColorLab.ColorMeasurement.Parser, new[]{ "C", "M", "Y", "K", "V", "L", "A", "B" }, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class ColorMeasurement : pb::IMessage<ColorMeasurement> { - private static readonly pb::MessageParser<ColorMeasurement> _parser = new pb::MessageParser<ColorMeasurement>(() => new ColorMeasurement()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser<ColorMeasurement> Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Tango.PMR.ColorLab.ColorMeasurementReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColorMeasurement() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColorMeasurement(ColorMeasurement other) : this() { - c_ = other.c_; - m_ = other.m_; - y_ = other.y_; - k_ = other.k_; - v_ = other.v_; - l_ = other.l_; - a_ = other.a_; - b_ = other.b_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ColorMeasurement Clone() { - return new ColorMeasurement(this); - } - - /// <summary>Field number for the "C" field.</summary> - public const int CFieldNumber = 1; - private double c_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double C { - get { return c_; } - set { - c_ = value; - } - } - - /// <summary>Field number for the "M" field.</summary> - public const int MFieldNumber = 2; - private double m_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double M { - get { return m_; } - set { - m_ = value; - } - } - - /// <summary>Field number for the "Y" field.</summary> - public const int YFieldNumber = 3; - private double y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Y { - get { return y_; } - set { - y_ = value; - } - } - - /// <summary>Field number for the "K" field.</summary> - public const int KFieldNumber = 4; - private double k_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double K { - get { return k_; } - set { - k_ = value; - } - } - - /// <summary>Field number for the "V" field.</summary> - public const int VFieldNumber = 5; - private double v_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double V { - get { return v_; } - set { - v_ = value; - } - } - - /// <summary>Field number for the "L" field.</summary> - public const int LFieldNumber = 10; - private double l_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double L { - get { return l_; } - set { - l_ = value; - } - } - - /// <summary>Field number for the "A" field.</summary> - public const int AFieldNumber = 11; - private double a_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double A { - get { return a_; } - set { - a_ = value; - } - } - - /// <summary>Field number for the "B" field.</summary> - public const int BFieldNumber = 12; - private double b_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double B { - get { return b_; } - set { - b_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ColorMeasurement); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ColorMeasurement other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (C != other.C) return false; - if (M != other.M) return false; - if (Y != other.Y) return false; - if (K != other.K) return false; - if (V != other.V) return false; - if (L != other.L) return false; - if (A != other.A) return false; - if (B != other.B) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (C != 0D) hash ^= C.GetHashCode(); - if (M != 0D) hash ^= M.GetHashCode(); - if (Y != 0D) hash ^= Y.GetHashCode(); - if (K != 0D) hash ^= K.GetHashCode(); - if (V != 0D) hash ^= V.GetHashCode(); - if (L != 0D) hash ^= L.GetHashCode(); - if (A != 0D) hash ^= A.GetHashCode(); - if (B != 0D) hash ^= B.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (C != 0D) { - output.WriteRawTag(9); - output.WriteDouble(C); - } - if (M != 0D) { - output.WriteRawTag(17); - output.WriteDouble(M); - } - if (Y != 0D) { - output.WriteRawTag(25); - output.WriteDouble(Y); - } - if (K != 0D) { - output.WriteRawTag(33); - output.WriteDouble(K); - } - if (V != 0D) { - output.WriteRawTag(41); - output.WriteDouble(V); - } - if (L != 0D) { - output.WriteRawTag(81); - output.WriteDouble(L); - } - if (A != 0D) { - output.WriteRawTag(89); - output.WriteDouble(A); - } - if (B != 0D) { - output.WriteRawTag(97); - output.WriteDouble(B); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (C != 0D) { - size += 1 + 8; - } - if (M != 0D) { - size += 1 + 8; - } - if (Y != 0D) { - size += 1 + 8; - } - if (K != 0D) { - size += 1 + 8; - } - if (V != 0D) { - size += 1 + 8; - } - if (L != 0D) { - size += 1 + 8; - } - if (A != 0D) { - size += 1 + 8; - } - if (B != 0D) { - size += 1 + 8; - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ColorMeasurement other) { - if (other == null) { - return; - } - if (other.C != 0D) { - C = other.C; - } - if (other.M != 0D) { - M = other.M; - } - if (other.Y != 0D) { - Y = other.Y; - } - if (other.K != 0D) { - K = other.K; - } - if (other.V != 0D) { - V = other.V; - } - if (other.L != 0D) { - L = other.L; - } - if (other.A != 0D) { - A = other.A; - } - if (other.B != 0D) { - B = other.B; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 9: { - C = input.ReadDouble(); - break; - } - case 17: { - M = input.ReadDouble(); - break; - } - case 25: { - Y = input.ReadDouble(); - break; - } - case 33: { - K = input.ReadDouble(); - break; - } - case 41: { - V = input.ReadDouble(); - break; - } - case 81: { - L = input.ReadDouble(); - break; - } - case 89: { - A = input.ReadDouble(); - break; - } - case 97: { - B = input.ReadDouble(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs index 1d85f4c7c..1b6c796c5 100644 --- a/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/ConversionInput.cs @@ -24,29 +24,24 @@ namespace Tango.PMR.ColorLab { string.Concat( "ChVDb252ZXJzaW9uSW5wdXQucHJvdG8SElRhbmdvLlBNUi5Db2xvckxhYhoW", "SW5wdXRDb29yZGluYXRlcy5wcm90bxoQQ29sb3JTcGFjZS5wcm90bxoSUHJv", - "Y2Vzc1JhbmdlLnByb3RvGhRDb252ZXJzaW9uVHlwZS5wcm90bxoWQ29sb3JN", - "ZWFzdXJlbWVudC5wcm90byLYBQoPQ29udmVyc2lvbklucHV0Eg8KB1RocmVh", - "ZEwYASABKAESDwoHVGhyZWFkQRgCIAEoARIPCgdUaHJlYWRCGAMgASgBEjIK", - "CkNvbG9yU3BhY2UYBCABKA4yHi5UYW5nby5QTVIuQ29sb3JMYWIuQ29sb3JT", - "cGFjZRI+ChBJbnB1dENvb3JkaW5hdGVzGAUgASgLMiQuVGFuZ28uUE1SLkNv", - "bG9yTGFiLklucHV0Q29vcmRpbmF0ZXMSEwoLRm9yd2FyZERhdGEYBiABKAwS", - "EwoLSW52ZXJzZURhdGEYByABKAwSFQoNU2VnbWVudExlbmd0aBgIIAEoARIT", - "CgtEZWx0YUNocm9tYRgJIAEoARIOCgZEZWx0YUwYCiABKAESNwoNUHJvY2Vz", - "c1JhbmdlcxgLIAMoCzIgLlRhbmdvLlBNUi5Db2xvckxhYi5Qcm9jZXNzUmFu", - "Z2USFAoMR2VuZXJhdGVIaXZlGAwgASgIEhQKDFVzZUxpZ2h0SW5rcxgNIAEo", - "CBIMCgRWTWF4GA4gASgBEg8KB0diZERhdGEYDyABKAwSDwoHTHViRGF0YRgQ", - "IAEoDBIdChVVc2VMdWJyaWNhbnRUcmFuc2Zvcm0YESABKAgSOgoOQ29udmVy", - "c2lvblR5cGUYEiABKA4yIi5UYW5nby5QTVIuQ29sb3JMYWIuQ29udmVyc2lv", - "blR5cGUSGwoTQ01ZS1ZQcmVkaWN0aW9uVHlwZRgTIAEoBRIdChVDTVlLVlBy", - "ZWRpY3Rpb25NZXRob2QYFCABKAUSGgoSQ01ZS1ZIdWVUaHJlc2hob2xkGBUg", - "ASgBEg8KB0NNWUtWX0sYFiABKAESHgoWU2ltcGxlUkdCUHJldmlld0ZhY3Rv", - "chgXIAEoARI/ChFDb2xvck1lYXN1cmVtZW50cxgYIAMoCzIkLlRhbmdvLlBN", - "Ui5Db2xvckxhYi5Db2xvck1lYXN1cmVtZW50Qh4KHGNvbS50d2luZS50YW5n", - "by5wbXIuY29sb3JsYWJiBnByb3RvMw==")); + "Y2Vzc1JhbmdlLnByb3RvGhRDb252ZXJzaW9uVHlwZS5wcm90byKOBAoPQ29u", + "dmVyc2lvbklucHV0Eg8KB1RocmVhZEwYASABKAESDwoHVGhyZWFkQRgCIAEo", + "ARIPCgdUaHJlYWRCGAMgASgBEjIKCkNvbG9yU3BhY2UYBCABKA4yHi5UYW5n", + "by5QTVIuQ29sb3JMYWIuQ29sb3JTcGFjZRI+ChBJbnB1dENvb3JkaW5hdGVz", + "GAUgASgLMiQuVGFuZ28uUE1SLkNvbG9yTGFiLklucHV0Q29vcmRpbmF0ZXMS", + "EwoLRm9yd2FyZERhdGEYBiABKAwSEwoLSW52ZXJzZURhdGEYByABKAwSFQoN", + "U2VnbWVudExlbmd0aBgIIAEoARITCgtEZWx0YUNocm9tYRgJIAEoARIOCgZE", + "ZWx0YUwYCiABKAESNwoNUHJvY2Vzc1JhbmdlcxgLIAMoCzIgLlRhbmdvLlBN", + "Ui5Db2xvckxhYi5Qcm9jZXNzUmFuZ2USFAoMR2VuZXJhdGVIaXZlGAwgASgI", + "EhQKDFVzZUxpZ2h0SW5rcxgNIAEoCBIMCgRWTWF4GA4gASgBEg8KB0diZERh", + "dGEYDyABKAwSDwoHTHViRGF0YRgQIAEoDBIdChVVc2VMdWJyaWNhbnRUcmFu", + "c2Zvcm0YESABKAgSOgoOQ29udmVyc2lvblR5cGUYEiABKA4yIi5UYW5nby5Q", + "TVIuQ29sb3JMYWIuQ29udmVyc2lvblR5cGVCHgocY29tLnR3aW5lLnRhbmdv", + "LnBtci5jb2xvcmxhYmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.InputCoordinatesReflection.Descriptor, global::Tango.PMR.ColorLab.ColorSpaceReflection.Descriptor, global::Tango.PMR.ColorLab.ProcessRangeReflection.Descriptor, global::Tango.PMR.ColorLab.ConversionTypeReflection.Descriptor, global::Tango.PMR.ColorLab.ColorMeasurementReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.InputCoordinatesReflection.Descriptor, global::Tango.PMR.ColorLab.ColorSpaceReflection.Descriptor, global::Tango.PMR.ColorLab.ProcessRangeReflection.Descriptor, global::Tango.PMR.ColorLab.ConversionTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.ConversionInput), global::Tango.PMR.ColorLab.ConversionInput.Parser, new[]{ "ThreadL", "ThreadA", "ThreadB", "ColorSpace", "InputCoordinates", "ForwardData", "InverseData", "SegmentLength", "DeltaChroma", "DeltaL", "ProcessRanges", "GenerateHive", "UseLightInks", "VMax", "GbdData", "LubData", "UseLubricantTransform", "ConversionType", "CMYKVPredictionType", "CMYKVPredictionMethod", "CMYKVHueThreshhold", "CMYKVK", "SimpleRGBPreviewFactor", "ColorMeasurements" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.ConversionInput), global::Tango.PMR.ColorLab.ConversionInput.Parser, new[]{ "ThreadL", "ThreadA", "ThreadB", "ColorSpace", "InputCoordinates", "ForwardData", "InverseData", "SegmentLength", "DeltaChroma", "DeltaL", "ProcessRanges", "GenerateHive", "UseLightInks", "VMax", "GbdData", "LubData", "UseLubricantTransform", "ConversionType" }, null, null, null) })); } #endregion @@ -95,12 +90,6 @@ namespace Tango.PMR.ColorLab { lubData_ = other.lubData_; useLubricantTransform_ = other.useLubricantTransform_; conversionType_ = other.conversionType_; - cMYKVPredictionType_ = other.cMYKVPredictionType_; - cMYKVPredictionMethod_ = other.cMYKVPredictionMethod_; - cMYKVHueThreshhold_ = other.cMYKVHueThreshhold_; - cMYKVK_ = other.cMYKVK_; - simpleRGBPreviewFactor_ = other.simpleRGBPreviewFactor_; - colorMeasurements_ = other.colorMeasurements_.Clone(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -305,71 +294,6 @@ namespace Tango.PMR.ColorLab { } } - /// <summary>Field number for the "CMYKVPredictionType" field.</summary> - public const int CMYKVPredictionTypeFieldNumber = 19; - private int cMYKVPredictionType_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CMYKVPredictionType { - get { return cMYKVPredictionType_; } - set { - cMYKVPredictionType_ = value; - } - } - - /// <summary>Field number for the "CMYKVPredictionMethod" field.</summary> - public const int CMYKVPredictionMethodFieldNumber = 20; - private int cMYKVPredictionMethod_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CMYKVPredictionMethod { - get { return cMYKVPredictionMethod_; } - set { - cMYKVPredictionMethod_ = value; - } - } - - /// <summary>Field number for the "CMYKVHueThreshhold" field.</summary> - public const int CMYKVHueThreshholdFieldNumber = 21; - private double cMYKVHueThreshhold_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double CMYKVHueThreshhold { - get { return cMYKVHueThreshhold_; } - set { - cMYKVHueThreshhold_ = value; - } - } - - /// <summary>Field number for the "CMYKV_K" field.</summary> - public const int CMYKVKFieldNumber = 22; - private double cMYKVK_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double CMYKVK { - get { return cMYKVK_; } - set { - cMYKVK_ = value; - } - } - - /// <summary>Field number for the "SimpleRGBPreviewFactor" field.</summary> - public const int SimpleRGBPreviewFactorFieldNumber = 23; - private double simpleRGBPreviewFactor_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double SimpleRGBPreviewFactor { - get { return simpleRGBPreviewFactor_; } - set { - simpleRGBPreviewFactor_ = value; - } - } - - /// <summary>Field number for the "ColorMeasurements" field.</summary> - public const int ColorMeasurementsFieldNumber = 24; - private static readonly pb::FieldCodec<global::Tango.PMR.ColorLab.ColorMeasurement> _repeated_colorMeasurements_codec - = pb::FieldCodec.ForMessage(194, global::Tango.PMR.ColorLab.ColorMeasurement.Parser); - private readonly pbc::RepeatedField<global::Tango.PMR.ColorLab.ColorMeasurement> colorMeasurements_ = new pbc::RepeatedField<global::Tango.PMR.ColorLab.ColorMeasurement>(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField<global::Tango.PMR.ColorLab.ColorMeasurement> ColorMeasurements { - get { return colorMeasurements_; } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ConversionInput); @@ -401,12 +325,6 @@ namespace Tango.PMR.ColorLab { if (LubData != other.LubData) return false; if (UseLubricantTransform != other.UseLubricantTransform) return false; if (ConversionType != other.ConversionType) return false; - if (CMYKVPredictionType != other.CMYKVPredictionType) return false; - if (CMYKVPredictionMethod != other.CMYKVPredictionMethod) return false; - if (CMYKVHueThreshhold != other.CMYKVHueThreshhold) return false; - if (CMYKVK != other.CMYKVK) return false; - if (SimpleRGBPreviewFactor != other.SimpleRGBPreviewFactor) return false; - if(!colorMeasurements_.Equals(other.colorMeasurements_)) return false; return true; } @@ -431,12 +349,6 @@ namespace Tango.PMR.ColorLab { if (LubData.Length != 0) hash ^= LubData.GetHashCode(); if (UseLubricantTransform != false) hash ^= UseLubricantTransform.GetHashCode(); if (ConversionType != 0) hash ^= ConversionType.GetHashCode(); - if (CMYKVPredictionType != 0) hash ^= CMYKVPredictionType.GetHashCode(); - if (CMYKVPredictionMethod != 0) hash ^= CMYKVPredictionMethod.GetHashCode(); - if (CMYKVHueThreshhold != 0D) hash ^= CMYKVHueThreshhold.GetHashCode(); - if (CMYKVK != 0D) hash ^= CMYKVK.GetHashCode(); - if (SimpleRGBPreviewFactor != 0D) hash ^= SimpleRGBPreviewFactor.GetHashCode(); - hash ^= colorMeasurements_.GetHashCode(); return hash; } @@ -516,27 +428,6 @@ namespace Tango.PMR.ColorLab { output.WriteRawTag(144, 1); output.WriteEnum((int) ConversionType); } - if (CMYKVPredictionType != 0) { - output.WriteRawTag(152, 1); - output.WriteInt32(CMYKVPredictionType); - } - if (CMYKVPredictionMethod != 0) { - output.WriteRawTag(160, 1); - output.WriteInt32(CMYKVPredictionMethod); - } - if (CMYKVHueThreshhold != 0D) { - output.WriteRawTag(169, 1); - output.WriteDouble(CMYKVHueThreshhold); - } - if (CMYKVK != 0D) { - output.WriteRawTag(177, 1); - output.WriteDouble(CMYKVK); - } - if (SimpleRGBPreviewFactor != 0D) { - output.WriteRawTag(185, 1); - output.WriteDouble(SimpleRGBPreviewFactor); - } - colorMeasurements_.WriteTo(output, _repeated_colorMeasurements_codec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -594,22 +485,6 @@ namespace Tango.PMR.ColorLab { if (ConversionType != 0) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionType); } - if (CMYKVPredictionType != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(CMYKVPredictionType); - } - if (CMYKVPredictionMethod != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(CMYKVPredictionMethod); - } - if (CMYKVHueThreshhold != 0D) { - size += 2 + 8; - } - if (CMYKVK != 0D) { - size += 2 + 8; - } - if (SimpleRGBPreviewFactor != 0D) { - size += 2 + 8; - } - size += colorMeasurements_.CalculateSize(_repeated_colorMeasurements_codec); return size; } @@ -673,22 +548,6 @@ namespace Tango.PMR.ColorLab { if (other.ConversionType != 0) { ConversionType = other.ConversionType; } - if (other.CMYKVPredictionType != 0) { - CMYKVPredictionType = other.CMYKVPredictionType; - } - if (other.CMYKVPredictionMethod != 0) { - CMYKVPredictionMethod = other.CMYKVPredictionMethod; - } - if (other.CMYKVHueThreshhold != 0D) { - CMYKVHueThreshhold = other.CMYKVHueThreshhold; - } - if (other.CMYKVK != 0D) { - CMYKVK = other.CMYKVK; - } - if (other.SimpleRGBPreviewFactor != 0D) { - SimpleRGBPreviewFactor = other.SimpleRGBPreviewFactor; - } - colorMeasurements_.Add(other.colorMeasurements_); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -774,30 +633,6 @@ namespace Tango.PMR.ColorLab { conversionType_ = (global::Tango.PMR.ColorLab.ConversionType) input.ReadEnum(); break; } - case 152: { - CMYKVPredictionType = input.ReadInt32(); - break; - } - case 160: { - CMYKVPredictionMethod = input.ReadInt32(); - break; - } - case 169: { - CMYKVHueThreshhold = input.ReadDouble(); - break; - } - case 177: { - CMYKVK = input.ReadDouble(); - break; - } - case 185: { - SimpleRGBPreviewFactor = input.ReadDouble(); - break; - } - case 194: { - colorMeasurements_.AddEntriesFrom(input, _repeated_colorMeasurements_codec); - break; - } } } } diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs index f45261825..c5e4e85d5 100644 --- a/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs @@ -23,16 +23,17 @@ namespace Tango.PMR.ColorLab { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChFJbnB1dExpcXVpZC5wcm90bxISVGFuZ28uUE1SLkNvbG9yTGFiGhBMaXF1", - "aWRUeXBlLnByb3RvGhVDYWxpYnJhdGlvbkRhdGEucHJvdG8isgEKC0lucHV0", + "aWRUeXBlLnByb3RvGhVDYWxpYnJhdGlvbkRhdGEucHJvdG8i1QEKC0lucHV0", "TGlxdWlkEjIKCkxpcXVpZFR5cGUYASABKA4yHi5UYW5nby5QTVIuQ29sb3JM", "YWIuTGlxdWlkVHlwZRI8Cg9DYWxpYnJhdGlvbkRhdGEYAiABKAsyIy5UYW5n", "by5QTVIuQ29sb3JMYWIuQ2FsaWJyYXRpb25EYXRhEiEKGU1heE5hbm9saXRl", - "clBlckNlbnRpbWV0ZXIYAyABKAESDgoGVm9sdW1lGAQgASgBQh4KHGNvbS50", - "d2luZS50YW5nby5wbXIuY29sb3JsYWJiBnByb3RvMw==")); + "clBlckNlbnRpbWV0ZXIYAyABKAESDgoGVm9sdW1lGAQgASgBEhIKCklzRXh0", + "cmFJbmsYBSABKAgSDQoFQ29sb3IYBiABKAVCHgocY29tLnR3aW5lLnRhbmdv", + "LnBtci5jb2xvcmxhYmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.LiquidTypeReflection.Descriptor, global::Tango.PMR.ColorLab.CalibrationDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.InputLiquid), global::Tango.PMR.ColorLab.InputLiquid.Parser, new[]{ "LiquidType", "CalibrationData", "MaxNanoliterPerCentimeter", "Volume" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.InputLiquid), global::Tango.PMR.ColorLab.InputLiquid.Parser, new[]{ "LiquidType", "CalibrationData", "MaxNanoliterPerCentimeter", "Volume", "IsExtraInk", "Color" }, null, null, null) })); } #endregion @@ -67,6 +68,8 @@ namespace Tango.PMR.ColorLab { CalibrationData = other.calibrationData_ != null ? other.CalibrationData.Clone() : null; maxNanoliterPerCentimeter_ = other.maxNanoliterPerCentimeter_; volume_ = other.volume_; + isExtraInk_ = other.isExtraInk_; + color_ = other.color_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -118,6 +121,28 @@ namespace Tango.PMR.ColorLab { } } + /// <summary>Field number for the "IsExtraInk" field.</summary> + public const int IsExtraInkFieldNumber = 5; + private bool isExtraInk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsExtraInk { + get { return isExtraInk_; } + set { + isExtraInk_ = value; + } + } + + /// <summary>Field number for the "Color" field.</summary> + public const int ColorFieldNumber = 6; + private int color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Color { + get { return color_; } + set { + color_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as InputLiquid); @@ -135,6 +160,8 @@ namespace Tango.PMR.ColorLab { if (!object.Equals(CalibrationData, other.CalibrationData)) return false; if (MaxNanoliterPerCentimeter != other.MaxNanoliterPerCentimeter) return false; if (Volume != other.Volume) return false; + if (IsExtraInk != other.IsExtraInk) return false; + if (Color != other.Color) return false; return true; } @@ -145,6 +172,8 @@ namespace Tango.PMR.ColorLab { if (calibrationData_ != null) hash ^= CalibrationData.GetHashCode(); if (MaxNanoliterPerCentimeter != 0D) hash ^= MaxNanoliterPerCentimeter.GetHashCode(); if (Volume != 0D) hash ^= Volume.GetHashCode(); + if (IsExtraInk != false) hash ^= IsExtraInk.GetHashCode(); + if (Color != 0) hash ^= Color.GetHashCode(); return hash; } @@ -171,6 +200,14 @@ namespace Tango.PMR.ColorLab { output.WriteRawTag(33); output.WriteDouble(Volume); } + if (IsExtraInk != false) { + output.WriteRawTag(40); + output.WriteBool(IsExtraInk); + } + if (Color != 0) { + output.WriteRawTag(48); + output.WriteInt32(Color); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -188,6 +225,12 @@ namespace Tango.PMR.ColorLab { if (Volume != 0D) { size += 1 + 8; } + if (IsExtraInk != false) { + size += 1 + 1; + } + if (Color != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Color); + } return size; } @@ -211,6 +254,12 @@ namespace Tango.PMR.ColorLab { if (other.Volume != 0D) { Volume = other.Volume; } + if (other.IsExtraInk != false) { + IsExtraInk = other.IsExtraInk; + } + if (other.Color != 0) { + Color = other.Color; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -240,6 +289,14 @@ namespace Tango.PMR.ColorLab { Volume = input.ReadDouble(); break; } + case 40: { + IsExtraInk = input.ReadBool(); + break; + } + case 48: { + Color = input.ReadInt32(); + break; + } } } } diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs index 9bfbcd947..94d2f20b3 100644 --- a/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs @@ -22,12 +22,14 @@ namespace Tango.PMR.ColorLab { static LiquidTypeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChBMaXF1aWRUeXBlLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIqqAEKCkxp", + "ChBMaXF1aWRUeXBlLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIqhQIKCkxp", "cXVpZFR5cGUSCAoEQ3lhbhAAEgsKB01hZ2VudGEQARIKCgZZZWxsb3cQAhIJ", "CgVCbGFjaxADEhIKDlRyYW5zcGFyZW50SW5rEAQSDQoJTHVicmljYW50EAUS", "CwoHQ2xlYW5lchAGEg0KCUxpZ2h0Q3lhbhAHEhAKDExpZ2h0TWFnZW50YRAI", - "Eg8KC0xpZ2h0WWVsbG93EAkSCgoGVmlvbGV0EApCHgocY29tLnR3aW5lLnRh", - "bmdvLnBtci5jb2xvcmxhYmIGcHJvdG8z")); + "Eg8KC0xpZ2h0WWVsbG93EAkSCgoGVmlvbGV0EAoSCAoEQmx1ZRALEg0KCUxp", + "Z2h0Qmx1ZRAMEgoKBk9yYW5nZRANEg8KC0xpZ2h0T3JhbmdlEA4SCgoGUnVi", + "aW5lEA8SDwoLTGlnaHRSdWJpbmUQEBIICgROYXZ5EBFCHgocY29tLnR3aW5l", + "LnRhbmdvLnBtci5jb2xvcmxhYmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.ColorLab.LiquidType), }, null)); @@ -48,6 +50,13 @@ namespace Tango.PMR.ColorLab { [pbr::OriginalName("LightMagenta")] LightMagenta = 8, [pbr::OriginalName("LightYellow")] LightYellow = 9, [pbr::OriginalName("Violet")] Violet = 10, + [pbr::OriginalName("Blue")] Blue = 11, + [pbr::OriginalName("LightBlue")] LightBlue = 12, + [pbr::OriginalName("Orange")] Orange = 13, + [pbr::OriginalName("LightOrange")] LightOrange = 14, + [pbr::OriginalName("Rubine")] Rubine = 15, + [pbr::OriginalName("LightRubine")] LightRubine = 16, + [pbr::OriginalName("Navy")] Navy = 17, } #endregion diff --git a/Software/Visual_Studio/Tango.PMR/Printing/DispenserLiquidType.cs b/Software/Visual_Studio/Tango.PMR/Printing/DispenserLiquidType.cs index 7b03045ec..fb3b5820c 100644 --- a/Software/Visual_Studio/Tango.PMR/Printing/DispenserLiquidType.cs +++ b/Software/Visual_Studio/Tango.PMR/Printing/DispenserLiquidType.cs @@ -23,11 +23,13 @@ namespace Tango.PMR.Printing { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChlEaXNwZW5zZXJMaXF1aWRUeXBlLnByb3RvEhJUYW5nby5QTVIuUHJpbnRp", - "bmcqsQEKE0Rpc3BlbnNlckxpcXVpZFR5cGUSCAoEQ3lhbhAAEgsKB01hZ2Vu", + "bmcqjgIKE0Rpc3BlbnNlckxpcXVpZFR5cGUSCAoEQ3lhbhAAEgsKB01hZ2Vu", "dGEQARIKCgZZZWxsb3cQAhIJCgVCbGFjaxADEhIKDlRyYW5zcGFyZW50SW5r", "EAQSDQoJTHVicmljYW50EAUSCwoHQ2xlYW5lchAGEg0KCUxpZ2h0Q3lhbhAH", "EhAKDExpZ2h0TWFnZW50YRAIEg8KC0xpZ2h0WWVsbG93EAkSCgoGVmlvbGV0", - "EApCHgocY29tLnR3aW5lLnRhbmdvLnBtci5wcmludGluZ2IGcHJvdG8z")); + "EAoSCAoEQmx1ZRALEg0KCUxpZ2h0Qmx1ZRAMEgoKBk9yYW5nZRANEg8KC0xp", + "Z2h0T3JhbmdlEA4SCgoGUnViaW5lEA8SDwoLTGlnaHRSdWJpbmUQEBIICgRO", + "YXZ5EBFCHgocY29tLnR3aW5lLnRhbmdvLnBtci5wcmludGluZ2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Printing.DispenserLiquidType), }, null)); @@ -48,6 +50,13 @@ namespace Tango.PMR.Printing { [pbr::OriginalName("LightMagenta")] LightMagenta = 8, [pbr::OriginalName("LightYellow")] LightYellow = 9, [pbr::OriginalName("Violet")] Violet = 10, + [pbr::OriginalName("Blue")] Blue = 11, + [pbr::OriginalName("LightBlue")] LightBlue = 12, + [pbr::OriginalName("Orange")] Orange = 13, + [pbr::OriginalName("LightOrange")] LightOrange = 14, + [pbr::OriginalName("Rubine")] Rubine = 15, + [pbr::OriginalName("LightRubine")] LightRubine = 16, + [pbr::OriginalName("Navy")] Navy = 17, } #endregion diff --git a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj index bd2c306f8..b5ea1877c 100644 --- a/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj +++ b/Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj @@ -56,7 +56,6 @@ <Compile Include="ColorLab\CalibrationMeasurement.cs" /> <Compile Include="ColorLab\CalibrationOutput.cs" /> <Compile Include="ColorLab\CalibrationPoint.cs" /> - <Compile Include="ColorLab\ColorMeasurement.cs" /> <Compile Include="ColorLab\ColorSpace.cs" /> <Compile Include="ColorLab\ConversionInput.cs" /> <Compile Include="ColorLab\ConversionOutput.cs" /> @@ -528,7 +527,7 @@ </PropertyGroup> <ProjectExtensions> <VisualStudio> - <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" /> + <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" /> </VisualStudio> </ProjectExtensions> </Project>
\ No newline at end of file |
