Exemple #1
0
 public override void DrawInternal(
     DrawContext.Surface context,
     WW.Cad.Drawing.Surface.Graphics graphics,
     IGraphicElementBlock parentGraphicElementBlock)
 {
     this.DrawInternal(context, graphics, parentGraphicElementBlock, 0.0, 2.0 * System.Math.PI);
 }
Exemple #2
0
        protected void DrawInternal(
            DrawContext.Surface context,
            WW.Cad.Drawing.Surface.Graphics graphics,
            IGraphicElementBlock parentGraphicElementBlock,
            double startAngle,
            double endAngle)
        {
            ArgbColor   plotColor     = context.GetPlotColor((DxfEntity)this);
            DxfLineType lineType      = this.GetLineType((DrawContext)context);
            double      lineTypeScale = context.TotalLineTypeScale * this.LineTypeScale;

            if (!graphics.AddExistingGraphicElement2(parentGraphicElementBlock, (DxfEntity)this, plotColor, lineType, lineTypeScale, false))
            {
                return;
            }
            GraphicElement2 graphicElement2 = new GraphicElement2(plotColor, lineType, lineTypeScale, true);

            graphics.AddNewGraphicElement((DxfEntity)this, parentGraphicElementBlock, (GraphicElement1)graphicElement2);
            if (this.double_2 != 0.0)
            {
                graphicElement2.Geometry.Extrusion = this.double_2 * this.vector3D_0;
            }
            WW.Math.Geometry.Polyline3D polyline = this.method_14(context.Config, startAngle, endAngle);
            graphicElement2.Geometry.Add(WW.Cad.Drawing.Surface.Polyline3D.CreatePrimitive(polyline));
        }
Exemple #3
0
        public override void DrawInternal(
            DrawContext.Surface context,
            WW.Cad.Drawing.Surface.Graphics graphics,
            IGraphicElementBlock parentGraphicElementBlock)
        {
            ArgbColor   plotColor     = context.GetPlotColor((DxfEntity)this);
            DxfLineType lineType      = this.GetLineType((DrawContext)context);
            double      lineTypeScale = context.TotalLineTypeScale * this.LineTypeScale;

            if (!graphics.AddExistingGraphicElement2(parentGraphicElementBlock, (DxfEntity)this, plotColor, lineType, lineTypeScale, false))
            {
                return;
            }
            GraphicElement2 graphicElement2 = new GraphicElement2(plotColor, lineType, lineTypeScale, false);

            graphics.AddNewGraphicElement((DxfEntity)this, parentGraphicElementBlock, (GraphicElement1)graphicElement2);
            if (this.double_1 != 0.0)
            {
                graphicElement2.Geometry.Extrusion = this.double_1 * this.vector3D_0;
            }
            graphicElement2.Geometry.Add((IPrimitive) new WW.Cad.Drawing.Surface.Segment(this.point3D_0, this.point3D_1));
        }