public Class379(DxfExtendedData.LayerReference layerReference, ulong layerHandle) { this.layerReference_0 = layerReference; this.ulong_0 = layerHandle; }
internal void method_18(DxfModel model) { DxfExtendedData extendedData; if (!this.ExtendedDataCollection.TryGetValue(model.AppIdAcad, out extendedData) || extendedData.Values.Count != 2) { return; } DxfExtendedData.ValueCollection valueCollection = (DxfExtendedData.ValueCollection)extendedData.Values[1]; if (valueCollection.Count != 27) { return; } this.point3D_1 = ((DxfExtendedData.PointOrVector)valueCollection[1]).GetPoint3D(); this.vector3D_0 = ((DxfExtendedData.PointOrVector)valueCollection[2]).GetVector3D(); this.double_6 = ((DxfExtendedData.Double)valueCollection[3]).Value; this.double_4 = ((DxfExtendedData.Double)valueCollection[4]).Value; this.point2D_0.X = ((DxfExtendedData.Double)valueCollection[5]).Value; this.point2D_0.Y = ((DxfExtendedData.Double)valueCollection[6]).Value; this.double_1 = ((DxfExtendedData.Double)valueCollection[7]).Value; this.double_2 = ((DxfExtendedData.Double)valueCollection[8]).Value; this.double_3 = ((DxfExtendedData.Double)valueCollection[9]).Value; this.StatusFlags |= (ViewportStatusFlags)((DxfExtendedData.Int16)valueCollection[10]).Value; this.double_7 = (double)((DxfExtendedData.Int16)valueCollection[11]).Value; if (((DxfExtendedData.Int16)valueCollection[12]).Value == (short)1) { this.StatusFlags |= ViewportStatusFlags.FastZoom; } this.bool_3 = ((DxfExtendedData.Int16)valueCollection[13]).Value == (short)1; if (((DxfExtendedData.Int16)valueCollection[14]).Value == (short)1) { this.StatusFlags |= ViewportStatusFlags.SnapMode; } if (((DxfExtendedData.Int16)valueCollection[15]).Value == (short)1) { this.StatusFlags |= ViewportStatusFlags.GridMode; } if (((DxfExtendedData.Int16)valueCollection[16]).Value == (short)1) { this.StatusFlags |= ViewportStatusFlags.IsometricSnapStyle; } short num = ((DxfExtendedData.Int16)valueCollection[17]).Value; if (((int)num & 1) != 0) { this.StatusFlags |= ViewportStatusFlags.KIsoPairTop; } if (((int)num & 2) != 0) { this.StatusFlags |= ViewportStatusFlags.KIsoPairRight; } this.double_5 = ((DxfExtendedData.Double)valueCollection[18]).Value; this.point2D_1.X = ((DxfExtendedData.Double)valueCollection[19]).Value; this.point2D_1.Y = ((DxfExtendedData.Double)valueCollection[20]).Value; this.vector2D_0.X = ((DxfExtendedData.Double)valueCollection[21]).Value; this.vector2D_0.Y = ((DxfExtendedData.Double)valueCollection[22]).Value; this.vector2D_1.X = ((DxfExtendedData.Double)valueCollection[23]).Value; this.vector2D_1.Y = ((DxfExtendedData.Double)valueCollection[24]).Value; if (((DxfExtendedData.Int16)valueCollection[25]).Value == (short)1) { this.StatusFlags |= ViewportStatusFlags.HidePlot; } foreach (IExtendedDataValue extendedDataValue in (List <IExtendedDataValue>)valueCollection[26]) { DxfExtendedData.LayerReference layerReference = extendedDataValue as DxfExtendedData.LayerReference; if (layerReference != null) { this.dxfHandledObjectCollection_1.Add(layerReference.Value); } else { DxfExtendedData.String @string = extendedDataValue as DxfExtendedData.String; if (@string == null) { throw new DxfException("Illegal frozen layer value. Expected layer reference or layer reference name string."); } this.dxfHandledObjectCollection_1.Add(model.Layers[@string.Value]); } } }