C# Class datastructures.DynamicOctreeNode

Represents an node of a DynamicOctree.
ファイルを表示 Open project: denniskb/asvo

Public Properties

Property Type Description
dist float
position byte
vd VisualData

Public Methods

Method 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 method

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 method

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.
return DynamicOctreeNode

getChildCount() public method

Returns the child count of this node.
public getChildCount ( ) : byte
return byte

getFirstChild() public method

Returns the first child of this node.
public getFirstChild ( ) : DynamicOctreeNode
return DynamicOctreeNode

getLeafCount() public method

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

getNextNode() public method

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

getNodeCount() public method

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

getPreLeafCount() public method

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

hasChildren() public method

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

Property Details

dist public_oe property

public float dist
return float

position public_oe property

public byte position
return byte

vd public_oe property

public VisualData,datastructures vd
return VisualData