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

DomCR / ACadSharp / 16808321049

07 Aug 2025 03:06PM UTC coverage: 78.476% (+3.3%) from 75.198%
16808321049

push

github

web-flow
Merge pull request #726 from DomCR/issue-719_xclip-SPATIAL_FILTER

issue-719 SPATIAL_FILTER

6487 of 8986 branches covered (72.19%)

Branch coverage included in aggregate %.

181 of 243 new or added lines in 13 files covered. (74.49%)

171 existing lines in 3 files now uncovered.

25243 of 31447 relevant lines covered (80.27%)

105162.02 hits per line

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

78.95
/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)]
24
                public double BackDistance { get; set; }
1✔
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)]
36
                public List<XY> BoundaryPoints { get; set; } = new List<XY>();
2,009✔
37

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

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

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

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

62
                /// <summary>
63
                ///  This matrix transforms points into the coordinate system of the clip boundary.
64
                /// </summary>
65
                public Matrix4 InsertTransform { get; set; } = Matrix4.Identity;
868✔
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>
71
                public Matrix4 InverseInsertTransform { get; set; } = Matrix4.Identity;
1,300✔
72

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

79
                /// <inheritdoc/>
80
                public override string ObjectName => DxfFileToken.ObjectSpatialFilter;
1,260✔
81

82
                /// <inheritdoc/>
83
                public override ObjectType ObjectType => ObjectType.UNLISTED;
4✔
84

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

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

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

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