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

#include <node_handle.h>

List of all members.

Public Member Functions

void addPoint (const double *pt, const double *col)
void copyFromChildNodes (NodeHandle children[8])
uint8_t getChildForNodePoint ()
double * getColor (double col[3]) const
float * getColor (float col[3]) const
Count getCount () const
const IdTypegetId () const
NodegetNode ()
NodeFilegetNodeFile () const
const NodeGeometrygetNodeGeometry () const
double * getPoint (double pnt[3]) const
bool hasChild (uint8_t i) const
bool hasNode () const
void initialize (Node *node_p, const IdType &id_p, NodeFile *node_file_p, const NodeGeometry &node_geom_p)
void invalidate ()
bool isEmpty () const
bool isLeaf () const
bool isModified () const
bool isNewFamily ()
bool isValid () const
 NodeHandle ()
bool operator== (const NodeHandle &nh) const
void setChild (uint8_t child)
void setPoint (const double *pt, const double *col, Count cnt=1)
std::string toString () const
void waitUntilLoaded ()
 ~NodeHandle ()

Private Attributes

IdType id
bool modified
bool new_family
Nodenode
NodeFilenode_file
NodeGeometry node_geom

Friends

class NodeCache

Detailed Description

Definition at line 12 of file node_handle.h.


Constructor & Destructor Documentation

Definition at line 15 of file node_handle.h.

Definition at line 19 of file node_handle.h.


Member Function Documentation

void megatree::NodeHandle::addPoint ( const double *  pt,
const double *  col 
) [inline]

Definition at line 115 of file node_handle.h.

void megatree::NodeHandle::copyFromChildNodes ( NodeHandle  children[8]) [inline]

Definition at line 149 of file node_handle.h.

Definition at line 93 of file node_handle.h.

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

Definition at line 105 of file node_handle.h.

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

Definition at line 110 of file node_handle.h.

Definition at line 71 of file node_handle.h.

const IdType& megatree::NodeHandle::getId ( ) const [inline]

Definition at line 53 of file node_handle.h.

Definition at line 134 of file node_handle.h.

Definition at line 139 of file node_handle.h.

Definition at line 144 of file node_handle.h.

double* megatree::NodeHandle::getPoint ( double  pnt[3]) const [inline]

Definition at line 99 of file node_handle.h.

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

Definition at line 81 of file node_handle.h.

bool megatree::NodeHandle::hasNode ( ) const [inline]

Definition at line 42 of file node_handle.h.

void megatree::NodeHandle::initialize ( Node node_p,
const IdType id_p,
NodeFile node_file_p,
const NodeGeometry node_geom_p 
) [inline]

Definition at line 25 of file node_handle.h.

Definition at line 47 of file node_handle.h.

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

Definition at line 65 of file node_handle.h.

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

Definition at line 76 of file node_handle.h.

bool megatree::NodeHandle::isModified ( ) const [inline]

Definition at line 60 of file node_handle.h.

Definition at line 164 of file node_handle.h.

bool megatree::NodeHandle::isValid ( ) const [inline]

Definition at line 36 of file node_handle.h.

bool megatree::NodeHandle::operator== ( const NodeHandle nh) const [inline]

Definition at line 129 of file node_handle.h.

void megatree::NodeHandle::setChild ( uint8_t  child) [inline]

Definition at line 86 of file node_handle.h.

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

Definition at line 122 of file node_handle.h.

std::string megatree::NodeHandle::toString ( ) const

Definition at line 9 of file node_handle.cpp.

Definition at line 169 of file node_handle.h.


Friends And Related Function Documentation

friend class NodeCache [friend]

Definition at line 175 of file node_handle.h.


Member Data Documentation

Definition at line 181 of file node_handle.h.

Definition at line 183 of file node_handle.h.

Definition at line 183 of file node_handle.h.

Definition at line 179 of file node_handle.h.

Definition at line 182 of file node_handle.h.

Definition at line 180 of file node_handle.h.


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


megatree_cpp
Author(s): Stuart Glaser
autogenerated on Mon Dec 2 2013 13:01:29