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(); }
internal MLeader.TextAttachment method_9(DxfMLeader mleader) { bool flag; MLeader.TextAttachment textAttachment = (flag = mleader.TextAttachmentDirection == MLeader.TextAttachmentDirection.Horizontal) ? this.TextRightAttachment : this.TextTopAttachment; if (this.LeaderNodes.Count > 0) { WW.Math.Vector3D direction = this.LeaderNodes[0].Direction; textAttachment = !flag ? (direction.X >= 0.0 ? this.TextLeftAttachment : this.TextRightAttachment) : (direction.Y >= 0.0 ? this.TextBottomAttachment : this.TextTopAttachment); } return(textAttachment); }
internal void method_10(Class434 or, Class259 ob) { Interface30 objectBitStream = or.ObjectBitStream; int num = objectBitStream.imethod_11(); for (int index = 0; index < num; ++index) { MLeader.LeaderNode leaderNode = new MLeader.LeaderNode(); leaderNode.Read(or); this.list_0.Add(leaderNode); } this.double_0 = objectBitStream.imethod_8(); this.point3D_0 = objectBitStream.imethod_39(); this.double_1 = objectBitStream.imethod_8(); this.double_2 = objectBitStream.imethod_8(); this.double_3 = objectBitStream.imethod_8(); this.textAttachment_0 = (MLeader.TextAttachment)objectBitStream.imethod_14(); this.textAttachment_1 = (MLeader.TextAttachment)objectBitStream.imethod_14(); this.textAlignment_0 = (MLeader.TextAlignment)objectBitStream.imethod_14(); this.blockAttachment_0 = (MLeader.BlockAttachment)objectBitStream.imethod_14(); this.bool_1 = objectBitStream.imethod_6(); if (this.bool_1) { MLeader.ContentText contentText = new MLeader.ContentText(); contentText.Read(or); this.content_0 = (MLeader.Content)contentText; } else { this.bool_2 = objectBitStream.imethod_6(); if (this.bool_2) { MLeader.ContentBlock contentBlock = new MLeader.ContentBlock(); contentBlock.Read(or); this.content_0 = (MLeader.Content)contentBlock; } } this.point3D_1 = objectBitStream.imethod_39(); this.vector3D_0 = objectBitStream.imethod_51(); this.vector3D_1 = objectBitStream.imethod_51(); this.bool_3 = objectBitStream.imethod_6(); if (or.Builder.Version <= DxfVersion.Dxf21) { return; } this.textAttachment_3 = (MLeader.TextAttachment)objectBitStream.imethod_14(); this.textAttachment_2 = (MLeader.TextAttachment)objectBitStream.imethod_14(); }
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; }
private void method_8(DxfMLeaderAnnotationContext from, CloneContext cloneContext) { this.list_0.Clear(); foreach (MLeader.LeaderNode leaderNode in from.list_0) { this.list_0.Add(leaderNode.Clone(cloneContext)); } this.double_0 = from.double_0; this.point3D_0 = from.point3D_0; this.double_1 = from.double_1; this.double_2 = from.double_2; this.double_3 = from.double_3; this.textAttachment_0 = from.textAttachment_0; this.textAttachment_1 = from.textAttachment_1; this.blockAttachment_0 = from.blockAttachment_0; this.bool_1 = from.bool_1; this.bool_2 = from.bool_2; this.plane3D_0 = from.plane3D_0; this.point3D_1 = from.point3D_1; this.vector3D_0 = from.vector3D_0; this.vector3D_1 = from.vector3D_1; this.bool_3 = from.bool_3; this.contentType_0 = from.contentType_0; this.textAttachment_2 = from.textAttachment_2; this.textAttachment_3 = from.textAttachment_3; if (from.content_0 == null) { this.content_0 = (MLeader.Content)null; } else if (this.content_0 != null && !(this.content_0.GetType() != from.content_0.GetType())) { this.content_0.CopyFrom(from.content_0, cloneContext); } else { this.content_0 = from.content_0.Clone(cloneContext); } }
internal void method_11(DxfReader r, Class259 objectBuilder, bool readBrackets) { if (readBrackets) { if (r.CurrentGroup.Code == 300) { if ((string)r.CurrentGroup.Value != "CONTEXT_DATA{") { throw new Exception("Expected CONTEXT_DATA{, but got " + r.CurrentGroup.Value + " instead."); } r.method_85(); } else { readBrackets = false; } } while (true) { bool flag; do { Struct18 currentGroup = r.CurrentGroup; if (r.CurrentGroup.Code != 301 || !((string)r.CurrentGroup.Value == "}")) { flag = true; switch (r.CurrentGroup.Code) { case 10: this.point3D_0.X = (double)r.CurrentGroup.Value; break; case 20: this.point3D_0.Y = (double)r.CurrentGroup.Value; break; case 30: this.point3D_0.Z = (double)r.CurrentGroup.Value; break; case 40: this.double_0 = (double)r.CurrentGroup.Value; break; case 41: this.double_1 = (double)r.CurrentGroup.Value; break; case 110: this.point3D_1.X = (double)r.CurrentGroup.Value; break; case 111: this.vector3D_0.X = (double)r.CurrentGroup.Value; break; case 112: this.vector3D_1.X = (double)r.CurrentGroup.Value; break; case 120: this.point3D_1.Y = (double)r.CurrentGroup.Value; break; case 121: this.vector3D_0.Y = (double)r.CurrentGroup.Value; break; case 122: this.vector3D_1.Y = (double)r.CurrentGroup.Value; break; case 130: this.point3D_1.Z = (double)r.CurrentGroup.Value; break; case 131: this.vector3D_0.Z = (double)r.CurrentGroup.Value; break; case 132: this.vector3D_1.Z = (double)r.CurrentGroup.Value; break; case 140: this.double_2 = (double)r.CurrentGroup.Value; break; case 145: this.double_3 = (double)r.CurrentGroup.Value; break; case 174: this.textAttachment_0 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value; break; case 175: this.textAttachment_1 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value; break; case 176: this.textAlignment_0 = (MLeader.TextAlignment)r.CurrentGroup.Value; break; case 177: this.blockAttachment_0 = (MLeader.BlockAttachment)r.CurrentGroup.Value; break; case 272: this.textAttachment_3 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value; break; case 273: this.textAttachment_2 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value; break; case 290: this.bool_1 = (bool)r.CurrentGroup.Value; if (this.bool_1) { r.method_85(); MLeader.ContentText contentText = new MLeader.ContentText(); contentText.Read(r, 296); flag = false; this.content_0 = (MLeader.Content)contentText; break; } break; case 296: this.bool_2 = (bool)r.CurrentGroup.Value; if (this.bool_2) { r.method_85(); MLeader.ContentBlock contentBlock = new MLeader.ContentBlock(); contentBlock.Read(r); flag = false; this.content_0 = (MLeader.Content)contentBlock; break; } break; case 297: this.bool_3 = (bool)r.CurrentGroup.Value; break; case 302: if ((string)r.CurrentGroup.Value == "LEADER{") { MLeader.LeaderNode leaderNode = new MLeader.LeaderNode(); r.method_85(); leaderNode.Read(r); this.list_0.Add(leaderNode); break; } break; } } else { goto label_39; } }while (!flag); r.method_85(); } label_39 :; }
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); }