Ejemplo n.º 1
0
            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();
                }
            }
Ejemplo n.º 2
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();
            }
        }
Ejemplo n.º 3
0
        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 void method_9(DxfReader r, string subclass)
        {
            while (!r.method_92(subclass))
            {
                switch (r.CurrentGroup.Code)
                {
                case 140:
                    this.Value = (double)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;
                }
                r.method_85();
            }
        }
Ejemplo n.º 5
0
 internal virtual void vmethod_11(DxfReader r, Class259 objectBuilder)
 {
     while (!r.method_92("AcDbTextObjectContextData"))
     {
         this.method_8(r.CurrentGroup);
         r.method_85();
     }
 }
Ejemplo n.º 6
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(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();
            }
        }
Ejemplo n.º 8
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();
         }
     }
 }
Ejemplo n.º 9
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();
         }
     }
 }
Ejemplo n.º 10
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();
         }
     }
 }
Ejemplo n.º 11
0
        private void method_13(DxfReader r, DxfDataTable.Class273 objectBuilder)
        {
            r.method_91("AcDbField");
            r.method_85();
            DxfDataColumn currentColumn = (DxfDataColumn)null;
            int           columnIndex   = -1;
            int           rowIndex      = -1;

            while (!r.method_92("AcDbField"))
            {
                if (!this.method_14(r, objectBuilder, ref currentColumn, ref columnIndex, ref rowIndex))
                {
                    r.method_85();
                }
            }
        }
Ejemplo n.º 12
0
 internal override void vmethod_11(DxfReader r, Class259 objectBuilder)
 {
     while (!r.method_92("AcDbMTextAttributeObjectContextData"))
     {
         if (this.method_8(r.CurrentGroup) || r.CurrentGroup.Code != 101)
         {
             r.method_85();
         }
         else
         {
             r.method_85();
             this.dxfMTextObjectContextData_0 = new DxfMTextObjectContextData();
             this.dxfMTextObjectContextData_0.Read(r, objectBuilder);
             break;
         }
     }
 }
Ejemplo n.º 13
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            while (!r.method_92("AcDbBlkRefObjectContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.point3D_0.X = (double)r.CurrentGroup.Value;
                    break;

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

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

                case 41:
                    this.vector3D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 42:
                    this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                case 43:
                    this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                case 50:
                    this.double_0 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                    break;

                default:
                    throw new DxfException("Unexpected group code.");
                }
                r.method_85();
            }
        }
Ejemplo n.º 14
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            if (r.CurrentGroup.Code != 100 || (string)r.CurrentGroup.Value != "AcDbHatchViewContextData")
            {
                throw new DxfException("Expected subclass marker.");
            }
            r.method_85();
            while (!r.method_92("AcDbHatchViewContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.vector3D_1.X = (double)r.CurrentGroup.Value;
                    break;

                case 20:
                    this.vector3D_1.Y = (double)r.CurrentGroup.Value;
                    break;

                case 30:
                    this.vector3D_1.Z = (double)r.CurrentGroup.Value;
                    break;

                case 51:
                    this.double_1 = (double)r.CurrentGroup.Value;
                    break;

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

                case 330:
                    ((DxfHatchViewContextData.Class312)objectBuilder).ViewportHandle = (ulong)r.CurrentGroup.Value;
                    break;
                }
                r.method_85();
            }
        }
Ejemplo n.º 15
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            while (!r.method_92(this.AcClass))
            {
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.point3D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 11:
                    this.vector3D_0.X = (double)r.CurrentGroup.Value;
                    break;

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

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

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

                case 31:
                    this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                default:
                    throw new DxfException("Unexpected group code.");
                }
                r.method_85();
            }
        }
Ejemplo n.º 16
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            if (r.CurrentGroup.Code != 100 || (string)r.CurrentGroup.Value != "AcDbHatchObjectContextData")
            {
                throw new DxfException("Expected subclass marker.");
            }
            r.method_85();
            bool             flag1 = true;
            BoundaryPathType type  = BoundaryPathType.None;
            bool             flag2 = true;

            while (!r.method_92("AcDbHatchScaleContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.vector3D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 20:
                    this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                case 30:
                    this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                    break;

                case 40:
                    this.double_0 = (double)r.CurrentGroup.Value;
                    break;

                case 78:
                    short num = (short)r.CurrentGroup.Value;
                    if (num > (short)0)
                    {
                        r.method_85();
                        this.dxfPattern_0 = new DxfPattern();
                        this.dxfPattern_0.Read(r, (int)num);
                        flag2 = false;
                        break;
                    }
                    break;

                case 90:
                    if (flag1)
                    {
                        flag1 = false;
                        break;
                    }
                    type = (BoundaryPathType)r.CurrentGroup.Value;
                    break;

                case 290:
                    if (!(bool)r.CurrentGroup.Value)
                    {
                        DxfHatch.BoundaryPath boundaryPath = new DxfHatch.BoundaryPath(type);
                        if ((boundaryPath.Type & BoundaryPathType.IsAnnotative) != BoundaryPathType.None && boundaryPath.IsPolyline)
                        {
                            boundaryPath.PolylineData = new DxfHatch.BoundaryPath.Polyline();
                            r.method_85();
                            boundaryPath.PolylineData.Read(r);
                        }
                        else if (!boundaryPath.IsPolyline)
                        {
                            r.method_85();
                            int nrOfEdges = (int)r.CurrentGroup.Value;
                            r.method_85();
                            boundaryPath.method_0(nrOfEdges, r);
                        }
                        this.list_0.Add(boundaryPath);
                        flag2 = false;
                        break;
                    }
                    break;
                }
                if (flag2)
                {
                    r.method_85();
                }
                else
                {
                    flag2 = true;
                }
            }
        }
Ejemplo n.º 17
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            while (!r.method_92(this.AcClass))
            {
                WW.Math.Point3D point3D;
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.list_0.Add(new WW.Math.Point3D((double)r.CurrentGroup.Value, 0.0, 0.0));
                    break;

                case 11:
                    this.vector3D_2.X = (double)r.CurrentGroup.Value;
                    break;

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

                case 13:
                    this.vector3D_1.X = (double)r.CurrentGroup.Value;
                    break;

                case 20:
                    point3D   = this.list_0.Last <WW.Math.Point3D>();
                    point3D.Y = (double)r.CurrentGroup.Value;
                    this.list_0[this.list_0.Count - 1] = point3D;
                    break;

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

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

                case 23:
                    this.vector3D_1.Y = (double)r.CurrentGroup.Value;
                    break;

                case 30:
                    point3D   = this.list_0.Last <WW.Math.Point3D>();
                    point3D.Z = (double)r.CurrentGroup.Value;
                    this.list_0[this.list_0.Count - 1] = point3D;
                    break;

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

                case 32:
                    this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                    break;

                case 33:
                    this.vector3D_1.Z = (double)r.CurrentGroup.Value;
                    break;

                case 290:
                    this.hookLineDirection_0 = (bool)r.CurrentGroup.Value ? HookLineDirection.Same : HookLineDirection.Opposite;
                    break;
                }
                r.method_85();
            }
        }
Ejemplo n.º 18
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            while (!r.method_92("AcDbMTextObjectContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 10:
                    this.vector3D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 11:
                    this.point3D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 20:
                    this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                    break;

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

                case 30:
                    this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                    break;

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

                case 40:
                    this.size2D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 41:
                    this.size2D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                case 42:
                    this.size2D_1.X = (double)r.CurrentGroup.Value;
                    break;

                case 43:
                    this.size2D_1.Y = (double)r.CurrentGroup.Value;
                    break;

                case 44:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    this.Columns.ColumnWidth = (double)r.CurrentGroup.Value;
                    break;

                case 45:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    this.Columns.Gutter = (double)r.CurrentGroup.Value;
                    break;

                case 46:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    if (this.Columns.ColumnHeights == null)
                    {
                        this.Columns.ColumnHeights = new List <double>();
                    }
                    this.Columns.ColumnHeights.Add((double)r.CurrentGroup.Value);
                    break;

                case 70:
                    this.AttachmentPoint = (AttachmentPoint)r.CurrentGroup.Value;
                    break;

                case 71:
                    DxfMTextObjectContextData.ColumnType columnType = (DxfMTextObjectContextData.ColumnType)(short) r.CurrentGroup.Value;
                    if (this.Columns == null && columnType != DxfMTextObjectContextData.ColumnType.NoColumns)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData()
                        {
                            Type = columnType
                        };
                        break;
                    }
                    if (this.Columns != null)
                    {
                        this.Columns.Type = columnType;
                        break;
                    }
                    break;

                case 72:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    this.Columns.ColumnsCount = (int)(short)r.CurrentGroup.Value;
                    break;

                case 73:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    this.Columns.IsAutoHeight = (short)r.CurrentGroup.Value == (short)1;
                    break;

                case 74:
                    if (this.Columns == null)
                    {
                        this.Columns = new DxfMTextObjectContextData.ColumnsData();
                    }
                    this.Columns.IsFlowReversed = (short)r.CurrentGroup.Value == (short)1;
                    break;

                default:
                    throw new DxfException("Unexpected group code.");
                }
                r.method_85();
            }
            if (this.Columns == null || this.Columns.Type == DxfMTextObjectContextData.ColumnType.NoColumns || (this.Columns.IsAutoHeight || this.Columns.ColumnsCount == 0))
            {
                return;
            }
            if (this.Columns.ColumnHeights == null)
            {
                this.Columns.ColumnHeights = new List <double>();
            }
            while (this.Columns.ColumnHeights.Count < this.Columns.ColumnsCount)
            {
                this.Columns.ColumnHeights.Add(this.size2D_0.Y);
            }
        }
Ejemplo n.º 19
0
        internal override void Read(DxfReader r, Class259 objectBuilder)
        {
            base.Read(r, objectBuilder);
            if (r.CurrentGroup.Code != 100 || (string)r.CurrentGroup.Value != "AcDbDimensionObjectContextData")
            {
                throw new DxfException("Expected subclass marker.");
            }
            r.method_85();
            while (!r.method_92("AcDbDimensionObjectContextData"))
            {
                switch (r.CurrentGroup.Code)
                {
                case 2:
                    ((DxfDimensionObjectContextData.Class313)objectBuilder).BlockName = (string)r.CurrentGroup.Value;
                    break;

                case 10:
                    this.point2D_0.X = (double)r.CurrentGroup.Value;
                    break;

                case 20:
                    this.point2D_0.Y = (double)r.CurrentGroup.Value;
                    break;

                case 70:
                    this.short_1 = (short)r.CurrentGroup.Value;
                    break;

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

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

                case 280:
                    this.enum33_0 = (DxfDimensionObjectContextData.Enum33)r.CurrentGroup.Value;
                    break;

                case 291:
                    this.bool_3 = (bool)r.CurrentGroup.Value;
                    break;

                case 292:
                    this.bool_5 = (bool)r.CurrentGroup.Value;
                    break;

                case 293:
                    this.bool_1 = (bool)r.CurrentGroup.Value;
                    break;

                case 294:
                    this.bool_2 = (bool)r.CurrentGroup.Value;
                    break;

                case 295:
                    this.bool_6 = (bool)r.CurrentGroup.Value;
                    break;

                case 296:
                    this.bool_7 = (bool)r.CurrentGroup.Value;
                    break;

                case 297:
                    this.bool_8 = (bool)r.CurrentGroup.Value;
                    break;

                case 298:
                    this.bool_4 = (bool)r.CurrentGroup.Value;
                    break;

                default:
                    throw new DxfException("Unexpected group code.");
                }
                r.method_85();
            }
            if (!this.bool_6)
            {
                return;
            }
            this.bool_7 = !this.bool_7;
        }