C# Класс datastructures.DynamicOctreeNode

Represents an node of a DynamicOctree.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
dist float
position byte
vd VisualData

Открытые методы

Метод Описание
DynamicOctreeNode ( byte position )

Creates a new empty node with no child nodes.

addChild ( byte withPos ) : DynamicOctreeNode

Adds a child with the specified node to this node, iff there is no child node with position withPos yet. In there is already such a node, it is returned.

getChildCount ( ) : byte

Returns the child count of this node.

getFirstChild ( ) : DynamicOctreeNode

Returns the first child of this node.

getLeafCount ( ) : uint

Returns the total number of leaf nodes beneath this node.

getNextNode ( ) : DynamicOctreeNode

Returns the next child of this node's parent after this node.

getNodeCount ( ) : int

Returns the total number of this node's children + 1.

getPreLeafCount ( ) : uint

Returns the total number of pre-leaf nodes beneath this node. A pre-leaf is a node, whose children are leaves.

hasChildren ( ) : bool

Returns whether this node has child nodes or not.

Описание методов

DynamicOctreeNode() публичный Метод

Creates a new empty node with no child nodes.
public DynamicOctreeNode ( byte position )
position byte The position of this node relative to /// its parent.

addChild() публичный Метод

Adds a child with the specified node to this node, iff there is no child node with position withPos yet. In there is already such a node, it is returned.
public addChild ( byte withPos ) : DynamicOctreeNode
withPos byte The position of the child node relative to this node.
Результат DynamicOctreeNode

getChildCount() публичный Метод

Returns the child count of this node.
public getChildCount ( ) : byte
Результат byte

getFirstChild() публичный Метод

Returns the first child of this node.
public getFirstChild ( ) : DynamicOctreeNode
Результат DynamicOctreeNode

getLeafCount() публичный Метод

Returns the total number of leaf nodes beneath this node.
public getLeafCount ( ) : uint
Результат uint

getNextNode() публичный Метод

Returns the next child of this node's parent after this node.
public getNextNode ( ) : DynamicOctreeNode
Результат DynamicOctreeNode

getNodeCount() публичный Метод

Returns the total number of this node's children + 1.
public getNodeCount ( ) : int
Результат int

getPreLeafCount() публичный Метод

Returns the total number of pre-leaf nodes beneath this node. A pre-leaf is a node, whose children are leaves.
public getPreLeafCount ( ) : uint
Результат uint

hasChildren() публичный Метод

Returns whether this node has child nodes or not.
public hasChildren ( ) : bool
Результат bool

Описание свойств

dist публичное свойство

public float dist
Результат float

position публичное свойство

public byte position
Результат byte

vd публичное свойство

public VisualData,datastructures vd
Результат VisualData