diff --git a/GerberLibrary/Artwork Related/SVGWriter.cs b/GerberLibrary/Artwork Related/SVGWriter.cs index a41236f..d77a6ed 100644 --- a/GerberLibrary/Artwork Related/SVGWriter.cs +++ b/GerberLibrary/Artwork Related/SVGWriter.cs @@ -122,9 +122,9 @@ public CompositingMode CompositingMode throw new NotImplementedException(); } } - - public bool Dotted { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } - System.Drawing.Drawing2D.InterpolationMode GraphicsInterface.InterpolationMode { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + bool _Dotted; + public bool Dotted { get { return _Dotted; } set { _Dotted = value; }} + System.Drawing.Drawing2D.InterpolationMode GraphicsInterface.InterpolationMode { get { return System.Drawing.Drawing2D.InterpolationMode.Default; } set {; }} public Color BackgroundColor = Color.White; public List OutputLines = new List(); diff --git a/GerberLibrary/Core/GraphicsInterface.cs b/GerberLibrary/Core/GraphicsInterface.cs index db27d19..2837cd7 100644 --- a/GerberLibrary/Core/GraphicsInterface.cs +++ b/GerberLibrary/Core/GraphicsInterface.cs @@ -165,7 +165,8 @@ public CompositingMode CompositingMode } } - public bool Dotted { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + bool _Dotted = false; + public bool Dotted { get { return _Dotted; } set { _Dotted = value; }} public void DrawRectangle(Color color, float x, float y, float w, float h) { diff --git a/GerberViewer/GLGraphicsInterface.cs b/GerberViewer/GLGraphicsInterface.cs index 3b31bee..1208dec 100644 --- a/GerberViewer/GLGraphicsInterface.cs +++ b/GerberViewer/GLGraphicsInterface.cs @@ -128,9 +128,10 @@ public static Matrix4 Mat4FromMat(System.Drawing.Drawing2D.Matrix inp) } - public CompositingMode CompositingMode { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } - public System.Drawing.Drawing2D.InterpolationMode InterpolationMode { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } - public bool IsFast { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + public CompositingMode CompositingMode { get { return CompositingMode.SourceCopy; } set {; }} + public System.Drawing.Drawing2D.InterpolationMode InterpolationMode { get { return System.Drawing.Drawing2D.InterpolationMode.Default; } set {; } } + + public bool IsFast { get { return true; } set {; } } private System.Drawing.Drawing2D.Matrix trans = new System.Drawing.Drawing2D.Matrix(); public System.Drawing.Drawing2D.Matrix Transform @@ -429,6 +430,11 @@ public void TranslateTransform(float p1, float p2) { } + + public void FillTriangles(List triangles, Color C) + { + throw new NotImplementedException(); + } } @@ -734,7 +740,8 @@ public CompositingMode CompositingMode } } - public bool Dotted { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + bool _Dotted; + public bool Dotted { get { return _Dotted; } set { _Dotted = value; }} public void DrawString(PointD pos, string text, double scale, bool center, float r = 0.2f, float g = 0.2f, float b = 0.2f, float a = 1.0f) { @@ -871,5 +878,10 @@ internal Matrix4 GetGlMatrix() { return Mat4FromMat(trans); } + + public void FillTriangles(List triangles, Color C) + { + throw new NotImplementedException(); + } } }