C# Class datastructures.DynamicOctreeNode

Represents an node of a DynamicOctree.
Afficher le fichier Open project: denniskb/asvo

Méthodes publiques

Свойство Type Description
dist float
position byte
vd VisualData

Méthodes publiques

Méthode Description
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.

Method Details

DynamicOctreeNode() public méthode

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() public méthode

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.
Résultat DynamicOctreeNode

getChildCount() public méthode

Returns the child count of this node.
public getChildCount ( ) : byte
Résultat byte

getFirstChild() public méthode

Returns the first child of this node.
public getFirstChild ( ) : DynamicOctreeNode
Résultat DynamicOctreeNode

getLeafCount() public méthode

Returns the total number of leaf nodes beneath this node.
public getLeafCount ( ) : uint
Résultat uint

getNextNode() public méthode

Returns the next child of this node's parent after this node.
public getNextNode ( ) : DynamicOctreeNode
Résultat DynamicOctreeNode

getNodeCount() public méthode

Returns the total number of this node's children + 1.
public getNodeCount ( ) : int
Résultat int

getPreLeafCount() public méthode

Returns the total number of pre-leaf nodes beneath this node. A pre-leaf is a node, whose children are leaves.
public getPreLeafCount ( ) : uint
Résultat uint

hasChildren() public méthode

Returns whether this node has child nodes or not.
public hasChildren ( ) : bool
Résultat bool

Property Details

dist public_oe property

public float dist
Résultat float

position public_oe property

public byte position
Résultat byte

vd public_oe property

public VisualData,datastructures vd
Résultat VisualData