Blender
V3.3
|
#include <octree.h>
Public Member Functions | |
int | is_child_leaf (int index) const |
int | has_child (int index) const |
Node * | get_child (int count) |
const Node * | get_child (int count) const |
int | get_num_children () const |
int | get_child_count (int index) const |
int | get_child_index (int count) |
const int * | get_child_counts () const |
void | fill_children (Node *children[8], int leaf[8]) |
void | set_child (int count, Node *chd) |
void | set_internal_child (int index, int count, InternalNode *chd) |
void | set_leaf_child (int index, int count, LeafNode *chd) |
Public Attributes | |
unsigned char | has_child_bitfield |
unsigned char | child_is_leaf_bitfield |
Node * | children [0] |
Static Public Attributes | |
static int | numChildrenTable [256] |
static int | childrenCountTable [256][8] |
static int | childrenIndexTable [256][8] |
Get all children
Definition at line 98 of file octree.h.
References children, count, get_child(), has_child(), is_child_leaf(), and NULL.
|
inline |
Get the pointer to child index
Definition at line 67 of file octree.h.
References children, and count.
Referenced by fill_children().
|
inline |
|
inline |
Get the count of children
Definition at line 84 of file octree.h.
References childrenCountTable, and has_child_bitfield.
|
inline |
Definition at line 92 of file octree.h.
References childrenCountTable, and has_child_bitfield.
|
inline |
Definition at line 88 of file octree.h.
References childrenIndexTable, count, and has_child_bitfield.
|
inline |
Get total number of children
Definition at line 78 of file octree.h.
References has_child_bitfield, and numChildrenTable.
|
inline |
If child index exists
Definition at line 61 of file octree.h.
References has_child_bitfield.
Referenced by fill_children().
|
inline |
Test if child is leaf
Definition at line 55 of file octree.h.
References child_is_leaf_bitfield.
Referenced by fill_children().
Sets the child pointer
Definition at line 115 of file octree.h.
References children, and count.
Referenced by set_internal_child(), and set_leaf_child().
|
inline |
Definition at line 119 of file octree.h.
References count, has_child_bitfield, and set_child().
Definition at line 124 of file octree.h.
References child_is_leaf_bitfield, count, has_child_bitfield, and set_child().
unsigned char InternalNode::child_is_leaf_bitfield |
Definition at line 49 of file octree.h.
Referenced by is_child_leaf(), and set_leaf_child().
Node* InternalNode::children[0] |
Definition at line 52 of file octree.h.
Referenced by fill_children(), get_child(), and set_child().
|
static |
Definition at line 43 of file octree.h.
Referenced by get_child_count(), and get_child_counts().
|
static |
Definition at line 44 of file octree.h.
Referenced by get_child_index().
unsigned char InternalNode::has_child_bitfield |
Definition at line 47 of file octree.h.
Referenced by get_child_count(), get_child_counts(), get_child_index(), get_num_children(), has_child(), set_internal_child(), and set_leaf_child().
|
static |
Definition at line 42 of file octree.h.
Referenced by get_num_children().