Public Member Functions | Private Member Functions | Private Attributes | Friends
megatree::Node Class Reference

#include <node.h>

List of all members.

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 ()
Nodeoperator= (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

Detailed Description

Definition at line 23 of file node.h.


Constructor & Destructor Documentation

megatree::Node::Node ( ) [inline]

Definition at line 31 of file node.h.


Member Function Documentation

void megatree::Node::addPoint ( const NodeGeometry ng,
const double *  pt_float,
const double *  col 
) [inline]

Definition at line 203 of file node.h.

void megatree::Node::copyFromChildNodes ( Node child_nodes[8]) [inline]

Definition at line 70 of file node.h.

void megatree::Node::copyToChildNode ( uint8_t  child,
Node child_node 
) const [inline]

Definition at line 128 of file node.h.

void megatree::Node::fixed_to_float ( const NodeGeometry ng,
const Point  pt_fixed[3],
double  pt_float[3] 
) const [inline, private]

Definition at line 291 of file node.h.

void megatree::Node::float_to_fixed ( const NodeGeometry ng,
const double  pt_float[3],
Point  pt_fixed[3] 
) const [inline, private]

Definition at line 281 of file node.h.

void megatree::Node::getChildBitOffset ( uint8_t  child,
double *  child_position 
) const [inline]

Definition at line 163 of file node.h.

void megatree::Node::getChildBitOffset ( uint8_t  child,
uint64_t *  child_position 
) const [inline]

Definition at line 170 of file node.h.

Definition at line 119 of file node.h.

double* megatree::Node::getColor ( double  col[3]) const [inline]

Definition at line 185 of file node.h.

float* megatree::Node::getColor ( float  col[3]) const [inline]

Definition at line 194 of file node.h.

Count megatree::Node::getCount ( ) const [inline]

Definition at line 45 of file node.h.

double* megatree::Node::getPoint ( const NodeGeometry ng,
double  pnt[3] 
) const [inline]

Definition at line 178 of file node.h.

bool megatree::Node::hasChild ( uint8_t  i) const [inline]

Definition at line 57 of file node.h.

bool megatree::Node::isEmpty ( ) const [inline]

Definition at line 39 of file node.h.

bool megatree::Node::isLeaf ( ) const [inline]

Definition at line 51 of file node.h.

Node& megatree::Node::operator= ( const Node n) [inline]

Definition at line 259 of file node.h.

bool megatree::Node::operator== ( const Node n) const [inline]

Definition at line 241 of file node.h.

void megatree::Node::reset ( ) [inline]

Definition at line 253 of file node.h.

void megatree::Node::setChild ( uint8_t  i) [inline]

Definition at line 63 of file node.h.

void megatree::Node::setPoint ( const NodeGeometry ng,
const double *  pt,
const double *  col,
Count  cnt = 1 
) [inline]

Definition at line 224 of file node.h.


Friends And Related Function Documentation

friend class NodeCache [friend]

Definition at line 269 of file node.h.

friend class NodeFile [friend]

Definition at line 26 of file node.h.

friend class NodeHandle [friend]

Definition at line 27 of file node.h.


Member Data Documentation

uint8_t megatree::Node::children [private]

Definition at line 276 of file node.h.

Definition at line 273 of file node.h.

Definition at line 271 of file node.h.

Definition at line 272 of file node.h.


The documentation for this class was generated from the following file:


megatree_cpp
Author(s): Stuart Glaser
autogenerated on Thu Nov 28 2013 11:30:34