コード例 #1
0
ファイル: DxfMLeaderStyle.cs プロジェクト: 15831944/WW
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: DxfProxyEntity.cs プロジェクト: 15831944/WW
        internal override void vmethod_11(Class434 or, Class285 entityBuilder, long imageSize)
        {
            PagedMemoryStream targetStream = new PagedMemoryStream((long)(int)imageSize, System.Math.Min((int)imageSize, 65536));

            or.ObjectBitStream.imethod_20((int)imageSize, targetStream);
            this.proxyGraphics_0 = new ProxyGraphics();
            ((DxfProxyEntity.Class287)entityBuilder).ProxyGraphicsBuilder = this.proxyGraphics_0.Read((Stream)targetStream, or.Builder);
        }
コード例 #4
0
 internal virtual void Read(Class434 or, Class259 objectBuilder)
 {
     or.method_97(objectBuilder);
     if (this.Handle == 0UL)
     {
         return;
     }
     or.method_96(objectBuilder);
 }
コード例 #5
0
        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();
        }
コード例 #6
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();
        }
コード例 #7
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();
        }
コード例 #8
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();
        }
コード例 #9
0
    internal string method_27()
    {
        int           num     = 0x11;
        StringBuilder builder = new StringBuilder();

        for (int i = 0; i < base.method_4(); i++)
        {
            Class434 class2 = (Class434)base.method_18(i);
            builder.AppendFormat(BookmarkStart.b("氶䈸଺䀼ጾ㩀牂㡄歆㉈祊が቎", num), base.method_16(i), class2.int_1, class2.int_0);
        }
        return(builder.ToString());
    }
コード例 #10
0
    internal void method_26(Class148 A_0, int A_1)
    {
        int num = base.method_4();

        for (int i = 0; i < A_0.method_4(); i++)
        {
            Class434 class2 = (Class434)A_0.method_18(i);
            class2.int_1 += num;
            int num3 = A_0.method_16(i);
            base.method_6(A_1 + num3, class2);
        }
    }
コード例 #11
0
ファイル: DxfProxyEntity.cs プロジェクト: 15831944/WW
        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));
            }
        }
コード例 #12
0
        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();
        }
コード例 #13
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();
        }
コード例 #14
0
 internal void Read(Class434 or, DxfVisualStyle.Class486 pr)
 {
     if (or.Version < DxfVersion.Dxf24)
     {
         this.displayFlags_0 = (DisplayFlags)pr.vmethod_3();
         this.double_0       = (double)pr.vmethod_3();
         this.shadowType_0   = (ShadowType)pr.vmethod_3();
     }
     else
     {
         this.displayFlags_0 = (DisplayFlags)pr.vmethod_3();
         this.double_0       = pr.vmethod_4();
         this.shadowType_0   = (ShadowType)pr.vmethod_3();
     }
 }
コード例 #15
0
        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();
        }
コード例 #16
0
        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();
        }
コード例 #17
0
        internal override void Read(Class434 or, Class259 builder)
        {
            base.Read(or, builder);
            Interface30 objectBitStream = or.ObjectBitStream;

            this.short_0     = objectBitStream.imethod_14();
            this.ColumnCount = objectBitStream.imethod_11();
            this.RowCount    = objectBitStream.imethod_11();
            this.string_0    = objectBitStream.ReadString();
            int num = 0;

            foreach (DxfDataColumn dxfDataColumn in (ActiveList <DxfDataColumn>) this.dxfDataColumnCollection_0)
            {
                dxfDataColumn.Read(objectBitStream, (DxfDataTable.Class273)builder, num++);
            }
        }
コード例 #18
0
 internal override void Read(Class434 or, Class259 ob)
 {
     base.Read(or, ob);
     if (or.ObjectBitStream.imethod_6())
     {
         if (this.dxfMTextObjectContextData_0 == null)
         {
             this.dxfMTextObjectContextData_0 = new DxfMTextObjectContextData();
         }
         this.dxfMTextObjectContextData_0.Read(or, ob);
     }
     else
     {
         this.dxfMTextObjectContextData_0 = (DxfMTextObjectContextData)null;
     }
 }
コード例 #19
0
ファイル: EdgeStyle.cs プロジェクト: 15831944/WW
 internal void Read(Class434 or, DxfVisualStyle.Class486 pr)
 {
     if (or.Version < DxfVersion.Dxf24)
     {
         this.edgeModel_0         = (EdgeModel)pr.vmethod_3();
         this.edgeStyleFlags_0    = (EdgeStyleFlags)pr.vmethod_3();
         this.color_0             = pr.vmethod_5();
         this.color_1             = pr.vmethod_5();
         this.lineType_0          = (LineType)pr.vmethod_3();
         this.double_0            = pr.vmethod_4();
         this.edgeModifierFlags_0 = (EdgeModifierFlags)pr.vmethod_3();
         this.color_2             = pr.vmethod_5();
         this.double_1            = pr.vmethod_4();
         this.int_0                  = (int)pr.vmethod_2();
         this.int_1                  = (int)pr.vmethod_2();
         this.jitterAmount_0         = (JitterAmount)pr.vmethod_3();
         this.color_3                = pr.vmethod_5();
         this.int_2                  = (int)pr.vmethod_2();
         this.int_3                  = (int)pr.vmethod_1();
         this.int_4                  = (int)pr.vmethod_2();
         this.bool_0                 = pr.vmethod_0();
         this.edgeStyleApplication_0 = (EdgeStyleApplication)pr.vmethod_2();
         this.lineType_1             = (LineType)pr.vmethod_2();
     }
     else
     {
         this.edgeModel_0         = (EdgeModel)pr.vmethod_3();
         this.edgeStyleFlags_0    = (EdgeStyleFlags)pr.vmethod_3();
         this.color_0             = pr.vmethod_5();
         this.color_1             = pr.vmethod_5();
         this.lineType_0          = (LineType)pr.vmethod_3();
         this.lineType_1          = (LineType)pr.vmethod_3();
         this.double_0            = pr.vmethod_4();
         this.edgeModifierFlags_0 = (EdgeModifierFlags)pr.vmethod_3();
         this.color_2             = pr.vmethod_5();
         this.double_1            = pr.vmethod_4();
         this.int_0          = (int)(short)pr.vmethod_3();
         this.int_1          = (int)(short)pr.vmethod_3();
         this.jitterAmount_0 = (JitterAmount)pr.vmethod_3();
         this.color_3        = pr.vmethod_5();
         this.int_2          = (int)(short)pr.vmethod_3();
         this.int_3          = (int)(short)pr.vmethod_3();
         this.int_4          = (int)(short)pr.vmethod_3();
         this.bool_0         = pr.vmethod_0();
     }
 }
コード例 #20
0
        internal override void Read(Class434 or, Class259 ob)
        {
            base.Read(or, ob);
            Interface30 objectBitStream = or.ObjectBitStream;

            this.dxfPattern_0 = new DxfPattern();
            this.dxfPattern_0.Read(objectBitStream);
            this.double_0   = objectBitStream.imethod_8();
            this.vector3D_0 = objectBitStream.imethod_51();
            int num = objectBitStream.imethod_11();

            for (int index = 0; index < num; ++index)
            {
                DxfHatch.BoundaryPath boundaryPath = new DxfHatch.BoundaryPath();
                boundaryPath.Read(or, false);
                this.list_0.Add(boundaryPath);
            }
        }
コード例 #21
0
        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());
                }
            }
        }
コード例 #22
0
    protected void method_25(Class148 A_0, Class148 A_1)
    {
        int num = base.method_4();

        for (int i = 0; i < num; i++)
        {
            int      num4   = base.method_16(i);
            Class434 class3 = (Class434)base.method_18(i);
            class3.int_0 = 0;
            for (int j = 0; j < num; j++)
            {
                Class760 class2 = new Class760(A_0.method_16(j), A_1.method_16(j));
                if (!class2.method_1() && class2.method_0(num4))
                {
                    class3.int_0++;
                }
                if (class2.method_2() > num4)
                {
                    break;
                }
            }
        }
    }
コード例 #23
0
 internal void Read(Class434 or, DxfVisualStyle.Class486 pr)
 {
     if (or.Version < DxfVersion.Dxf24)
     {
         this.faceLightingModel_0   = (FaceLightingModel)pr.vmethod_3();
         this.faceLightingQuality_0 = (FaceLightingQuality)pr.vmethod_3();
         this.faceColorMode_0       = (FaceColorMode)pr.vmethod_3();
         this.double_0            = pr.vmethod_4();
         this.double_1            = pr.vmethod_4();
         this.color_1             = pr.vmethod_5();
         this.faceModifierFlags_0 = (FaceModifierFlags)pr.vmethod_3();
     }
     else
     {
         this.faceLightingModel_0   = (FaceLightingModel)pr.vmethod_3();
         this.faceLightingQuality_0 = (FaceLightingQuality)pr.vmethod_3();
         this.faceColorMode_0       = (FaceColorMode)pr.vmethod_3();
         this.faceModifierFlags_0   = (FaceModifierFlags)pr.vmethod_3();
         this.double_0 = pr.vmethod_4();
         this.double_1 = pr.vmethod_4();
         this.color_1  = pr.vmethod_5();
     }
 }
コード例 #24
0
        internal override void Read(Class434 or, Class259 ob)
        {
            base.Read(or, ob);
            Interface30 objectBitStream = or.ObjectBitStream;

            this.point2D_0 = objectBitStream.imethod_38();
            this.bool_2    = objectBitStream.imethod_6();
            this.double_0  = objectBitStream.imethod_8();
            ((DxfDimensionObjectContextData.Class313)ob).BlockHandle = or.method_100();
            this.bool_1   = objectBitStream.imethod_6();
            this.bool_4   = objectBitStream.imethod_6();
            this.bool_3   = objectBitStream.imethod_6();
            this.short_1  = objectBitStream.imethod_6() ? (short)1 : (short)0;
            this.bool_5   = objectBitStream.imethod_6();
            this.short_2  = objectBitStream.imethod_6() ? (short)1 : (short)0;
            this.enum33_0 = (DxfDimensionObjectContextData.Enum33)objectBitStream.imethod_18();
            this.bool_6   = objectBitStream.imethod_6();
            this.bool_7   = objectBitStream.imethod_6();
            if (this.bool_6)
            {
                this.bool_7 = !this.bool_7;
            }
            this.bool_8 = objectBitStream.imethod_6();
        }
コード例 #25
0
 internal override void Read(Class434 or, Class259 ob)
 {
     base.Read(or, ob);
     this.method_10(or, ob);
 }
コード例 #26
0
 internal virtual void vmethod_11(Class434 or, Class285 entityBuilder, long imageSize)
 {
     or.ObjectBitStream.imethod_52((int)imageSize);
 }
コード例 #27
0
 internal override void Read(Class434 or, Class259 objectBuilder)
 {
     or.method_90((Class285)objectBuilder);
 }
コード例 #28
0
 internal override void vmethod_8(Class434 or, Class259 objectBuilder)
 {
 }
コード例 #29
0
 public abstract void Visit(Class434 c);
コード例 #30
0
 internal void method_4(Class434 or, Class259 objectBuilder)
 {
     this.vmethod_8(or, objectBuilder);
     this.Read(or, objectBuilder);
 }
コード例 #31
0
 public override void Visit(Class434 c) { }
コード例 #32
0
 internal override void Read(Class434 or, Class259 ob)
 {
     or.method_8((Class260)ob, false);
     ((Class266)ob).Dependency = or.method_100();
 }