Esempio n. 1
0
            public void BeginGeometry(
                DxfEntity entity,
                DrawContext.Wireframe drawContext,
                ArgbColor color,
                bool forText,
                bool fill,
                bool stroke,
                bool correctForBackgroundColor)
            {
                if (this.class453_0 != null)
                {
                    throw new InvalidOperationException("BeginGeometry calls may not be nested.");
                }
                this.class453_0 = new WpfWireframeGraphics3D.Class452.Class453(this.objectTaggerDelegate_0(entity, (DrawContext)drawContext));
                Brush brush = (correctForBackgroundColor ? this.interface11_0 : this.interface11_1).imethod_0(color);

                this.class453_0.Path.Fill = brush;
                if (fill)
                {
                    this.class453_0.Fill = true;
                }
                if (stroke)
                {
                    this.class453_0.Stroke                = true;
                    this.class453_0.Path.Stroke           = brush;
                    this.class453_0.Path.StrokeThickness  = this.method_0(entity, (DrawContext)drawContext, forText);
                    this.class453_0.Path.StrokeMiterLimit = 2.0;
                    if (this.wpfWireframeGraphics3D_0.pathStrokePreparerDelegate_0 != null)
                    {
                        this.wpfWireframeGraphics3D_0.pathStrokePreparerDelegate_0(this.class453_0.Path, entity, (DrawContext)drawContext, forText);
                    }
                }
                this.linkedListNodeRef_0.Insert((Interface37) new Class747((FrameworkElement)this.class453_0.Path));
            }
Esempio n. 2
0
 public void EndGeometry()
 {
     if (this.class453_0 == null)
     {
         throw new InvalidOperationException("There is no current geometry.");
     }
     this.class453_0.method_0();
     this.class453_0 = (WpfWireframeGraphics3D.Class452.Class453)null;
 }