#include <node.h>
Public Member Functions | |
void | addPoint (const NodeGeometry &ng, const double *pt_float, const double *col) |
void | copyFromChildNodes (Node *child_nodes[8]) |
void | copyToChildNode (uint8_t child, Node *child_node) const |
void | getChildBitOffset (uint8_t child, double *child_position) const |
void | getChildBitOffset (uint8_t child, uint64_t *child_position) const |
uint8_t | getChildForNodePoint () |
double * | getColor (double col[3]) const |
float * | getColor (float col[3]) const |
Count | getCount () const |
double * | getPoint (const NodeGeometry &ng, double pnt[3]) const |
bool | hasChild (uint8_t i) const |
bool | isEmpty () const |
bool | isLeaf () const |
Node () | |
Node & | operator= (const Node &n) |
bool | operator== (const Node &n) const |
void | reset () |
void | setChild (uint8_t i) |
void | setPoint (const NodeGeometry &ng, const double *pt, const double *col, Count cnt=1) |
Private Member Functions | |
void | fixed_to_float (const NodeGeometry &ng, const Point pt_fixed[3], double pt_float[3]) const |
void | float_to_fixed (const NodeGeometry &ng, const double pt_float[3], Point pt_fixed[3]) const |
Private Attributes | |
uint8_t | children |
Color | color [3] |
Count | count |
Point | point [3] |
Friends | |
class | NodeCache |
class | NodeFile |
class | NodeHandle |
megatree::Node::Node | ( | ) | [inline] |
void megatree::Node::addPoint | ( | const NodeGeometry & | ng, |
const double * | pt_float, | ||
const double * | col | ||
) | [inline] |
void megatree::Node::copyFromChildNodes | ( | Node * | child_nodes[8] | ) | [inline] |
void megatree::Node::copyToChildNode | ( | uint8_t | child, |
Node * | child_node | ||
) | const [inline] |
void megatree::Node::fixed_to_float | ( | const NodeGeometry & | ng, |
const Point | pt_fixed[3], | ||
double | pt_float[3] | ||
) | const [inline, private] |
void megatree::Node::float_to_fixed | ( | const NodeGeometry & | ng, |
const double | pt_float[3], | ||
Point | pt_fixed[3] | ||
) | const [inline, private] |
void megatree::Node::getChildBitOffset | ( | uint8_t | child, |
double * | child_position | ||
) | const [inline] |
void megatree::Node::getChildBitOffset | ( | uint8_t | child, |
uint64_t * | child_position | ||
) | const [inline] |
uint8_t megatree::Node::getChildForNodePoint | ( | ) | [inline] |
double* megatree::Node::getColor | ( | double | col[3] | ) | const [inline] |
float* megatree::Node::getColor | ( | float | col[3] | ) | const [inline] |
Count megatree::Node::getCount | ( | ) | const [inline] |
double* megatree::Node::getPoint | ( | const NodeGeometry & | ng, |
double | pnt[3] | ||
) | const [inline] |
bool megatree::Node::hasChild | ( | uint8_t | i | ) | const [inline] |
bool megatree::Node::isEmpty | ( | ) | const [inline] |
bool megatree::Node::isLeaf | ( | ) | const [inline] |
bool megatree::Node::operator== | ( | const Node & | n | ) | const [inline] |
void megatree::Node::reset | ( | ) | [inline] |
void megatree::Node::setChild | ( | uint8_t | i | ) | [inline] |
void megatree::Node::setPoint | ( | const NodeGeometry & | ng, |
const double * | pt, | ||
const double * | col, | ||
Count | cnt = 1 |
||
) | [inline] |
friend class NodeHandle [friend] |
uint8_t megatree::Node::children [private] |
Color megatree::Node::color[3] [private] |
Count megatree::Node::count [private] |
Point megatree::Node::point[3] [private] |