• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 20244298837

15 Dec 2025 07:08PM UTC coverage: 77.69% (-0.2%) from 77.847%
20244298837

push

github

web-flow
Merge pull request #919 from DomCR/image-reactor-fix

Image reactors

7578 of 10571 branches covered (71.69%)

Branch coverage included in aggregate %.

50 of 53 new or added lines in 9 files covered. (94.34%)

131 existing lines in 33 files now uncovered.

28098 of 35350 relevant lines covered (79.49%)

161916.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

35.29
/src/ACadSharp/Entities/Ole2Frame.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System.IO;
4

5
namespace ACadSharp.Entities
6
{
7
        /// <summary>
8
        /// Represents a <see cref="Ole2Frame"/> entity.
9
        /// </summary>
10
        /// <remarks>
11
        /// Object name <see cref="DxfFileToken.EntityOle2Frame"/> <br/>
12
        /// Dxf class name <see cref="DxfSubclassMarker.Ole2Frame"/>
13
        /// </remarks>
14
        [DxfName(DxfFileToken.EntityOle2Frame)]
15
        [DxfSubClass(DxfSubclassMarker.Ole2Frame)]
16
        public class Ole2Frame : Entity
17
        {
18
                /// <summary>
19
                /// Gets or sets the binary data associated with the object.
20
                /// </summary>
21
                [DxfCodeValue(310)]
22
                public byte[] BinaryData { get; set; }
×
23

24
                /// <summary>
25
                /// Gets or sets a value indicating whether the object resides in paper space.
26
                /// </summary>
27
                [DxfCodeValue(72)]
28
                public bool IsPaperSpace { get; set; } = false;
6✔
29

30
                /// <summary>
31
                /// Gets or sets the lower-right corner of the object in world coordinate system (WCS).
32
                /// </summary>
33
                [DxfCodeValue(11, 21, 31)]
34
                public XYZ LowerRightCorner { get; set; } = XYZ.Zero;
6✔
35

36
                /// <inheritdoc/>
UNCOV
37
                public override string ObjectName => DxfFileToken.EntityOle2Frame;
×
38

39
                /// <inheritdoc/>
UNCOV
40
                public override ObjectType ObjectType => ObjectType.OLE2FRAME;
×
41

42
                /// <summary>
43
                /// Gets or sets the type of the OLE (Object Linking and Embedding) object.
44
                /// </summary>
45
                /// <remarks>The <see cref="OleObjectType"/> property specifies the behavior and storage type of the OLE object:
46
                /// <list type="bullet">
47
                /// <item> <description><see cref="OleObjectType.Link"/>: The object is linked to an external source.</description>
48
                /// </item> <item> <description><see cref="OleObjectType.Embedded"/>: The object is embedded within the current document.</description> </item>
49
                /// <item> <description><see cref="OleObjectType.Static"/>: The object is a static representation.</description>
50
                /// </item>
51
                /// </list>
52
                /// </remarks>
53
                [DxfCodeValue(71)]
54
                public OleObjectType OleObjectType { get; set; } = OleObjectType.Embedded;
3✔
55

56
                /// <summary>
57
                /// Gets or sets the name of the application that created or modified the associated data.
58
                /// </summary>
59
                [DxfCodeValue(3)]
60
                public string SourceApplication { get; set; }
×
61

62
                /// <inheritdoc/>
63
                public override string SubclassMarker => DxfSubclassMarker.Ole2Frame;
1✔
64

65
                /// <summary>
66
                /// Gets or sets the upper-left corner of the object in world coordinate system (WCS).
67
                /// </summary>
68
                [DxfCodeValue(10, 20, 30)]
69
                public XYZ UpperLeftCorner { get; set; } = new XYZ(1, 1, 0);
6✔
70

71
                /// <summary>
72
                /// OLE version number.
73
                /// </summary>
74
                [DxfCodeValue(70)]
75
                public short Version { get; internal set; } = 2;
6✔
76

77
                /// <inheritdoc/>
78
                public override void ApplyTransform(Transform transform)
79
                {
×
80
                        this.UpperLeftCorner = transform.ApplyTranslation(this.UpperLeftCorner);
×
81
                        this.LowerRightCorner = transform.ApplyTranslation(this.LowerRightCorner);
×
82
                }
×
83

84
                /// <inheritdoc/>
85
                public override BoundingBox GetBoundingBox()
UNCOV
86
                {
×
UNCOV
87
                        return BoundingBox.FromPoints([this.LowerRightCorner, this.UpperLeftCorner]);
×
UNCOV
88
                }
×
89
        }
90
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc