Beispiel #1
0
        public void Test_FenceTests_Clear()
        {
            Fence fence = makeSimpleRectangleFence();

            fence.Clear();

            Assert.False(fence.IsRectangle, "IsRectangle not initialised to false");
            Assert.False(fence.HasVertices, "New fence has vertices");
            Assert.True(fence.MinX > fence.MaxX && fence.MinY > fence.MaxY,
                        "Fence extents are not reveresed");
        }
Beispiel #2
0
        /// <summary>
        /// Removes all state related to a polygonal filter and sets the spatial mask type to off
        /// </summary>
        public void ClearSpatial()
        {
            IsSpatial = false;

            Fence.Clear();
        }