Пример #1
0
        internal override void vmethod_1(Class1070 context)
        {
            base.vmethod_1(context);
            foreach (DxfVertex3D dxfVertex3D in this.dxfHandledObjectCollection_1)
            {
                if (dxfVertex3D != null)
                {
                    dxfVertex3D.vmethod_2((IDxfHandledObject)this);
                    dxfVertex3D.vmethod_1(context);
                }
            }
            ushort mApproximationPointCount;
            ushort nApproximationPointCount;

            this.method_13(out mApproximationPointCount, out nApproximationPointCount);
            this.ushort_2 = mApproximationPointCount;
            this.ushort_3 = nApproximationPointCount;
            this.RecalculateApproximationPoints(mApproximationPointCount, nApproximationPointCount);
            foreach (DxfVertex3D dxfVertex3D in this.dxfHandledObjectCollection_2)
            {
                if (dxfVertex3D != null)
                {
                    dxfVertex3D.vmethod_2((IDxfHandledObject)this);
                    dxfVertex3D.vmethod_1(context);
                }
            }
        }
Пример #2
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     if (this.trueTypeFontDescriptor_0 == null)
     {
         if (!this.HasExtendedData)
         {
             return;
         }
         this.ExtendedDataCollection.Remove(this.Model.AppIdAcad);
     }
     else
     {
         DxfExtendedData extendedData;
         if (this.HasExtendedData && this.ExtendedDataCollection.TryGetValue(this.Model.AppIdAcad, out extendedData))
         {
             extendedData.Values.Clear();
         }
         else
         {
             extendedData = new DxfExtendedData(this.Model.AppIdAcad);
             this.ExtendedDataCollection.Add(extendedData);
         }
         extendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.String(this.trueTypeFontDescriptor_0.FontFilename));
         extendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.Int32((int)this.trueTypeFontDescriptor_0.Flags));
     }
 }
Пример #3
0
 internal override void vmethod_1(Class1070 context)
 {
     if (this.IsExternalReference && this.Model.Header.AcadVersion < DxfVersion.Dxf15)
     {
         if (this.IsExternalReferenceUnloaded)
         {
             if (this.ExtensionDictionary == null)
             {
                 this.ExtensionDictionary = new DxfDictionary();
             }
             if (!this.ExtensionDictionary.Entries.Contains("ACAD_UNLOAD"))
             {
                 this.ExtensionDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry("ACAD_UNLOAD", (DxfObject) new DxfIdBuffer()));
             }
         }
         else if (this.ExtensionDictionary != null && this.ExtensionDictionary.Entries.Contains("ACAD_UNLOAD"))
         {
             this.ExtensionDictionary.Entries.Remove(this.ExtensionDictionary.Entries.GetFirst("ACAD_UNLOAD"));
         }
     }
     base.vmethod_1(context);
     foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfEntity>) this.dxfEntityCollection_0)
     {
         dxfHandledObject.vmethod_1(context);
     }
 }
Пример #4
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (DxfHandledObject dxfHandledObject in this.activeList_0)
     {
         dxfHandledObject.vmethod_1(context);
     }
 }
Пример #5
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfViewport>) this.dxfViewportCollection_0)
     {
         dxfHandledObject.vmethod_1(context);
     }
 }
Пример #6
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfAttribute>) this.activeDxfHandledObjectCollection_0)
     {
         dxfHandledObject.vmethod_1(context);
     }
 }
Пример #7
0
 internal virtual void vmethod_1(Class1070 context)
 {
     if (this.ExtensionDictionary == null)
     {
         return;
     }
     this.ExtensionDictionary.vmethod_1(context);
 }
Пример #8
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     if (this.HostBlock != null)
     {
         return;
     }
     this.HostBlock = this.Model.ModelLayout.OwnerBlock;
 }
Пример #9
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     if (this.dxfDimensionStyleOverrides_0 == null)
     {
         return;
     }
     this.dxfDimensionStyleOverrides_0.method_0((DxfEntity)this);
 }
Пример #10
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (DxfVertex3D dxfVertex3D in (DxfHandledObjectCollection <DxfVertex3D>) this.dxfVertex3DCollection_0)
     {
         dxfVertex3D.vmethod_2((IDxfHandledObject)this);
         dxfVertex3D.vmethod_1(context);
     }
 }
Пример #11
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     if (this.Model.Header.AcadVersion >= DxfVersion.Dxf12 && this.Model.Header.AcadVersion <= DxfVersion.Dxf14)
     {
         DxfExtendedData extendedData;
         if (this.ExtendedDataCollection.TryGetValue(this.Model.AppIdAcad, out extendedData))
         {
             extendedData.Values.Clear();
         }
         else
         {
             extendedData = new DxfExtendedData(this.Model.AppIdAcad);
             this.ExtendedDataCollection.Add(extendedData);
         }
         extendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.String("MVIEW"));
         DxfExtendedData.ValueCollection valueCollection1 = new DxfExtendedData.ValueCollection();
         extendedData.Values.Add((IExtendedDataValue)valueCollection1);
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((short)16));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.PointOrVector(this.point3D_1.X, this.point3D_1.Y, this.point3D_1.Z));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.PointOrVector(this.vector3D_0.X, this.vector3D_0.Y, this.vector3D_0.Z));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_6));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_4));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.point2D_0.X));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.point2D_0.Y));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_1));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_2));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_3));
         ViewMode viewMode = (ViewMode)(this.viewportStatusFlags_0 & (ViewportStatusFlags.PerspectiveMode | ViewportStatusFlags.ClipFront | ViewportStatusFlags.ClipBack | ViewportStatusFlags.FollowUcs | ViewportStatusFlags.ClipFrontNotAtEye));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((short)viewMode));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((short)this.double_7));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.FastZoom) != ViewportStatusFlags.None ? (short)1 : (short)0));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.UcsIconVisible) != ViewportStatusFlags.None ? (short)1 : (short)0));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.SnapMode) != ViewportStatusFlags.None ? (short)1 : (short)0));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.GridMode) != ViewportStatusFlags.None ? (short)1 : (short)0));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.IsometricSnapStyle) != ViewportStatusFlags.None ? (short)1 : (short)0));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((short)(((this.viewportStatusFlags_0 & ViewportStatusFlags.KIsoPairTop) != ViewportStatusFlags.None ? 1 : 0) + ((this.viewportStatusFlags_0 & ViewportStatusFlags.KIsoPairRight) != ViewportStatusFlags.None ? 2 : 0))));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.double_5));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.point2D_1.X));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.point2D_1.Y));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.vector2D_0.X));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.vector2D_0.Y));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.vector2D_1.X));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Double(this.vector2D_1.Y));
         valueCollection1.Add((IExtendedDataValue) new DxfExtendedData.Int16((this.viewportStatusFlags_0 & ViewportStatusFlags.HidePlot) != ViewportStatusFlags.None ? (short)1 : (short)0));
         DxfExtendedData.ValueCollection valueCollection2 = new DxfExtendedData.ValueCollection();
         valueCollection1.Add((IExtendedDataValue)valueCollection2);
         foreach (DxfLayer dxfLayer in this.dxfHandledObjectCollection_1)
         {
             valueCollection2.Add((IExtendedDataValue) new DxfExtendedData.LayerReference(dxfLayer));
         }
     }
     else
     {
         this.ExtendedDataCollection.Remove(this.Model.AppIdAcad);
     }
 }
Пример #12
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (IDictionaryEntry dictionaryEntry in (ActiveList <IDictionaryEntry>) this.dxfDictionaryEntryCollection_0)
     {
         if (dictionaryEntry.Value != null)
         {
             dictionaryEntry.Value.vmethod_1(context);
         }
     }
 }
Пример #13
0
        internal override void vmethod_1(Class1070 context)
        {
            base.vmethod_1(context);
            int num = 101;

            for (int index = 3; index < this.dxfTableCellStyleCollection_0.Count; ++index)
            {
                this.dxfTableCellStyleCollection_0[index].Id = num++;
            }
            if (this.Model.Header.AcadVersion >= DxfVersion.Dxf21 && context.FileFormat != FileFormat.Dxf)
            {
                DxfDictionary extensionDictionary = this.ExtensionDictionary;
                if (extensionDictionary == null)
                {
                    return;
                }
                for (int index = extensionDictionary.Entries.Count - 1; index >= 0; --index)
                {
                    if (extensionDictionary.Entries[index].Value is DxfCellStyleMap)
                    {
                        extensionDictionary.Entries.RemoveAt(index);
                    }
                }
            }
            else
            {
                this.Model.method_31((DxfObject)this);
                DxfCellStyleMap dxfCellStyleMap = this.method_17();
                if (dxfCellStyleMap == null)
                {
                    if (this.ExtensionDictionary == null)
                    {
                        this.ExtensionDictionary = new DxfDictionary();
                    }
                    dxfCellStyleMap = new DxfCellStyleMap();
                    this.ExtensionDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry((DxfObject)dxfCellStyleMap)
                    {
                        ValueReferenceIsHard = true
                    });
                }
                dxfCellStyleMap.CellStyles.Clear();
                foreach (DxfTableCellStyle dxfTableCellStyle in (Collection <DxfTableCellStyle>) this.dxfTableCellStyleCollection_0)
                {
                    dxfCellStyleMap.CellStyles.Add(dxfTableCellStyle);
                }
            }
        }
Пример #14
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     foreach (DxfVertex2D dxfVertex2D in (DxfHandledObjectCollection <DxfVertex2D>) this.dxfVertex2DCollection_0)
     {
         dxfVertex2D.vmethod_2((IDxfHandledObject)this);
         dxfVertex2D.vmethod_1(context);
     }
     if (this.dxfVertex2DCollection_1.Count == 0)
     {
         this.RecalculateApproximationPoints((int)System.Math.Abs(this.Model.Header.NumberOfSplineSegments));
     }
     foreach (DxfVertex2D dxfVertex2D in (DxfHandledObjectCollection <DxfVertex2D>) this.dxfVertex2DCollection_1)
     {
         dxfVertex2D.vmethod_2((IDxfHandledObject)this);
         dxfVertex2D.vmethod_1(context);
     }
 }
Пример #15
0
        internal override void vmethod_1(Class1070 context)
        {
            base.vmethod_1(context);
            if (this.OwnerObjectSoftReference == null)
            {
                return;
            }
            DxfEntity objectSoftReference = (DxfEntity)this.OwnerObjectSoftReference;

            if (this.Color != objectSoftReference.Color)
            {
                this.Color = objectSoftReference.Color;
            }
            if (this.DxfColor != objectSoftReference.DxfColor)
            {
                this.DxfColor = objectSoftReference.DxfColor;
            }
            if (this.Layer == objectSoftReference.Layer)
            {
                return;
            }
            this.Layer = objectSoftReference.Layer;
        }
Пример #16
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
     if (this.transparency_0 == Transparency.Opaque)
     {
         if (this.HasExtendedData)
         {
             DxfAppId dxfAppId;
             if (!this.Model.AppIds.TryGetValue("AcCmTransparency", out dxfAppId))
             {
                 dxfAppId = new DxfAppId("AcCmTransparency");
                 this.Model.AppIds.Add(dxfAppId);
             }
             DxfExtendedData extendedData;
             if (this.ExtendedDataCollection.TryGetValue(dxfAppId, out extendedData))
             {
                 if (extendedData.Values.Count == 0)
                 {
                     this.ExtendedDataCollection.Remove(dxfAppId);
                 }
                 else if (extendedData.Values.Count == 1)
                 {
                     if (extendedData.Values[0] is DxfExtendedData.Int32)
                     {
                         this.ExtendedDataCollection.Remove(dxfAppId);
                     }
                 }
                 else
                 {
                     this.method_10(extendedData);
                 }
             }
         }
     }
     else
     {
         DxfAppId appId;
         if (!this.Model.AppIds.TryGetValue("AcCmTransparency", out appId))
         {
             appId = new DxfAppId("AcCmTransparency");
             this.Model.AppIds.Add(appId);
         }
         DxfExtendedData extendedData;
         if (this.ExtendedDataCollection.TryGetValue(appId, out extendedData))
         {
             this.method_10(extendedData);
         }
         else
         {
             extendedData = new DxfExtendedData(appId);
             this.ExtendedDataCollection.Add(extendedData);
             extendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.Int32((int)this.transparency_0.Data));
         }
     }
     if (this.class905_0 != null)
     {
         if (this.class905_0.dictionary_0 != null && this.class905_0.dictionary_0.Count > 0)
         {
             DxfXRecord dxfXrecord = this.method_8("ADSK_XREC_LAYER_COLOR_OVR");
             foreach (KeyValuePair <DxfViewport, Color> keyValuePair in this.class905_0.dictionary_0)
             {
                 dxfXrecord.Values.Add((short)102, (object)"{ADSK_LYR_COLOR_OVERRIDE");
                 dxfXrecord.Values.Add((short)335, (object)keyValuePair.Key);
                 dxfXrecord.Values.Add((short)420, (object)(int)keyValuePair.Value.Data);
                 dxfXrecord.Values.Add((short)102, (object)"}");
             }
         }
         else
         {
             this.method_9("ADSK_XREC_LAYER_COLOR_OVR");
         }
         if (this.class905_0.dictionary_1 != null && this.class905_0.dictionary_1.Count > 0)
         {
             DxfXRecord dxfXrecord = this.method_8("ADSK_XREC_LAYER_LINETYPE_OVR");
             foreach (KeyValuePair <DxfViewport, DxfLineType> keyValuePair in this.class905_0.dictionary_1)
             {
                 dxfXrecord.Values.Add((short)102, (object)"{ADSK_LYR_LINETYPE_OVERRIDE");
                 dxfXrecord.Values.Add((short)335, (object)keyValuePair.Key);
                 dxfXrecord.Values.Add((short)343, (object)keyValuePair.Value);
                 dxfXrecord.Values.Add((short)102, (object)"}");
             }
         }
         else
         {
             this.method_9("ADSK_XREC_LAYER_LINETYPE_OVR");
         }
         if (this.class905_0.dictionary_2 != null && this.class905_0.dictionary_2.Count > 0)
         {
             DxfXRecord dxfXrecord = this.method_8("ADSK_XREC_LAYER_LINEWT_OVR");
             foreach (KeyValuePair <DxfViewport, short> keyValuePair in this.class905_0.dictionary_2)
             {
                 dxfXrecord.Values.Add((short)102, (object)"{ADSK_LYR_LINEWT_OVERRIDE");
                 dxfXrecord.Values.Add((short)335, (object)keyValuePair.Key);
                 dxfXrecord.Values.Add((short)91, (object)(int)keyValuePair.Value);
                 dxfXrecord.Values.Add((short)102, (object)"}");
             }
         }
         else
         {
             this.method_9("ADSK_XREC_LAYER_LINEWT_OVR");
         }
         if (this.class905_0.dictionary_3 != null && this.class905_0.dictionary_3.Count > 0)
         {
             DxfXRecord dxfXrecord = this.method_8("ADSK_XREC_LAYER_ALPHA_OVR");
             foreach (KeyValuePair <DxfViewport, Transparency> keyValuePair in this.class905_0.dictionary_3)
             {
                 dxfXrecord.Values.Add((short)102, (object)"{ADSK_LYR_ALPHA_OVERRIDE");
                 dxfXrecord.Values.Add((short)335, (object)keyValuePair.Key);
                 dxfXrecord.Values.Add((short)440, (object)(int)keyValuePair.Value.Data);
                 dxfXrecord.Values.Add((short)102, (object)"}");
             }
         }
         else
         {
             this.method_9("ADSK_XREC_LAYER_ALPHA_OVR");
         }
     }
     else
     {
         if (this.ExtensionDictionary == null)
         {
             return;
         }
         this.method_9("ADSK_XREC_LAYER_COLOR_OVR");
         this.method_9("ADSK_XREC_LAYER_LINETYPE_OVR");
         this.method_9("ADSK_XREC_LAYER_LINEWT_OVR");
         this.method_9("ADSK_XREC_LAYER_ALPHA_OVR");
         if (this.ExtensionDictionary.Entries.Count != 0)
         {
             return;
         }
         this.ExtensionDictionary = (DxfDictionary)null;
     }
 }
Пример #17
0
 internal void method_0(Class1070 context, DxfModel model)
 {
     if (model.Header.AcadVersion > DxfVersion.Dxf15)
     {
         if (model.XRecordDwgProps == null)
         {
             return;
         }
         model.DictionaryRoot.Entries.RemoveAll("DWGPROPS");
         model.XRecordDwgProps = (DxfXRecord)null;
     }
     else
     {
         DxfXRecord dxfXrecord = model.XRecordDwgProps;
         if (dxfXrecord == null)
         {
             dxfXrecord            = new DxfXRecord();
             model.XRecordDwgProps = dxfXrecord;
             model.DictionaryRoot.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry("DWGPROPS", (DxfObject)model.XRecordDwgProps));
         }
         else
         {
             dxfXrecord.Values.Clear();
         }
         short num1 = 1;
         DxfXRecordValueCollection values1 = dxfXrecord.Values;
         num1 = (short)2;
         values1.Add((short)1, (object)"DWGPROPS COOKIE");
         DxfXRecordValueCollection values2 = dxfXrecord.Values;
         num1 = (short)3;
         string string0 = this.string_0;
         values2.Add((short)2, (object)string0);
         DxfXRecordValueCollection values3 = dxfXrecord.Values;
         num1 = (short)4;
         string string1 = this.string_1;
         values3.Add((short)3, (object)string1);
         DxfXRecordValueCollection values4 = dxfXrecord.Values;
         num1 = (short)5;
         string string2 = this.string_2;
         values4.Add((short)4, (object)string2);
         num1 = (short)6;
         DxfXRecordValueCollection values5 = dxfXrecord.Values;
         num1 = (short)7;
         string string4 = this.string_4;
         values5.Add((short)6, (object)string4);
         DxfXRecordValueCollection values6 = dxfXrecord.Values;
         num1 = (short)8;
         string string3 = this.string_3;
         values6.Add((short)7, (object)string3);
         DxfXRecordValueCollection values7 = dxfXrecord.Values;
         num1 = (short)9;
         string string5 = this.string_5;
         values7.Add((short)8, (object)string5);
         DxfXRecordValueCollection values8 = dxfXrecord.Values;
         num1 = (short)10;
         string string6 = this.string_6;
         values8.Add((short)9, (object)string6);
         short num2 = 300;
         foreach (SummaryInfo.Property property in this.list_0)
         {
             dxfXrecord.Values.Add(num2++, (object)(property.Name + "=" + property.Value));
             if (num2 > (short)309)
             {
                 break;
             }
         }
         while (num2 < (short)310)
         {
             dxfXrecord.Values.Add(num2++, (object)"=");
         }
         num1 = (short)40;
         DxfXRecordValueCollection values9 = dxfXrecord.Values;
         num1 = (short)41;
         // ISSUE: variable of a boxed type
         __Boxed <double> local1 = (ValueType)Class644.smethod_3(this.dxfTimeSpan_0);
         values9.Add((short)40, (object)local1);
         DxfXRecordValueCollection values10 = dxfXrecord.Values;
         num1 = (short)42;
         // ISSUE: variable of a boxed type
         __Boxed <double> local2 = (ValueType)Class644.smethod_0(this.dateTime_0);
         values10.Add((short)41, (object)local2);
         DxfXRecordValueCollection values11 = dxfXrecord.Values;
         short num3 = 43;
         // ISSUE: variable of a boxed type
         __Boxed <double> local3 = (ValueType)Class644.smethod_0(this.dateTime_1);
         values11.Add((short)42, (object)local3);
         dxfXrecord.Values.Add((short)1, (object)this.string_7);
         dxfXrecord.Values.Add((short)90, (object)this.list_0.Count);
         for (int index = 10; index < this.list_0.Count; ++index)
         {
             SummaryInfo.Property property = this.list_0[index];
             dxfXrecord.Values.Add(num3++, (object)(property.Name + "=" + property.Value));
         }
     }
 }
Пример #18
0
 internal override void vmethod_1(Class1070 context)
 {
     base.vmethod_1(context);
 }