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

DomCR / ACadSharp / 16263272139

14 Jul 2025 09:33AM UTC coverage: 75.046% (+0.03%) from 75.014%
16263272139

Pull #710

github

web-flow
Merge b348803a5 into 9d213afc7
Pull Request #710: dimension reference points

5861 of 8589 branches covered (68.24%)

Branch coverage included in aggregate %.

49 of 58 new or added lines in 7 files covered. (84.48%)

4 existing lines in 3 files now uncovered.

23308 of 30279 relevant lines covered (76.98%)

81438.94 hits per line

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

75.0
/src/ACadSharp/Entities/DimensionRadius.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        /// <summary>
7
        /// Represents a <see cref="DimensionRadius"/> entity.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.EntityDimension"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.RadialDimension"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.EntityDimension)]
14
        [DxfSubClass(DxfSubclassMarker.RadialDimension)]
15
        public class DimensionRadius : Dimension
16
        {
17
                /// <summary>
18
                /// Definition point for diameter, radius, and angular dimensions(in WCS).
19
                /// </summary>
20
                [DxfCodeValue(15, 25, 35)]
21
                public XYZ AngleVertex { get; set; }
1,594✔
22

23
                /// <summary>
24
                /// Leader length for radius and diameter dimensions.
25
                /// </summary>
26
                [DxfCodeValue(40)]
27
                public double LeaderLength { get; set; }
416✔
28

29
                /// <inheritdoc/>
30
                public override double Measurement
31
                {
32
                        get
33
                        {
36✔
34
                                return this.DefinitionPoint.DistanceFrom(this.AngleVertex);
36✔
35
                        }
36✔
36
                }
37

38
                /// <inheritdoc/>
39
                public override string ObjectName => DxfFileToken.EntityDimension;
845✔
40

41
                /// <inheritdoc/>
42
                public override ObjectType ObjectType => ObjectType.DIMENSION_RADIUS;
17✔
43

44
                /// <inheritdoc/>
45
                public override string SubclassMarker => DxfSubclassMarker.RadialDimension;
1,142✔
46

47
                /// <summary>
48
                /// Default constructor.
49
                /// </summary>
50
                public DimensionRadius() : base(DimensionType.Radius) { }
1,161✔
51

52
                /// <inheritdoc/>
53
                public override void ApplyTransform(Transform transform)
UNCOV
54
                {
×
NEW
55
                        base.ApplyTransform(transform);
×
NEW
56
                        this.AngleVertex = transform.ApplyTransform(this.AngleVertex);
×
UNCOV
57
                }
×
58

59
                /// <inheritdoc/>
60
                public override BoundingBox GetBoundingBox()
61
                {
1✔
62
                        return new BoundingBox(this.InsertionPoint - this.AngleVertex, this.InsertionPoint + this.AngleVertex);
1✔
63
                }
1✔
64
        }
65
}
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

© 2025 Coveralls, Inc