コード例 #1
0
ファイル: DxfPolyline2DBase.cs プロジェクト: 15831944/WW
        public override void DrawInternal(
            DrawContext.Surface context,
            ISurfaceGraphicsFactory graphicsFactory)
        {
            IList <IList <Polyline2D2N> > polylines1;
            IList <IList <Polyline2D2N> > polylines2;
            IList <FlatShape4D>           shapes;
            bool fill;

            this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines1, out polylines2, out shapes, out fill);
            ArgbColor plotColor = context.GetPlotColor((DxfEntity)this);

            graphicsFactory.SetColor(plotColor);
            int count = polylines1.Count;

            for (int index = 0; index < count; ++index)
            {
                IList <Polyline2D2N> polyline2D2NList = polylines1[index];
                IList <Polyline2D2N> polylinesB       = polylines2[index];
                bool flag = this.Thickness != 0.0;
                if (polylinesB == null)
                {
                    if (flag)
                    {
                        Class940.smethod_5((DxfEntity)this, context, graphicsFactory, polyline2D2NList, fill, this.Transform, this.ZAxis, this.Thickness);
                    }
                    else
                    {
                        IList <Polyline3D> polyline3DList = (IList <Polyline3D>) new List <Polyline3D>();
                        DxfUtil.smethod_15(polyline2D2NList, (IList <Polyline2D2N>)null, this.Transform, polyline3DList, false);
                        Class940.smethod_15((DxfEntity)this, context, graphicsFactory, polyline3DList);
                    }
                }
                else if (flag)
                {
                    Class940.smethod_7((DxfEntity)this, context, graphicsFactory, polyline2D2NList, polylinesB, fill, this.Transform, this.ZAxis, this.Thickness);
                }
                else
                {
                    Class940.smethod_10((DxfEntity)this, context, graphicsFactory, polyline2D2NList, polylinesB, this.Transform, this.ZAxis, fill);
                }
                if (shapes != null)
                {
                    Class473 class473 = new Class473((DxfEntity)this, context, graphicsFactory);
                    foreach (FlatShape4D flatShape4D in (IEnumerable <FlatShape4D>)shapes)
                    {
                        class473.DrawPath(flatShape4D.FlatShape, flatShape4D.Transformation, this.Color.ToColor(), (short)0, flatShape4D.IsFilled, false, this.Thickness);
                    }
                }
            }
        }
コード例 #2
0
 public abstract void Visit(Class473 c);
コード例 #3
0
    internal static bool smethod_10(Class857 A_0, DocumentObject A_1, CharacterFormat A_2, Style A_3)
    {
        int num = 3;

        if (!(A_1 is ShapeObject) || (A_1 is ShapeGroup))
        {
            Class396       class3        = A_0.method_11();
            DocumentObject lastParagraph = A_1;
            string         str3          = class3.method_0();
            string         str           = class3.method_1();
            if ((A_1 is Body) && (((str3 == BookmarkStart.b("䴨太䰬堮", num)) && (str == BookmarkStart.b("䠨", num))) || (((((str == BookmarkStart.b("丨", num)) || (str == BookmarkStart.b("䔨䈪䌬䨮", num))) || ((str == BookmarkStart.b("䨨䐪䌬䄮吰倲䄴堶䬸", num)) || (str == BookmarkStart.b("嬨个丬嬮", num)))) || (((str == BookmarkStart.b("䨨䈪弬䰮崰嘲", num)) || (str == BookmarkStart.b("䰨䜪䄬䘮䄰䀲倴", num))) || ((str == BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num)) || (str == BookmarkStart.b("夨䐪䄬嘮嘰尲嬴", num))))) || ((((str == BookmarkStart.b("嬨个䨬娮崰刲䜴ᨶ䤸吺儼䘾♀ⱂ⭄", num)) || (str == BookmarkStart.b("夨䨪夬䜮", num))) || ((str == BookmarkStart.b("夨䨪䨬䨮ᰰ䜲崴䈶吸夺匼帾⡀⽂", num)) || (str == BookmarkStart.b("䐨个䰬尮䐰䄲倴", num)))) || (((str == BookmarkStart.b("䨨䨪崬嬮堰尲嬴", num)) || (str == BookmarkStart.b("娨䠪䠬䄮吰", num))) || (str == BookmarkStart.b("䨨帪帬嬮帰帲ᠴ䐶儸娺䴼娾", num)))))))
            {
                if (A_0.method_36().Count == 0)
                {
                    Body body = (Body)A_1;
                    if (body.LastParagraph == null)
                    {
                        body.method_13(new Paragraph(A_0.method_9()));
                        A_0.method_36().Add(body.LastParagraph);
                    }
                    lastParagraph = (DocumentObject)body.LastParagraph;
                }
                else
                {
                    lastParagraph = (Paragraph)A_0.method_36()[A_0.method_36().Count - 1];
                }
            }
            string key = class3.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_174 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x12);
                    dictionary1.Add(BookmarkStart.b("丨", num), 0);
                    dictionary1.Add(BookmarkStart.b("䠨", num), 1);
                    dictionary1.Add(BookmarkStart.b("伨太䰬䈮吰", num), 2);
                    dictionary1.Add(BookmarkStart.b("䨨䐪䌬嬮䌰尲头", num), 3);
                    dictionary1.Add(BookmarkStart.b("䔨䈪䌬䨮", num), 4);
                    dictionary1.Add(BookmarkStart.b("䨨䐪䌬䄮吰倲䄴堶䬸", num), 5);
                    dictionary1.Add(BookmarkStart.b("嬨个丬嬮", num), 6);
                    dictionary1.Add(BookmarkStart.b("䨨䈪弬䰮崰嘲", num), 7);
                    dictionary1.Add(BookmarkStart.b("䰨䜪䄬䘮䄰䀲倴", num), 8);
                    dictionary1.Add(BookmarkStart.b("䨨帪帬嬮帰帲ᠴ䐶儸娺䴼娾", num), 9);
                    dictionary1.Add(BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num), 10);
                    dictionary1.Add(BookmarkStart.b("夨䐪䄬嘮嘰尲嬴", num), 11);
                    dictionary1.Add(BookmarkStart.b("夨䨪夬䜮", num), 12);
                    dictionary1.Add(BookmarkStart.b("嬨个䨬娮崰刲䜴ᨶ䤸吺儼䘾♀ⱂ⭄", num), 13);
                    dictionary1.Add(BookmarkStart.b("夨䨪䨬䨮ᰰ䜲崴䈶吸夺匼帾⡀⽂", num), 14);
                    dictionary1.Add(BookmarkStart.b("䐨个䰬尮䐰䄲倴", num), 15);
                    dictionary1.Add(BookmarkStart.b("䨨䨪崬嬮堰尲嬴", num), 0x10);
                    dictionary1.Add(BookmarkStart.b("娨䠪䠬䄮吰", num), 0x11);
                    Class1160.dictionary_174 = dictionary1;
                }
                if (Class1160.dictionary_174.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                        Class745.smethod_0(A_0, lastParagraph, A_2);
                        return(true);

                    case 1:
                        return(smethod_11(A_0, lastParagraph));

                    case 2:
                        Class746.smethod_0(A_0, lastParagraph, A_2);
                        return(true);

                    case 3:
                        Class1144.smethod_0(A_0, lastParagraph, A_2, A_3);
                        return(true);

                    case 4:
                        Class244.smethod_0(A_0, lastParagraph, A_2);
                        return(true);

                    case 5:
                        Class245.smethod_0(A_0, lastParagraph, A_2);
                        return(true);

                    case 6:
                        A_0.method_56(true);
                        Class1051.smethod_0(A_0, lastParagraph, A_2);
                        A_0.method_56(false);
                        return(true);

                    case 7:
                    case 8:
                        A_0.method_56(true);
                        Class473.smethod_0(A_0, lastParagraph, A_2);
                        A_0.method_56(false);
                        return(true);

                    case 9:
                    case 10:
                    case 11:
                    {
                        A_0.method_56(true);
                        Class1097 class2 = new Class1097();
                        class2.method_23(class3.method_1() == BookmarkStart.b("夨䐪䄬嘮崰娲嬴制", num));
                        class2.method_0(A_0, lastParagraph, A_2);
                        A_0.method_56(false);
                        return(true);
                    }

                    case 12:
                        A_0.method_56(true);
                        new Class1143().method_0(A_0, lastParagraph, A_2);
                        A_0.method_56(false);
                        return(true);

                    case 14:
                    case 15:
                    case 0x10:
                    case 0x11:
                        return(true);
                    }
                }
            }
        }
        return(false);
    }
コード例 #4
0
 public override void Visit(Class473 c) { }