private void method_16( DxfReader r, Class285 objectBuilder, ref Interface30 binaryDataReader, ref Interface30 stringDataReader, ref long graphicsDataSizeInBytes, ref PagedMemoryStream graphicsData, ref Stream currentStream) { string subclass = (string)r.CurrentGroup.Value; r.method_85(); this.stream_0 = (Stream)null; this.stream_1 = (Stream)null; while (!r.method_92(subclass)) { if (!this.method_17(r, objectBuilder, ref graphicsDataSizeInBytes, ref graphicsData, ref currentStream)) { r.method_85(); } } if (this.stream_0 != null) { this.stream_0.Position = 0L; binaryDataReader = Class444.Create(r.ModelBuilder.Version, this.stream_0); } if (this.stream_1 == null) { return; } this.stream_1.Position = 0L; stringDataReader = Class444.Create(r.ModelBuilder.Version, this.stream_1); }
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(); }
public void method_5(string string_2, string string_3, Interface30 interface30_1) { this.string_0 = string_2; this.string_1 = string_3; this.interface30_0 = interface30_1; this.method_6(); bool_0 = true; }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.point3D_0 = objectBitStream.imethod_39(); this.vector3D_0 = objectBitStream.imethod_51(); }
public Class887(DwgReader dwgReader, Interface30 bitStream, Class374 builder) { this.dwgReader_0 = dwgReader; this.interface30_0 = bitStream; this.interface30_1 = bitStream; this.interface30_2 = bitStream; this.interface30_3 = bitStream; this.class374_0 = builder; }
public override Color imethod_23(Interface30 stringReader) { short colorIndex = this.imethod_14(); if (colorIndex < (short)0) { colorIndex = -colorIndex; } return(Color.CreateFromColorIndex(colorIndex)); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.Name = objectBitStream.ReadString(); this.Description = objectBitStream.ReadString(); this.Value = objectBitStream.imethod_8(); this.dxfBlockParametersValueSet_0 = or.method_5(); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; ((DxfHatchViewContextData.Class312)ob).ViewportHandle = or.method_100(); this.vector3D_1 = objectBitStream.imethod_51(); this.double_1 = objectBitStream.imethod_8(); this.bool_1 = objectBitStream.imethod_6(); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.int_0 = objectBitStream.imethod_11(); this.imageDisplayFrameFlag_0 = (ImageDisplayFrameFlag)objectBitStream.imethod_14(); this.imageDisplayQuality_0 = (ImageDisplayQuality)objectBitStream.imethod_14(); this.imageInsertionUnits_0 = (ImageInsertionUnits)objectBitStream.imethod_14(); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.textHorizontalAlignment_0 = (TextHorizontalAlignment)objectBitStream.imethod_14(); this.double_0 = objectBitStream.imethod_8(); this.point2D_1 = objectBitStream.imethod_38(); this.point2D_0 = objectBitStream.imethod_38(); }
internal override void Read(Class434 or, Class259 objectBuilder) { base.Read(or, objectBuilder); Interface30 objectBitStream = or.ObjectBitStream; int num1; if (or.Builder.Version > DxfVersion.Dxf14) { num1 = objectBitStream.imethod_11(); if (or.Builder.Version > DxfVersion.Dxf15) { objectBitStream.ReadString(); } int num2 = objectBitStream.imethod_11(); this.dwgVersion_0 = (DwgVersion)(num2 & (int)ushort.MaxValue); this.short_1 = (short)(num2 >> 16); this.bool_2 = objectBitStream.imethod_6(); if (this.bool_2) { objectBitStream.imethod_11(); objectBitStream.imethod_11(); } } else { num1 = objectBitStream.imethod_11(); objectBitStream.imethod_11(); } this.dxfClass_0 = or.Builder.Model.Classes.GetClassWithClassNumber((short)num1); Class1048 class1048 = (Class1048)objectBitStream; this.stream_0 = (Stream) new PagedMemoryStream(1024L, 1024); this.long_0 = (long)class1048.MainReader.imethod_21((PagedMemoryStream)this.stream_0); Class444.Create(or.Builder.Version, this.stream_0); if (class1048.StringReader != class1048.MainReader) { this.stream_1 = (Stream) new PagedMemoryStream(1024L, 1024); this.uint_0 = class1048.StringReader.imethod_21((PagedMemoryStream)this.stream_1); } else { this.method_13(or.Builder.Version); } while (class1048.HandleReader.Stream.Position < class1048.HandleReader.Stream.Length) { ReferenceType referenceType; ulong handle = class1048.HandleReader.imethod_34(0UL, true, out referenceType); DxfTypedObjectReference typedObjectReference = new DxfTypedObjectReference(referenceType); this.list_0.Add(typedObjectReference); objectBuilder.ChildBuilders.Add((Interface10)typedObjectReference.method_0(handle)); } }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.BasePointAngular = objectBitStream.imethod_39(); this.TextPosition = objectBitStream.imethod_39(); this.Name = objectBitStream.ReadString(); this.Description = objectBitStream.ReadString(); this.Value = objectBitStream.imethod_8(); this.Unknown1 = objectBitStream.imethod_6(); this.dxfBlockParametersValueSet_0 = or.method_5(); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.bool_0 = objectBitStream.imethod_14() == (short)1; this.string_0 = objectBitStream.ReadString(); if (this.string_0 == "") { throw new DxfException("Invalid scale name"); } this.double_0 = objectBitStream.imethod_8(); this.double_1 = objectBitStream.imethod_8(); this.bool_1 = objectBitStream.imethod_6(); }
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(); }
internal override void Read(DxfReader r, Class259 objectBuilder) { base.Read(r, objectBuilder); Class285 class285 = (Class285)objectBuilder; Interface30 binaryDataReader = (Interface30)null; Interface30 stringDataReader = (Interface30)null; Stream currentStream = (Stream)null; long graphicsDataSizeInBytes = 0; PagedMemoryStream graphicsData = (PagedMemoryStream)null; r.method_85(); while (r.CurrentGroup.Code != 0) { if (r.CurrentGroup.Code == 100) { switch ((string)r.CurrentGroup.Value) { case "AcDbZombieEntity": case "AcDbProxyEntity": this.method_16(r, class285, ref binaryDataReader, ref stringDataReader, ref graphicsDataSizeInBytes, ref graphicsData, ref currentStream); continue; case "AcDbEntity": this.method_8(r, class285); continue; default: if (this.bool_2) { this.method_18(r, objectBuilder); continue; } continue; } } else { this.method_9(r, class285); } } this.method_13(r.ModelBuilder.Version); if (graphicsData == null) { return; } this.proxyGraphics_0 = new ProxyGraphics(); ((DxfProxyEntity.Class287)class285).ProxyGraphicsBuilder = this.proxyGraphics_0.Read((Stream)graphicsData, (Class374)r.ModelBuilder); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; int num = (int)objectBitStream.imethod_14(); this.list_0.Clear(); for (int index = 0; index < num; ++index) { this.list_0.Add(objectBitStream.imethod_39()); } this.vector3D_2 = objectBitStream.imethod_51(); this.hookLineDirection_0 = objectBitStream.imethod_6() ? HookLineDirection.Same : HookLineDirection.Opposite; this.vector3D_0 = objectBitStream.imethod_51(); this.vector3D_1 = objectBitStream.imethod_51(); }
internal override void Read(Class434 or, Class259 builder) { base.Read(or, builder); Interface30 objectBitStream = or.ObjectBitStream; this.short_0 = objectBitStream.imethod_14(); this.ColumnCount = objectBitStream.imethod_11(); this.RowCount = objectBitStream.imethod_11(); this.string_0 = objectBitStream.ReadString(); int num = 0; foreach (DxfDataColumn dxfDataColumn in (ActiveList <DxfDataColumn>) this.dxfDataColumnCollection_0) { dxfDataColumn.Read(objectBitStream, (DxfDataTable.Class273)builder, num++); } }
public static Class615 smethod_0(Interface1 A_0, Interface30 A_1, float A_2) { int num = 13; Interface3 interface2 = A_0 as Interface3; if (interface2 != null) { if (interface2.imethod_0().imethod_22()) { return(new Class617(interface2, A_1)); } return(new Class616(interface2, A_1)); } Interface2 interface4 = A_0 as Interface2; if ((A_0 is Field) && ((A_0 as Field).Type == FieldType.FieldSymbol)) { interface4 = (A_0 as Field).method_46(); } if ((interface4 != null) && !(interface4 is TextBox)) { return(new Class619(interface4, A_1)); } Interface4 interface3 = null; if (A_0 is Interface4) { interface3 = A_0 as Interface4; } else if (A_0 is TextBox) { interface3 = (A_0 as TextBox).method_78(A_1); } if (interface3 != null) { return(new Class618(interface3, A_1)); } Class820 class2 = A_0 as Class820; if (class2 == null) { throw new ArgumentException(BookmarkStart.b("稲嬴䄶堸场吼嬾慀㑂ⱄ⍆⹈⹊㥌潎═⩒╔㉖捘筚", num) + A_0.GetType()); } return(new Class618(class2, A_1)); }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.dxfPattern_0 = new DxfPattern(); this.dxfPattern_0.Read(objectBitStream); this.double_0 = objectBitStream.imethod_8(); this.vector3D_0 = objectBitStream.imethod_51(); int num = objectBitStream.imethod_11(); for (int index = 0; index < num; ++index) { DxfHatch.BoundaryPath boundaryPath = new DxfHatch.BoundaryPath(); boundaryPath.Read(or, false); this.list_0.Add(boundaryPath); } }
public static Class615 smethod_1(Interface1 A_0, Interface30 A_1, float A_2, bool A_3) { int num = 15; Interface2 interface2 = A_0 as Interface2; if (((A_0 is ShapeObject) && !(A_0 is DocPicture)) && !(A_0 is TextBox)) { interface2 = (A_0 as ShapeObject).method_63(A_3); } if (A_0 is Class6) { interface2 = (A_0 as Class6).method_51(A_3); } if (interface2 == null) { throw new ArgumentException(BookmarkStart.b("簴夶伸娺儼嘾╀捂㉄⹆ⵈⱊ⡌㭎煐❒ⱔ❖㱘慚絜", num) + A_0.GetType()); } return(new Class619(interface2, A_1)); }
private void method_20(DxfWriter w) { Interface30 binaryDataReader = Class444.Create(w.Version, this.stream_0); binaryDataReader.imethod_4(0L); Interface30 stringDataReader = (Interface30)null; if (this.stream_1 != null) { stringDataReader = Class444.Create(w.Version, this.stream_1); stringDataReader.imethod_4(0L); } DxfProxyEntity.Class362 class362 = new DxfProxyEntity.Class362(this.dwgVersion_0, this.long_0, binaryDataReader, this.uint_0, stringDataReader, this.list_0); while (!class362.IsAtEndOfStream) { Struct18 group = class362.method_0(); w.Write(group); } }
public override Color imethod_25(Interface30 stringReader) { int num1 = (int)this.imethod_14(); int num2 = this.imethod_11(); byte num3 = this.imethod_18(); string name = string.Empty; if (((int)num3 & 1) == 1) { name = stringReader.ReadString(); } string colorBookName = string.Empty; if (((int)num3 & 2) == 2) { colorBookName = stringReader.ReadString(); } Color color; switch ((byte)(num2 >> 24)) { case 192: color = Color.ByLayer; break; case 193: color = Color.ByBlock; break; case 194: color = Color.smethod_1((uint)num2, colorBookName, name); break; case 195: color = Color.CreateFromColorIndex((short)(num2 & (int)ushort.MaxValue)); break; default: color = Color.smethod_1((uint)num2, colorBookName, name); break; } return(color); }
internal void Read(Interface30 objectMainBitStream) { int num1 = (int)objectMainBitStream.imethod_14(); for (int index1 = 0; index1 < num1; ++index1) { DxfPattern.Line line = new DxfPattern.Line(); line.Angle = objectMainBitStream.imethod_8(); line.BasePoint = objectMainBitStream.imethod_36(); line.Offset = objectMainBitStream.imethod_49(); int num2 = (int)objectMainBitStream.imethod_14(); for (int index2 = 0; index2 < num2; ++index2) { double num3 = objectMainBitStream.imethod_8(); line.DashLengths.Add(num3); } this.list_0.Add(line); } }
public Class362( DwgVersion version, long binaryDataSizeInBits, Interface30 binaryDataReader, uint stringDataSizeInBits, Interface30 stringDataReader, List <DxfTypedObjectReference> objectReferences) { this.long_0 = binaryDataSizeInBits; this.interface30_0 = binaryDataReader; if (version < DwgVersion.Dwg1021) { this.uint_0 = 0U; this.interface30_1 = binaryDataReader; } else { this.uint_0 = stringDataSizeInBits; this.interface30_1 = stringDataReader; } this.list_0 = objectReferences; }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.AttachmentPoint = (AttachmentPoint)objectBitStream.imethod_11(); this.XDirection = objectBitStream.imethod_51(); this.Location = objectBitStream.imethod_39(); this.size2D_0.X = objectBitStream.imethod_8(); this.size2D_0.Y = objectBitStream.imethod_8(); this.size2D_1.X = objectBitStream.imethod_8(); this.size2D_1.Y = objectBitStream.imethod_8(); DxfMTextObjectContextData.ColumnType columnType = (DxfMTextObjectContextData.ColumnType)objectBitStream.imethod_11(); if (columnType == DxfMTextObjectContextData.ColumnType.NoColumns) { this.Columns = (DxfMTextObjectContextData.ColumnsData)null; } else { this.Columns = new DxfMTextObjectContextData.ColumnsData() { Type = columnType, ColumnsCount = objectBitStream.imethod_11(), ColumnWidth = objectBitStream.imethod_8(), Gutter = objectBitStream.imethod_8(), IsAutoHeight = objectBitStream.imethod_6(), IsFlowReversed = objectBitStream.imethod_6() }; if (this.Columns.IsAutoHeight || this.Columns.Type != DxfMTextObjectContextData.ColumnType.DynamicColumns || this.Columns.ColumnsCount == 0) { return; } this.Columns.ColumnHeights = new List <double>(); for (int index = 0; index < this.Columns.ColumnsCount; ++index) { this.Columns.ColumnHeights.Add(objectBitStream.imethod_8()); } } }
internal override void Read(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.point2D_0 = objectBitStream.imethod_38(); this.bool_2 = objectBitStream.imethod_6(); this.double_0 = objectBitStream.imethod_8(); ((DxfDimensionObjectContextData.Class313)ob).BlockHandle = or.method_100(); this.bool_1 = objectBitStream.imethod_6(); this.bool_4 = objectBitStream.imethod_6(); this.bool_3 = objectBitStream.imethod_6(); this.short_1 = objectBitStream.imethod_6() ? (short)1 : (short)0; this.bool_5 = objectBitStream.imethod_6(); this.short_2 = objectBitStream.imethod_6() ? (short)1 : (short)0; this.enum33_0 = (DxfDimensionObjectContextData.Enum33)objectBitStream.imethod_18(); this.bool_6 = objectBitStream.imethod_6(); this.bool_7 = objectBitStream.imethod_6(); if (this.bool_6) { this.bool_7 = !this.bool_7; } this.bool_8 = objectBitStream.imethod_6(); }
internal void DaTyrcXefU(Interface30 interface30_1) { this.interface30_0 = interface30_1; }
internal override void Write(Class432 ow) { base.Write(ow); Interface29 objectWriter = ow.ObjectWriter; if (ow.Version > DxfVersion.Dxf14) { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); if (ow.Version > DxfVersion.Dxf15) { objectWriter.imethod_4("cn:" + (this.dxfClass_0 == null ? string.Empty : this.dxfClass_0.CPlusPlusClassName)); } objectWriter.imethod_33((int)(this.dwgVersion_0 | (DwgVersion)((int)this.short_1 << 16))); objectWriter.imethod_14(this.bool_2); if (this.bool_2) { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ItemClassId); objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); } } else { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ItemClassId); objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); } Interface30 binaryDataReader = Class444.Create(ow.Version, this.stream_0); binaryDataReader.imethod_4(0L); Interface30 stringDataReader = (Interface30)null; if (this.stream_1 != null) { stringDataReader = Class444.Create(ow.Version, this.stream_1); stringDataReader.imethod_4(0L); } if (this.bool_2 && this.method_23(ow.Version)) { DxfProxyEntity.Class362 class362 = new DxfProxyEntity.Class362(this.dwgVersion_0, this.long_0, binaryDataReader, this.uint_0, stringDataReader, this.list_0); DxfProxyEntity.Class361 class361 = new DxfProxyEntity.Class361(ow.ObjectWriter); while (!class362.IsAtEndOfStream) { class361.imethod_0(class362.method_0()); } } else { this.method_14(ow.ObjectWriter, this.stream_0, this.long_0); if (ow.Version > DxfVersion.Dxf18) { if (stringDataReader != null && this.uint_0 > 0U) { this.method_14((Interface29)((Class990)ow.ObjectWriter).StringBitStreamWriter, this.stream_1, (long)this.uint_0); } } else { this.method_15(ow.ObjectWriter); } } foreach (DxfTypedObjectReference typedObjectReference in this.list_0) { objectWriter.imethod_42(typedObjectReference.ReferenceType, (DxfHandledObject)typedObjectReference.ObjectReference.Value); } }
public Class615(Interface1 A_0, Interface30 A_1) { this.interface1_1 = A_0; this.interface1_0 = A_0; this.interface30_0 = A_1; }
public override Color imethod_23(Interface30 stringReader) { return(this.imethod_25(stringReader)); }