Class OctTree<T>.Node<TT>
Definition of a node of this octtree.
Inheritance
System.Object
OctTree<T>.Node<TT>
Implements
System.IComparable<OctTree.Node<TT>>
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()
Namespace: CADability
Assembly: CADability.dll
Syntax
public class Node<TT> : IComparable<OctTree<T>.Node<TT>> where TT : T
Type Parameters
| Name | Description |
|---|---|
| TT | The generic type, is the same type as the enclosing OctTree type |
Constructors
| Improve this Doc View SourceNode(OctTree<TT>, GeoPoint, Double)
Declaration
public Node(OctTree<TT> root, GeoPoint center, double size)
Parameters
| Type | Name | Description |
|---|---|---|
| OctTree<TT> | root | |
| GeoPoint | center | |
| System.Double | size |
Node(OctTree<TT>, OctTree<T>.Node<TT>, GeoPoint, Double)
Declaration
public Node(OctTree<TT> root, OctTree<T>.Node<TT> parent, GeoPoint center, double halfSize)
Parameters
| Type | Name | Description |
|---|---|---|
| OctTree<TT> | root | |
| OctTree.Node<TT> | parent | |
| GeoPoint | center | |
| System.Double | halfSize |
Fields
| Improve this Doc View Sourcecenter
Center of the cube definig this node.
Declaration
public GeoPoint center
Field Value
| Type | Description |
|---|---|
| GeoPoint |
cube
Cube defining this node
Declaration
public BoundingCube cube
Field Value
| Type | Description |
|---|---|
| BoundingCube |
deepth
Deepth of this node in the tree
Declaration
public int deepth
Field Value
| Type | Description |
|---|---|
| System.Int32 |
extension
Derived OctTrees may use this for whatever they need it
Declaration
public object extension
Field Value
| Type | Description |
|---|---|
| System.Object |
list
List of IOctTreeInsertable objects in this octtree
Declaration
public List<TT> list
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<TT> |
mmm
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> mmm
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
mmp
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> mmp
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
mpm
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> mpm
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
mpp
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> mpp
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
parent
Back reference to the parent node.
Declaration
public OctTree<T>.Node<TT> parent
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
pmm
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> pmm
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
pmp
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> pmp
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
ppm
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> ppm
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
ppp
the subtrees, may be null
Declaration
public OctTree<T>.Node<TT> ppp
Field Value
| Type | Description |
|---|---|
| OctTree.Node<TT> |
root
Back reference to the root.
Declaration
public OctTree<TT> root
Field Value
| Type | Description |
|---|---|
| OctTree<TT> |
size
"Radius" (half width) of the cube defining this node
Declaration
public double size
Field Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceCompare(OctTree<T>.Node<TT>, OctTree<T>.Node<TT>)
Declaration
public int Compare(OctTree<T>.Node<TT> x, OctTree<T>.Node<TT> y)
Parameters
| Type | Name | Description |
|---|---|---|
| OctTree.Node<TT> | x | |
| OctTree.Node<TT> | y |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Explicit Interface Implementations
| Improve this Doc View SourceIComparable<OctTree<T>.Node<TT>>.CompareTo(OctTree<T>.Node<TT>)
Declaration
int IComparable<OctTree<T>.Node<TT>>.CompareTo(OctTree<T>.Node<TT> other)
Parameters
| Type | Name | Description |
|---|---|---|
| OctTree.Node<TT> | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Implements
System.IComparable<T>