Beispiel #1
0
    private void method_26(char A_0, Class639 A_1)
    {
        int num = 9;

        if (A_0 == '%')
        {
            Class631 class2 = this.method_14(BookmarkStart.b("༮㰰㤲㰴", num));
            this.method_4(this.class631_0.method_5(), class2);
            this.method_26(this.class631_0.method_7(), A_1);
            this.method_5();
            A_0 = this.class631_0.method_7();
        }
        else if (A_0 == '(')
        {
            A_1.method_5(this.method_19(A_0, false), AttributeType.ENUMERATION);
        }
        else
        {
            string a = this.method_13(BookmarkStart.b("༮㰰㤲㰴", num));
            if (string.Equals(a, BookmarkStart.b("愮縰朲琴挶瀸琺猼", num), StringComparison.OrdinalIgnoreCase))
            {
                A_0 = this.class631_0.method_19();
                if (A_0 != '(')
                {
                    this.class631_0.method_26(BookmarkStart.b("樮䤰䌲倴吶䴸刺匼堾慀ⵂ⑄⩆ⱈ歊⩌㵎㹐♒╔睖繘獚穜獞䅠Ţၤ፦䥨൪ɬᩮὰᝲ啴偶ɸ䭺|塾", num), A_0);
                }
                A_1.method_5(this.method_19(A_0, true), AttributeType.NOTATION);
            }
            else
            {
                A_1.method_7(a);
            }
        }
    }
Beispiel #2
0
    private void method_24(Dictionary <string, Class639> A_0, char A_1)
    {
        for (char ch = this.class631_0.method_19(); ch != A_1; ch = this.class631_0.method_19())
        {
            switch (ch)
            {
            case '%':
            {
                Class631 class3 = this.method_14(string_5);
                this.method_4(this.class631_0.method_5(), class3);
                this.method_24(A_0, 0xffff);
                this.method_5();
                ch = this.class631_0.method_19();
                break;
            }

            case '-':
                ch = this.method_8();
                break;

            default:
            {
                Class639 class2 = this.method_25(ch);
                A_0.Add(class2.method_0(), class2);
                break;
            }
            }
        }
    }
Beispiel #3
0
        internal override void GetPolylines(
            DrawContext context,
            ILineTypeScaler lineTypeScaler,
            out IList <IList <WW.Cad.Drawing.Polyline2D2N> > polylinesList1,
            out IList <IList <WW.Cad.Drawing.Polyline2D2N> > polylinesList2,
            out IList <FlatShape4D> shapes,
            out bool fill)
        {
            DxfHeader header = context.Model.Header;

            WW.Cad.Drawing.Polyline2D2WN polyline = new Class639(this.DefaultStartWidth, this.DefaultEndWidth).method_0((IVertex2DCollection)this.dxfVertex2DCollection_0, context.Config, this.Closed);
            polylinesList1 = (IList <IList <WW.Cad.Drawing.Polyline2D2N> >) new List <IList <WW.Cad.Drawing.Polyline2D2N> >();
            polylinesList2 = (IList <IList <WW.Cad.Drawing.Polyline2D2N> >) new List <IList <WW.Cad.Drawing.Polyline2D2N> >();
            shapes         = (IList <FlatShape4D>)null;
            fill           = false;
            IList <WW.Cad.Drawing.Polyline2D2N> resultPolylines1;
            IList <WW.Cad.Drawing.Polyline2D2N> resultPolylines2;

            if (polyline != null && DxfUtil.smethod_27(context.Config, polyline, context.Config.ApplyLineType ? this.GetLineType(context) : (DxfLineType)null, context.TotalLineTypeScale * this.LineTypeScale, lineTypeScaler, this.Plinegen, out resultPolylines1, out resultPolylines2, out shapes, out fill))
            {
                polylinesList1.Add(resultPolylines1);
                polylinesList2.Add(resultPolylines2);
                if (shapes != null && shapes.Count == 0)
                {
                    shapes = (IList <FlatShape4D>)null;
                }
            }
            fill &= context.Model.Header.FillMode;
        }
Beispiel #4
0
 public void method_0(string A_0, string A_1, char A_2)
 {
     this.string_0   = A_0;
     this.string_1   = A_1;
     this.char_0     = A_2;
     this.class639_0 = null;
 }
Beispiel #5
0
        internal static void smethod_12(
            DrawContext context,
            IVertex2DCollection vertices,
            bool closed,
            Matrix4D transform,
            double thickness,
            double defaultStartWidth,
            double defaultEndWidth,
            WW.Cad.Drawing.Surface.Geometry geometry)
        {
            bool flag;

            if (flag = defaultStartWidth == 0.0 && defaultEndWidth == 0.0)
            {
                int num = closed ? vertices.Count : vertices.Count - 1;
                for (int index = 0; index < num; ++index)
                {
                    IVertex2D ivertex2D = vertices.GetIVertex2D(index);
                    if (ivertex2D.StartWidth != 0.0 || ivertex2D.EndWidth != 0.0)
                    {
                        flag = false;
                        break;
                    }
                }
            }
            if (flag)
            {
                if (thickness == 0.0)
                {
                    geometry.Add((IPrimitive) new WW.Cad.Drawing.Surface.Polyline2DE(Class639.Class640.smethod_0(vertices, context.Config, closed), transform));
                }
                else
                {
                    geometry.Add((IPrimitive) new WW.Cad.Drawing.Surface.Polyline2D2N(Class639.Class641.smethod_0(vertices, context.Config, closed), transform));
                }
            }
            else if (thickness == 0.0)
            {
                WW.Cad.Drawing.Polyline2D2WN wrappee = new Class639(defaultStartWidth, defaultEndWidth).method_0(vertices, context.Config, closed);
                if (wrappee == null || wrappee.Count <= 0)
                {
                    return;
                }
                geometry.Add((IPrimitive) new WW.Cad.Drawing.Surface.Polyline2D2WN(wrappee, context.Model.Header.FillMode, transform));
            }
            else
            {
                WW.Cad.Drawing.Polyline2D2WN wrappee = new Class639(defaultStartWidth, defaultEndWidth).method_0(vertices, context.Config, closed);
                if (wrappee == null || wrappee.Count <= 0)
                {
                    return;
                }
                geometry.Add((IPrimitive) new WW.Cad.Drawing.Surface.Polyline2D2WN(wrappee, context.Model.Header.FillMode, transform));
            }
        }
Beispiel #6
0
    private void method_27(char A_0, Class639 A_1)
    {
        int num = 4;

        if (A_0 == '%')
        {
            Class631 class2 = this.method_14(BookmarkStart.b("਩Å␭㤯", num));
            this.method_4(this.class631_0.method_5(), class2);
            this.method_27(this.class631_0.method_7(), A_1);
            this.method_5();
            A_0 = this.class631_0.method_7();
        }
        else
        {
            bool flag = true;
            if (A_0 == '#')
            {
                this.class631_0.method_15();
                string str = this.class631_0.method_20(this.stringBuilder_0, BookmarkStart.b("਩Å␭㤯", num), true);
                flag = A_1.method_8(str);
                A_0  = this.class631_0.method_19();
            }
            if (flag)
            {
                if ((A_0 == '\'') || (A_0 == '"'))
                {
                    string str3 = this.class631_0.method_21(this.stringBuilder_0, A_0);
                    A_1.method_2(str3);
                    A_0 = this.class631_0.method_19();
                }
                else
                {
                    string str2 = this.class631_0.method_20(this.stringBuilder_0, BookmarkStart.b("਩Å␭㤯", num), false).ToUpperInvariant();
                    A_1.method_2(str2);
                    A_0 = this.class631_0.method_19();
                }
            }
        }
    }
Beispiel #7
0
    private Class639 method_25(char A_0)
    {
        A_0 = this.class631_0.method_19();
        Class639 class2 = new Class639(this.method_13(BookmarkStart.b("ု㼱㸳㼵", 10)).ToUpperInvariant());

        A_0 = this.class631_0.method_19();
        if (A_0 == '-')
        {
            A_0 = this.method_8();
        }
        this.method_26(A_0, class2);
        A_0 = this.class631_0.method_19();
        if (A_0 == '-')
        {
            A_0 = this.method_8();
        }
        this.method_27(A_0, class2);
        A_0 = this.class631_0.method_19();
        if (A_0 == '-')
        {
            A_0 = this.method_8();
        }
        return(class2);
    }