Beispiel #1
0
        private void method_19(DxfReader r, Class259 objectBuilder, ReferenceType referenceType)
        {
            DxfTypedObjectReference typedObjectReference = new DxfTypedObjectReference(referenceType);

            this.list_0.Add(typedObjectReference);
            objectBuilder.ChildBuilders.Add((Interface10)typedObjectReference.method_0((ulong)r.CurrentGroup.Value));
        }
Beispiel #2
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            while (r.CurrentGroup.Code != 0)
            {
                if (r.CurrentGroup.Code != 100)
                {
                    throw new DxfException("Expected subclass marker.");
                }
                switch ((string)r.CurrentGroup.Value)
                {
                case "AcDbGeoData":
                    if (r.ModelBuilder.Version > DxfVersion.Dxf21)
                    {
                        this.method_12(r, objectBuilder);
                        continue;
                    }
                    this.method_8(r, objectBuilder);
                    continue;

                default:
                    r.method_85();
                    continue;
                }
            }
        }
Beispiel #3
0
        private bool method_9(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 70:
                r.method_85();
                return(true);

            case 140:
                this.double_0 = (double)r.CurrentGroup.Value;
                goto case 70;

            case 141:
                this.double_1 = (double)r.CurrentGroup.Value;
                goto case 70;

            case 290:
                this.bool_1 = (bool)r.CurrentGroup.Value;
                goto case 70;

            case 300:
                this.Name = (string)r.CurrentGroup.Value;
                if (this.string_0 == "")
                {
                    throw new DxfException("Invalid scale name");
                }
                goto case 70;

            default:
                return(this.method_6(r, objectBuilder));
            }
        }
Beispiel #4
0
        private bool method_10(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 70:
                this.ImageDisplayFrameFlag = (ImageDisplayFrameFlag)r.CurrentGroup.Value;
                break;

            case 71:
                this.ImageDisplayQuality = (ImageDisplayQuality)r.CurrentGroup.Value;
                break;

            case 72:
                this.ImageInsertionUnits = (ImageInsertionUnits)r.CurrentGroup.Value;
                break;

            case 90:
                this.int_0 = (int)r.CurrentGroup.Value;
                break;

            default:
                return(this.method_6(r, objectBuilder));
            }
            r.method_85();
            return(true);
        }
            internal override void Read(DxfReader r, Class259 objectBuilder)
            {
                base.Read(r, objectBuilder);
                while (!r.method_92("AcDbDiametricDimensionObjectContextData"))
                {
                    switch (r.CurrentGroup.Code)
                    {
                    case 11:
                        this.point3D_0.X = (double)r.CurrentGroup.Value;
                        break;

                    case 12:
                        this.point3D_1.X = (double)r.CurrentGroup.Value;
                        break;

                    case 21:
                        this.point3D_0.Y = (double)r.CurrentGroup.Value;
                        break;

                    case 22:
                        this.point3D_1.Y = (double)r.CurrentGroup.Value;
                        break;

                    case 31:
                        this.point3D_0.Z = (double)r.CurrentGroup.Value;
                        break;

                    case 32:
                        this.point3D_1.Z = (double)r.CurrentGroup.Value;
                        break;
                    }
                    r.method_85();
                }
            }
Beispiel #6
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            if (r.CurrentGroup.Code != 100 || (string)r.CurrentGroup.Value != "AcDbObjectContextData")
            {
                throw new DxfException("Expected subclass marker.");
            }
            r.method_85();
            while (!r.method_92("AcDbObjectContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 70:
                    this.Version = (short)r.CurrentGroup.Value;
                    break;

                case 290:
                    this.IsDefault = (bool)r.CurrentGroup.Value;
                    break;

                default:
                    throw new DxfException("Unexpected group code.");
                }
                r.method_85();
            }
        }
Beispiel #7
0
        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();
        }
Beispiel #8
0
        private void method_7(DxfReader r, Class259 objectBuilder)
        {
            string          key = (string)r.CurrentGroup.Value;
            DxfExtendedData dxfExtendedData;

            if (objectBuilder.AppIdToExtendedData.TryGetValue(key, out dxfExtendedData))
            {
                dxfExtendedData.Values.AddRange((IEnumerable <IExtendedDataValue>)DxfExtendedData.ValueCollection.Read(objectBuilder, r));
            }
            else
            {
                DxfAppId        appId;
                bool            flag         = r.Model.AppIds.TryGetValue(key, out appId);
                DxfExtendedData extendedData = new DxfExtendedData(appId, DxfExtendedData.ValueCollection.Read(objectBuilder, r));
                objectBuilder.AppIdToExtendedData.Add(key, extendedData);
                if (!flag)
                {
                    objectBuilder.ChildBuilders.Add((Interface10) new Class333(this.ExtendedDataCollection, extendedData)
                    {
                        AppIdName = key
                    });
                }
                this.ExtendedDataCollection.Add(extendedData);
            }
        }
Beispiel #9
0
 internal virtual void vmethod_11(DxfReader r, Class259 objectBuilder)
 {
     while (!r.method_92("AcDbTextObjectContextData"))
     {
         this.method_8(r.CurrentGroup);
         r.method_85();
     }
 }
        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();
        }
Beispiel #11
0
 internal virtual void Read(Class434 or, Class259 objectBuilder)
 {
     or.method_97(objectBuilder);
     if (this.Handle == 0UL)
     {
         return;
     }
     or.method_96(objectBuilder);
 }
Beispiel #12
0
 private bool method_9(DxfReader r, Class259 objectBuilder)
 {
     if (r.CurrentGroup.Code != 70)
     {
         return(this.method_6(r, objectBuilder));
     }
     this.short_0 = (short)r.CurrentGroup.Value;
     r.method_85();
     return(true);
 }
Beispiel #13
0
 private void method_10(DxfReader r, Class259 objectBuilder)
 {
     while (!r.method_92("AcDbGeoData") && r.CurrentGroup.Code != 4)
     {
         if (!this.method_11(r, objectBuilder))
         {
             r.method_85();
         }
     }
 }
        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();
        }
Beispiel #15
0
        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();
        }
Beispiel #16
0
        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();
        }
Beispiel #17
0
        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(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            while (!r.method_92("AcDbBlockAngularConstraintParameter"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 140:
                    this.Value = (double)r.CurrentGroup.Value;
                    break;

                case 290:
                    this.Unknown1 = (bool)r.CurrentGroup.Value;
                    break;

                case 305:
                    this.Name = (string)r.CurrentGroup.Value;
                    break;

                case 306:
                    this.Description = (string)r.CurrentGroup.Value;
                    break;

                case 307:
                    this.ValueSet = r.method_37((short)96, (short)141, (short)175, (short)307);
                    break;

                case 1011:
                    this.point3D_2.X = (double)r.CurrentGroup.Value;
                    break;

                case 1012:
                    this.point3D_3.X = (double)r.CurrentGroup.Value;
                    break;

                case 1021:
                    this.point3D_2.Y = (double)r.CurrentGroup.Value;
                    break;

                case 1022:
                    this.point3D_3.Y = (double)r.CurrentGroup.Value;
                    break;

                case 1031:
                    this.point3D_2.Z = (double)r.CurrentGroup.Value;
                    break;

                case 1032:
                    this.point3D_3.Z = (double)r.CurrentGroup.Value;
                    break;
                }
                r.method_85();
            }
        }
Beispiel #19
0
 internal void method_5(DxfReader r, Class259 objectBuilder)
 {
     r.method_85();
     while (r.CurrentGroup.Code != 0 && r.CurrentGroup.Code != 100)
     {
         if (!this.method_6(r, objectBuilder))
         {
             r.method_85();
         }
     }
 }
 internal override void Read(DxfReader r, Class259 objectBuilder)
 {
     r.method_67((Class265)objectBuilder, false);
     r.method_85();
     if (r.CurrentGroup.Code != 330)
     {
         throw new DxfException("Expected GC 330 here.");
     }
     ((Class266)objectBuilder).Dependency = (ulong)r.CurrentGroup.Value;
     r.method_85();
 }
Beispiel #21
0
 private void method_8(DxfReader r, Class259 objectBuilder)
 {
     r.method_91("AcDbScale");
     r.method_85();
     while (!r.method_92("AcDbScale"))
     {
         if (!this.method_9(r, objectBuilder))
         {
             r.method_85();
         }
     }
 }
Beispiel #22
0
 private void method_9(DxfReader r, Class259 objectBuilder)
 {
     r.method_91(this.AcClass);
     r.method_85();
     while (!r.method_92(this.AcClass))
     {
         if (!this.method_10(r, objectBuilder))
         {
             r.method_85();
         }
     }
 }
Beispiel #23
0
 private void method_12(DxfReader r, Class259 objectBuilder)
 {
     r.method_91("AcDbGeoData");
     r.method_85();
     while (!r.method_92("AcDbGeoData"))
     {
         if (!this.method_13(r, objectBuilder))
         {
             r.method_85();
         }
     }
 }
Beispiel #24
0
        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();
        }
Beispiel #26
0
        private bool method_11(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 14:
                this.point3D_1.Y = (double)r.CurrentGroup.Value;
                goto case 15;

            case 15:
            case 16:
            case 17:
            case 25:
            case 26:
            case 27:
            case 54:
            case 93:
            case 94:
            case 140:
            case 293:
                r.method_85();
                return(true);

            case 24:
                this.point3D_1.X = (double)r.CurrentGroup.Value;
                goto case 15;

            case 95:
                this.scaleEstimationMethod_0 = (ScaleEstimationMethod)r.CurrentGroup.Value;
                goto case 15;

            case 141:
                this.double_0 = (double)r.CurrentGroup.Value;
                goto case 15;

            case 142:
                this.double_1 = (double)r.CurrentGroup.Value;
                goto case 15;

            case 143:
                this.double_2 = (double)r.CurrentGroup.Value;
                goto case 15;

            case 294:
                this.bool_0 = (bool)r.CurrentGroup.Value;
                goto case 15;

            default:
                return(this.method_6(r, objectBuilder));
            }
        }
Beispiel #27
0
 internal override void Read(DxfReader r, Class259 objectBuilder)
 {
     base.Read(r, objectBuilder);
     if (r.CurrentGroup.Code != 100 || (string)r.CurrentGroup.Value != "AcDbAnnotScaleObjectContextData")
     {
         throw new DxfException("Expected subclass marker.");
     }
     r.method_85();
     if (r.CurrentGroup.Code != 340)
     {
         throw new DxfException("Expected GC 340 here.");
     }
     ((DxfAnnotationScaleObjectContextData.Class310)objectBuilder).ScaleHandle = (ulong)r.CurrentGroup.Value;
     r.method_85();
 }
Beispiel #28
0
        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();
        }
Beispiel #29
0
        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 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();
        }
 public override void Visit(Class259 c) { }
 public abstract void Visit(Class259 c);