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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 hits per line

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

0.0
/src/ACadSharp/Objects/SpatialFilter.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System.Collections.Generic;
4

5
namespace ACadSharp.Objects
6
{
7
        /// <summary>
8
        /// Represents a <see cref="SpatialFilter"/> object.
9
        /// </summary>
10
        /// <remarks>
11
        /// Object name <see cref="DxfFileToken.ObjectSpatialFilter"/> <br/>
12
        /// Dxf class name <see cref="DxfSubclassMarker.SpatialFilter"/>
13
        /// </remarks>
14
        [DxfName(DxfFileToken.ObjectSpatialFilter)]
15
        [DxfSubClass(DxfSubclassMarker.SpatialFilter)]
16
        public class SpatialFilter : Filter
17
        {
18
                public const string SpatialFilterEntryName = "SPATIAL";
19

20
                /// <summary>
21
                /// Back clipping plane distance.
22
                /// </summary>
23
                [DxfCodeValue(41)]
UNCOV
24
                public double BackDistance { get; set; }
×
25

26
                /// <summary>
27
                /// Clip boundary definition point (in OCS). <br/>
28
                /// Always 2 or more based on an xref scale of 1.
29
                /// </summary>
30
                /// <remarks>
31
                /// 2 points = Rectangular clip boundary (lower-left and upper-right) <br/>
32
                /// greater than 2 points = Polyline clip boundary
33
                /// </remarks>
34
                [DxfCodeValue(DxfReferenceType.Count, 70)]
35
                [DxfCollectionCodeValue(10, 20)]
UNCOV
36
                public List<XY> BoundaryPoints { get; set; } = new List<XY>();
×
37

38
                /// <summary>
39
                /// Back clipping plane flag.
40
                /// </summary>
41
                [DxfCodeValue(73)]
UNCOV
42
                public bool ClipBackPlane { get; set; }
×
43

44
                /// <summary>
45
                /// Front clipping plane flag.
46
                /// </summary>
47
                [DxfCodeValue(72)]
UNCOV
48
                public bool ClipFrontPlane { get; set; }
×
49

50
                /// <summary>
51
                /// Clip boundary display enabled flag.
52
                /// </summary>
53
                [DxfCodeValue(71)]
UNCOV
54
                public bool DisplayBoundary { get; set; }
×
55

56
                /// <summary>
57
                /// Front clipping plane distance.
58
                /// </summary>
59
                [DxfCodeValue(40)]
UNCOV
60
                public double FrontDistance { get; set; }
×
61

62
                /// <summary>
63
                ///  This matrix transforms points into the coordinate system of the clip boundary.
64
                /// </summary>
UNCOV
65
                public Matrix4 InsertTransform { get; set; } = Matrix4.Identity;
×
66

67
                /// <summary>
68
                /// This matrix is the inverse of the original block reference (insert entity) transformation.
69
                ///  The original block reference transformation is the one that is applied to all entities in the block when the block reference is regenerated.
70
                /// </summary>
UNCOV
71
                public Matrix4 InverseInsertTransform { get; set; } = Matrix4.Identity;
×
72

73
                /// <summary>
74
                /// Specifies the three-dimensional normal unit vector for the object.
75
                /// </summary>
76
                [DxfCodeValue(210, 220, 230)]
UNCOV
77
                public XYZ Normal { get; set; } = XYZ.AxisZ;
×
78

79
                /// <inheritdoc/>
UNCOV
80
                public override string ObjectName => DxfFileToken.ObjectSpatialFilter;
×
81

82
                /// <inheritdoc/>
UNCOV
83
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
84

85
                /// <summary>
86
                /// Origin used to define the local coordinate system of the clip boundary.
87
                /// </summary>
88
                [DxfCodeValue(11, 21, 31)]
UNCOV
89
                public XYZ Origin { get; set; } = XYZ.AxisZ;
×
90

91
                /// <inheritdoc/>
92
                public override string SubclassMarker => DxfSubclassMarker.SpatialFilter;
×
93

94
                /// <inheritdoc/>
UNCOV
95
                public SpatialFilter() : base()
×
UNCOV
96
                {
×
UNCOV
97
                }
×
98

99
                /// <inheritdoc/>
100
                public SpatialFilter(string name) : base(name)
×
101
                {
×
102
                }
×
103
        }
104
}
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