Click or drag to resize

QuadTreeTItem Class

Provides fast and efficient storage and retrieval of items with a rectangular area in a 2D coordinate system.
Inheritance Hierarchy
SystemObject
  Altaxo.GeometryQuadTreeTItem

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class QuadTree<TItem>

Type Parameters

TItem
Type of item to store in the quad tree. The item must contain enough information in order to calculate a bounding rectangle of the item.

The QuadTreeTItem type exposes the following members.

Constructors
 NameDescription
Public methodQuadTreeTItem(RectangleD2D, FuncTItem, RectangleD2D) Creates a quad tree for the specified rectangular boundaries.
Public methodQuadTreeTItem(RectangleD2D, FuncTItem, RectangleD2D, Int32) Creates a quad tree for the specified rectangular boundaries.
Public methodQuadTreeTItem(Int32, Int32, Int32, Int32, FuncTItem, RectangleD2D) Creates a quad tree for the specified rectangular boundaries. See remarks for further instructions how to choose the boundaries.
Top
Properties
 NameDescription
Public propertyBottomLeftChild The bottom left child of this node of the quad tree (or null if it not exists).
Public propertyBottomRightChild The bottom right child of this node of the quad tree (or null if it not exists).
Public propertyBoundaries The rectangular area that is covered by this node of the quad tree.
Public propertyCount Total number of items in this quad tree, including the items in its children.
Public propertyItemsAtThisLevel The items contained in this node of the quad tree (i.e. without (!) the items in the child nodes).
Public propertyTopLeftChild The top left child of this node of the quad tree (or null if it not exists).
Public propertyTopRightChild The top right child of this node of the quad tree (or null if it not exists).
Top
Methods
 NameDescription
Public methodAdd Adds an item to the quad tree.
Public methodAddRange Adds items to the quad tree.
Public methodClear Removes all items from this node of the quad tree and its children.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAllItems Get all items in this quad tree, including all items in the children.
Public methodGetAllItems(ListTItem) Get all items in this quad tree, including all items in the children.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetItems(RectangleD2D) Get the items in this tree that intersect with the specified rectangle.
Public methodGetItems(RectangleD2D, ListTItem) Get the items in this tree that intersect with the specified rectangle.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove Removes an item from the quad tree. If the item is removed successfully, and afterwards the quad has no items in its child quads anymore, the child quads will be removed as well.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also