using GeoSigma.SigmaDrawerStyle; using SigmaDrawerStyle; using System.ComponentModel; using System.Drawing; using System.Xml.Serialization; namespace GeoSigma.SigmaDrawerElement { #pragma warning disable SA1402 // File may only contain a single type #pragma warning disable SA1600 // Elements should be documented #pragma warning disable SA1649 // File name should match first type name public class WellTrackGridStyle { [XmlAttribute("Format")] public string Format { get; set; } [XmlAttribute("Visiable")] public bool Visiable { get; set; } [XmlAttribute("MajorSpace")] public double MajorSpace { get; set; } [XmlAttribute("MinorSpace")] public double MinorSpace { get; set; } [XmlAttribute("IsDrawScale")] public bool IsDrawScale { get; set; } [XmlAttribute("ShowStyle")] public string ShowStyle { get; set; } } public class WellTrackCurveStyle { [XmlAttribute("Color")] public string ColorString { get => ColorTranslator2.ToHtml(Color); set => Color = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color Color { get; set; } [XmlAttribute("Dash")] public string Dash { get; set; } [XmlAttribute("Width")] public double Width { get; set; } [XmlAttribute("Visiable")] public bool Visiable { get; set; } [XmlAttribute("ShowStyle")] public string ShowStyle { get; set; } [XmlAttribute("IsStep")] public bool IsStep { get; set; } } public class WellTrackStickStyle { [XmlAttribute("Color")] public string ColorString { get => ColorTranslator2.ToHtml(Color); set => Color = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color Color { get; set; } [XmlAttribute("Dash")] public string Dash { get; set; } [XmlAttribute("Width")] public double Width { get; set; } [XmlAttribute("Visiable")] public bool Visiable { get; set; } [XmlAttribute("ShowStyle")] public string ShowStyle { get; set; } } public class WellTrackSymbolStyle { [XmlAttribute("Name")] public string Name { get; set; } [XmlAttribute("SizeWidth")] public double SizeWidth { get; set; } [XmlAttribute("ForeColor")] public string ForeColorString { get => ColorTranslator2.ToHtml(ForeColor); set => ForeColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color ForeColor { get; set; } [XmlAttribute("BackColor")] public string BackColorString { get => ColorTranslator2.ToHtml(BackColor); set => BackColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color BackColor { get; set; } } public class WellTrackFillStyle { [XmlAttribute("Mode")] public string Mode { get; set; } [XmlAttribute("BackColor")] public string BackColorString { get => ColorTranslator2.ToHtml(BackColor); set => BackColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color BackColor { get; set; } [XmlAttribute("LayerTrack")] public string LayerTrack { get; set; } [XmlAttribute("SideTrack")] public string SideTrack { get; set; } [XmlAttribute("CurveVisiable")] public bool CurveVisiable { get; set; } [XmlAttribute("Pattern")] public string Pattern { get; set; } [XmlAttribute("Vector")] public string Vector { get; set; } [XmlElement("GradientStyle")] public WellTrackGradientStyle GradientStyle { get; set; } } public class WellTrackGradientStyle { [XmlAttribute("CurveName")] public string CurveName { get; set; } [XmlAttribute("Left")] public double Left { get; set; } [XmlAttribute("Right")] public double Right { get; set; } [XmlAttribute("Mode")] public bool Mode { get; set; } [XmlAttribute("LeftColor")] public string LeftColorString { get => ColorTranslator2.ToHtml(LeftColor); set => LeftColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color LeftColor { get; set; } [XmlAttribute("RightColor")] public string RightColorString { get => ColorTranslator2.ToHtml(RightColor); set => RightColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color RightColor { get; set; } [XmlAttribute("AutoMiddleColor")] public bool AutoMiddleColor { get; set; } [XmlAttribute("MiddleColor")] public string MiddleColorString { get => ColorTranslator2.ToHtml(MiddleColor); set => MiddleColor = ColorTranslator2.FromHtml(value); } [XmlIgnore] public Color MiddleColor { get; set; } public override string ToString() { string rstr= CurveName; return rstr; } } public class WellDepthTrackGridStyle { [XmlAttribute("MajorSpace")] public double MajorSpace { get; set; } [XmlAttribute("MinorSpace")] public double MinorSpace { get; set; } } public class WellDepthTrackCalibrationLine { [XmlAttribute("Color")] public string Color { get; set; } [XmlAttribute("Width")] public double Width { get; set; } [XmlAttribute("Style")] public string Style { get; set; } } public class WellDepthTrackCalibration { [XmlAttribute("Format")] public string Format { get; set; } [XmlAttribute("TextAlign")] public string TextAlign { get; set; } [XmlAttribute("TextColor")] public string TextColor { get; set; } [XmlAttribute("TextSize")] public float TextSize { get; set; } [XmlAttribute("TextFace")] public string TextFace { get; set; } [XmlAttribute("TextHorzVert")] public string TextHorzVert { get; set; } [XmlElement("Major")] public WellDepthTrackCalibrationLine Major { get; set; } [XmlElement("Minor")] public WellDepthTrackCalibrationLine Minor { get; set; } } /// /// xml 映射类 /// public class WellTrackWellTrack { public WellTrackWellTrack() // { bRefreshWorkAreaData = false; } [XmlAttribute("Name")] public string Name { get; set; } [XmlAttribute("Type")] public string Type { get; set; } [XmlAttribute("Width")] public double Width { get; set; } [XmlAttribute("Left")] public double Left { get; set; } [XmlAttribute("Right")] public double Right { get; set; } [XmlAttribute("FillMode")] public string FillMode { get; set; } [XmlAttribute("Mode")] public string Mode { get; set; } [XmlAttribute("HeadMarkPos")] public double HeadMarkPos { get; set; } [XmlAttribute("ShowLine")] public bool ShowLine { get; set; } [XmlAttribute("HeadFill")] public bool HeadFill { get; set; } [XmlAttribute("ShowStyle")] public string ShowStyle { get; set; } [XmlAttribute("ColorSchema")] public string ColorSchema { get; set; } [XmlAttribute("BaseHeight")] public double BaseHeight { get; set; } [XmlAttribute("ColorColumnWidth")] public double ColorColumnWidth { get; set; } [XmlAttribute("IndependOilOccurenceColumn")] public bool IndependOilOccurenceColumn { get; set; } [XmlAttribute("LeftLitho")] public bool LeftLitho { get; set; } [XmlAttribute("LithoDependWidth")] public bool LithoDependWidth { get; set; } [XmlAttribute("NoneColorLitho")] public bool NoneColorLitho { get; set; } [XmlAttribute("NotShowLitho")] public bool NotShowLitho { get; set; } [XmlAttribute("OilOccurenceColumnWidth")] public double OilOccurenceColumnWidth { get; set; } [XmlAttribute("SingleLitho")] public bool SingleLitho { get; set; } [XmlAttribute("BackFill")] public int BackFill { get; set; } [XmlAttribute("BackColor")] public string BackColor { get; set; } [XmlAttribute("GridUnit")] public string GridUnit { get; set; } [XmlAttribute("GridVertDepth")] public bool GridVertDepth { get; set; } [XmlAttribute("LabelType")] public string LabelType { get; set; } [XmlAttribute("ShowLabelUnit")] public bool ShowLabelUnit { get; set; } [XmlElement("Title")] public WellTrackTitle Title { get; set; } [XmlElement("GridStyle")] public WellTrackGridStyle GridStyle { get; set; } [XmlElement("CurveStyle")] public WellTrackCurveStyle CurveStyle { get; set; } [XmlElement("StickStyle")] public WellTrackStickStyle StickStyle { get; set; } [XmlElement("SymbolStyle")] public WellTrackSymbolStyle SymbolStyle { get; set; } [XmlElement("FillStyle")] public WellTrackFillStyle FillStyle { get; set; } [XmlElement("LayerStyle")] public WellLayerStyle LayerStyle { get; set; } [XmlElement("Calibration")] public WellDepthTrackCalibration Calibration { get; set; } [XmlElement("Data")] public WellTrackData Data { get; set; } [XmlElement("FaultPoint")] public FaultPoint faultPoint { get; set; } [XmlElement("CoreSideStyle")] public CoreSideStyle coreSideStyle { get; set; } [XmlIgnore] public bool bRefreshWorkAreaData { get; set; } //修改了属性数据后,是否需要重新刷一下工区数据 } public class CoreSideStyle { [XmlAttribute("Style")] public int Style { get; set; } [XmlAttribute("DataHeight")] public double DataHeight { get; set; } } public class FaultPoint { [XmlAttribute] public string DataTableID { get; set; } [XmlAttribute] public int Enable { get; set; } [XmlAttribute] public float diameter { get; set; } } } #pragma warning restore SA1649 // File name should match first type name #pragma warning restore SA1600 // Elements should be documented #pragma warning restore SA1402 // File may only contain a single type