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 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(Class434 or, Class259 ob) { base.Read(or, ob); Interface30 objectBitStream = or.ObjectBitStream; this.point3D_0 = objectBitStream.imethod_39(); this.vector3D_0 = objectBitStream.imethod_51(); }
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 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.int_0 = objectBitStream.imethod_11(); or.Builder.method_10(objectBitStream.imethod_32(true), (System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o)); this.designCoordinatesType_0 = (DesignCoordinatesType)objectBitStream.imethod_14(); switch (this.int_0) { case 1: this.point3D_1 = objectBitStream.imethod_39(); this.unitsValue_0 = (UnitsValue)objectBitStream.imethod_11(); this.unitsValue_1 = this.unitsValue_0; this.point3D_0 = objectBitStream.imethod_39(); objectBitStream.imethod_39(); this.vector3D_0 = objectBitStream.imethod_51(); this.vector2D_0 = Vector2D.FromAngle(System.Math.PI / 2.0 - objectBitStream.imethod_8()); objectBitStream.imethod_39(); this.string_0 = objectBitStream.ReadString(); this.string_1 = objectBitStream.ReadString(); this.vector2D_1.X = objectBitStream.imethod_8(); this.vector2D_1.Y = this.vector2D_1.X; objectBitStream.ReadString(); objectBitStream.ReadString(); break; case 2: case 3: this.point3D_0 = objectBitStream.imethod_39(); this.point3D_1 = objectBitStream.imethod_39(); this.vector2D_1.X = objectBitStream.imethod_8(); this.unitsValue_0 = (UnitsValue)objectBitStream.imethod_11(); this.vector2D_1.Y = objectBitStream.imethod_8(); this.unitsValue_1 = (UnitsValue)objectBitStream.imethod_11(); this.vector3D_0 = objectBitStream.imethod_51(); this.vector2D_0 = objectBitStream.imethod_50(); this.scaleEstimationMethod_0 = (ScaleEstimationMethod)objectBitStream.imethod_11(); this.double_0 = objectBitStream.imethod_8(); this.bool_0 = objectBitStream.imethod_6(); this.double_1 = objectBitStream.imethod_8(); this.double_2 = objectBitStream.imethod_8(); this.string_0 = objectBitStream.ReadString(); this.string_1 = objectBitStream.ReadString(); break; } this.string_2 = objectBitStream.ReadString(); this.string_3 = objectBitStream.ReadString(); this.string_4 = objectBitStream.ReadString(); int num1 = objectBitStream.imethod_11(); for (int index = 0; index < num1; ++index) { this.list_0.Add(new GeoMeshPoint(objectBitStream.imethod_38(), objectBitStream.imethod_38())); } int num2 = objectBitStream.imethod_11(); for (int index = 0; index < num2; ++index) { this.list_1.Add(new GeoMeshFace(objectBitStream.imethod_11(), objectBitStream.imethod_11(), objectBitStream.imethod_11())); } if (this.int_0 != 1 || !objectBitStream.imethod_6()) { return; } objectBitStream.imethod_6(); objectBitStream.imethod_38(); objectBitStream.imethod_38(); objectBitStream.imethod_11(); objectBitStream.imethod_11(); objectBitStream.imethod_38(); objectBitStream.imethod_38(); objectBitStream.imethod_6(); objectBitStream.imethod_8(); objectBitStream.imethod_8(); this.scaleEstimationMethod_0 = (ScaleEstimationMethod)objectBitStream.imethod_11(); this.double_0 = objectBitStream.imethod_8(); this.bool_0 = objectBitStream.imethod_6(); this.double_1 = objectBitStream.imethod_8(); this.double_2 = objectBitStream.imethod_8(); }
internal void Read(Interface30 r, DxfDataTable.Class273 tableBuilder, int columnIndex) { this.dataCellType_0 = (DataCellType)r.imethod_11(); this.string_0 = r.ReadString(); foreach (DxfDataCell dxfDataCell in this.list_0) { switch (this.dataCellType_0) { case DataCellType.Unknown: dxfDataCell.Value = (DxfDataCellValue)DxfDataCellValue.Unknown.Instance; continue; case DataCellType.Int32: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Int32(r.imethod_11()); continue; case DataCellType.Double: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Double(r.imethod_8()); continue; case DataCellType.String: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.String(r.ReadString()); continue; case DataCellType.Point3D: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Point3D(r.imethod_39()); continue; case DataCellType.ObjectId: DxfDataCellValue.ObjectIdBase o1 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.ObjectId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o1, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o1; continue; case DataCellType.HardOwnerId: DxfDataCellValue.OwnerIdBase o2 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.HardOwnerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o2, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o2; continue; case DataCellType.SoftOwnerId: DxfDataCellValue.OwnerIdBase o3 = (DxfDataCellValue.OwnerIdBase) new DxfDataCellValue.SoftOwnerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.OwnerIdBase.Class555(o3, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o3; continue; case DataCellType.HardPointerId: DxfDataCellValue.ObjectIdBase o4 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.HardPointerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o4, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o4; continue; case DataCellType.SoftPointerId: DxfDataCellValue.ObjectIdBase o5 = (DxfDataCellValue.ObjectIdBase) new DxfDataCellValue.SoftPointerId(); tableBuilder.Add((Interface10) new DxfDataCellValue.ObjectIdBase.Class554(o5, r.imethod_32(true))); dxfDataCell.Value = (DxfDataCellValue)o5; continue; case DataCellType.Bool: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Bool(r.imethod_6()); continue; case DataCellType.Vector3D: dxfDataCell.Value = (DxfDataCellValue) new DxfDataCellValue.Vector3D(r.imethod_51()); continue; default: throw new Exception("DataCellType " + (object)this.dataCellType_0 + " is not supported."); } } }