Class Node<T>
Represents a node of a
QuadTree<T>. Nodes contain
items which have a spatial extent corresponding to the node's position
in the quad-tree.
Inheritance
System.Object
Node<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Mars.Common.dll
Syntax
[Serializable]
public class Node<T> : NodeBase<T>
Type Parameters
Constructors
|
Improve this Doc
View Source
Node(Envelope, Int32)
Declaration
public Node(Envelope env, int level)
Parameters
Type |
Name |
Description |
NetTopologySuite.Geometries.Envelope |
env |
|
System.Int32 |
level |
|
Properties
|
Improve this Doc
View Source
Envelope
Declaration
public Envelope Envelope { get; }
Property Value
Type |
Description |
NetTopologySuite.Geometries.Envelope |
|
Methods
|
Improve this Doc
View Source
CreateExpanded(Node<T>, Envelope)
Declaration
public static Node<T> CreateExpanded(Node<T> node, Envelope addEnv)
Parameters
Type |
Name |
Description |
Node<T> |
node |
|
NetTopologySuite.Geometries.Envelope |
addEnv |
|
Returns
|
Improve this Doc
View Source
CreateNode(Envelope)
Declaration
public static Node<T> CreateNode(Envelope env)
Parameters
Type |
Name |
Description |
NetTopologySuite.Geometries.Envelope |
env |
|
Returns
|
Improve this Doc
View Source
Find(Envelope)
Returns the smallest existing
node containing the envelope.
Declaration
public NodeBase<T> Find(Envelope searchEnv)
Parameters
Type |
Name |
Description |
NetTopologySuite.Geometries.Envelope |
searchEnv |
|
Returns
|
Improve this Doc
View Source
GetNode(Envelope)
Returns the sub-quad containing the envelope searchEnv
.
Creates the sub-quad if
it does not already exist.
Declaration
public Node<T> GetNode(Envelope searchEnv)
Parameters
Type |
Name |
Description |
NetTopologySuite.Geometries.Envelope |
searchEnv |
The envelope to search for |
Returns
Type |
Description |
Node<T> |
The sub-quad containing the search envelope. |
|
Improve this Doc
View Source
InsertNode(Node<T>)
Declaration
public void InsertNode(Node<T> node)
Parameters
Type |
Name |
Description |
Node<T> |
node |
|
|
Improve this Doc
View Source
IsSearchMatch(Envelope)
Declaration
protected override bool IsSearchMatch(Envelope searchEnv)
Parameters
Type |
Name |
Description |
NetTopologySuite.Geometries.Envelope |
searchEnv |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Mars.Common.Collections.NodeBase<T>.IsSearchMatch(NetTopologySuite.Geometries.Envelope)
Extension Methods