Esempio n. 1
0
        internal override void Read(Class434 or, Class259 objectBuilder)
        {
            base.Read(or, objectBuilder);
            Interface30 objectBitStream = or.ObjectBitStream;

            if (or.Builder.Version > DxfVersion.Dxf21)
            {
                this.short_0 = objectBitStream.imethod_14();
            }
            this.contentType_0      = (MLeader.ContentType)objectBitStream.imethod_14();
            this.drawMLeaderOrder_0 = (MLeader.DrawMLeaderOrder)objectBitStream.imethod_14();
            this.drawLeaderOrder_0  = (MLeader.DrawLeaderOrder)objectBitStream.imethod_14();
            this.int_0        = objectBitStream.imethod_11();
            this.double_0     = objectBitStream.imethod_8();
            this.double_1     = objectBitStream.imethod_8();
            this.leaderType_0 = (MLeader.LeaderType)objectBitStream.imethod_14();
            this.color_0      = objectBitStream.imethod_22();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
            this.int_1    = objectBitStream.imethod_11();
            this.bool_0   = objectBitStream.imethod_6();
            this.double_2 = objectBitStream.imethod_8();
            this.bool_1   = objectBitStream.imethod_6();
            this.double_3 = objectBitStream.imethod_8();
            this.string_0 = objectBitStream.ReadString();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_4 = o));
            this.double_4 = objectBitStream.imethod_8();
            this.string_1 = objectBitStream.ReadString();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_5 = o));
            this.textAttachment_0 = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAttachment_1 = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAngleType_0  = (MLeader.TextAngleType)objectBitStream.imethod_14();
            this.textAlignment_0  = (MLeader.TextAlignment)objectBitStream.imethod_14();
            this.color_1          = objectBitStream.imethod_22();
            this.double_5         = objectBitStream.imethod_8();
            this.bool_2           = objectBitStream.imethod_6();
            this.bool_3           = objectBitStream.imethod_6();
            this.double_6         = objectBitStream.imethod_8();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_6 = o));
            this.color_2               = objectBitStream.imethod_22();
            this.vector3D_0            = objectBitStream.imethod_51();
            this.bool_4                = objectBitStream.imethod_6();
            this.double_7              = objectBitStream.imethod_8();
            this.bool_5                = objectBitStream.imethod_6();
            this.blockConnectionType_0 = (MLeader.BlockConnectionType)objectBitStream.imethod_14();
            this.double_8              = objectBitStream.imethod_8();
            this.bool_7                = objectBitStream.imethod_6();
            this.bool_6                = objectBitStream.imethod_6();
            this.double_9              = objectBitStream.imethod_8();
            if (or.Builder.Version > DxfVersion.Dxf21)
            {
                this.textAttachmentDirection_0 = (MLeader.TextAttachmentDirection)objectBitStream.imethod_14();
                this.textAttachment_3          = (MLeader.TextAttachment)objectBitStream.imethod_14();
                this.textAttachment_2          = (MLeader.TextAttachment)objectBitStream.imethod_14();
            }
            if (or.Builder.Version <= DxfVersion.Dxf24)
            {
                return;
            }
            this.bool_8 = objectBitStream.imethod_6();
        }
Esempio n. 2
0
 private void method_8(CloneContext context, DxfMLeaderStyle from)
 {
     this.contentType_0      = from.contentType_0;
     this.drawMLeaderOrder_0 = from.drawMLeaderOrder_0;
     this.drawLeaderOrder_0  = from.drawLeaderOrder_0;
     this.int_0                     = from.int_0;
     this.double_0                  = from.double_0;
     this.double_1                  = from.double_1;
     this.leaderType_0              = from.leaderType_0;
     this.color_0                   = from.color_0;
     this.LineType                  = Class906.GetLineType(context, from.LineType);
     this.int_1                     = from.int_1;
     this.bool_0                    = from.bool_0;
     this.double_2                  = from.double_2;
     this.bool_1                    = from.bool_1;
     this.double_3                  = from.double_3;
     this.string_0                  = from.string_0;
     this.ArrowHeadBlock            = Class906.smethod_0(context, from.ArrowHeadBlock, false);
     this.double_4                  = from.double_4;
     this.string_1                  = from.string_1;
     this.TextStyle                 = Class906.GetTextStyle(context, from.TextStyle);
     this.textAttachment_0          = from.textAttachment_0;
     this.textAngleType_0           = from.textAngleType_0;
     this.textAlignment_0           = from.textAlignment_0;
     this.textAttachment_1          = from.textAttachment_1;
     this.color_1                   = from.color_1;
     this.double_5                  = from.double_5;
     this.bool_2                    = from.bool_2;
     this.bool_3                    = from.bool_3;
     this.double_6                  = from.double_6;
     this.Block                     = Class906.smethod_0(context, from.Block, false);
     this.color_2                   = from.color_2;
     this.vector3D_0                = from.vector3D_0;
     this.bool_4                    = from.bool_4;
     this.double_7                  = from.double_7;
     this.bool_5                    = from.bool_5;
     this.blockConnectionType_0     = from.blockConnectionType_0;
     this.double_8                  = from.double_8;
     this.bool_6                    = from.bool_6;
     this.bool_7                    = from.bool_7;
     this.double_9                  = from.double_9;
     this.textAttachmentDirection_0 = from.textAttachmentDirection_0;
     this.textAttachment_2          = from.textAttachment_2;
     this.textAttachment_3          = from.textAttachment_3;
     this.bool_8                    = from.bool_8;
 }
Esempio n. 3
0
        private bool method_10(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 3:
                this.string_0 = (string)r.CurrentGroup.Value;
                break;

            case 40:
                this.double_0 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 41:
                this.double_1 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 42:
                this.double_2 = (double)r.CurrentGroup.Value;
                break;

            case 43:
                this.double_3 = (double)r.CurrentGroup.Value;
                break;

            case 44:
                this.double_4 = (double)r.CurrentGroup.Value;
                break;

            case 45:
                this.double_5 = (double)r.CurrentGroup.Value;
                break;

            case 46:
                this.double_6 = (double)r.CurrentGroup.Value;
                break;

            case 47:
                this.vector3D_0.X = (double)r.CurrentGroup.Value;
                break;

            case 49:
                this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                break;

            case 90:
                this.int_0 = (int)r.CurrentGroup.Value;
                break;

            case 91:
                this.color_0 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 92:
                this.int_1 = (int)r.CurrentGroup.Value;
                break;

            case 93:
                this.color_1 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 94:
                this.color_2 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 140:
                this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                break;

            case 141:
                this.double_7 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 142:
                this.double_8 = (double)r.CurrentGroup.Value;
                break;

            case 143:
                this.double_9 = (double)r.CurrentGroup.Value;
                break;

            case 170:
                this.contentType_0 = (MLeader.ContentType)r.CurrentGroup.Value;
                break;

            case 171:
                this.drawMLeaderOrder_0 = (MLeader.DrawMLeaderOrder)r.CurrentGroup.Value;
                break;

            case 172:
                this.drawLeaderOrder_0 = (MLeader.DrawLeaderOrder)r.CurrentGroup.Value;
                break;

            case 173:
                this.leaderType_0 = (MLeader.LeaderType)r.CurrentGroup.Value;
                break;

            case 174:
                this.textAttachment_0 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 175:
                this.textAngleType_0 = (MLeader.TextAngleType)r.CurrentGroup.Value;
                break;

            case 176:
                this.textAlignment_0 = (MLeader.TextAlignment)r.CurrentGroup.Value;
                break;

            case 177:
                this.blockConnectionType_0 = (MLeader.BlockConnectionType)r.CurrentGroup.Value;
                break;

            case 178:
                this.textAttachment_1 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 179:
                this.short_0 = (short)r.CurrentGroup.Value;
                break;

            case 271:
                this.textAttachmentDirection_0 = (MLeader.TextAttachmentDirection)r.CurrentGroup.Value;
                break;

            case 272:
                this.textAttachment_2 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 273:
                this.textAttachment_3 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 290:
                this.bool_0 = (bool)r.CurrentGroup.Value;
                break;

            case 291:
                this.bool_1 = (bool)r.CurrentGroup.Value;
                break;

            case 292:
                this.bool_2 = (bool)r.CurrentGroup.Value;
                break;

            case 293:
                this.bool_4 = (bool)r.CurrentGroup.Value;
                break;

            case 294:
                this.bool_5 = (bool)r.CurrentGroup.Value;
                break;

            case 295:
                this.bool_6 = (bool)r.CurrentGroup.Value;
                break;

            case 296:
                this.bool_7 = (bool)r.CurrentGroup.Value;
                break;

            case 297:
                this.bool_3 = (bool)r.CurrentGroup.Value;
                break;

            case 298:
                this.bool_8 = (bool)r.CurrentGroup.Value;
                break;

            case 300:
                this.string_1 = (string)r.CurrentGroup.Value;
                break;

            case 340:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
                break;

            case 341:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_4 = o));
                break;

            case 342:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_5 = o));
                break;

            case 343:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_6 = o));
                break;

            default:
                return(this.method_6(r, objectBuilder));
            }
            r.method_85();
            return(true);
        }