#include <node_handle.h>
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 IdType & | getId () const |
Node * | getNode () |
NodeFile * | getNodeFile () const |
const NodeGeometry & | getNodeGeometry () 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 |
Node * | node |
NodeFile * | node_file |
NodeGeometry | node_geom |
Friends | |
class | NodeCache |
Definition at line 12 of file node_handle.h.
megatree::NodeHandle::NodeHandle | ( | ) | [inline] |
Definition at line 15 of file node_handle.h.
megatree::NodeHandle::~NodeHandle | ( | ) | [inline] |
Definition at line 19 of file node_handle.h.
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.
uint8_t megatree::NodeHandle::getChildForNodePoint | ( | ) | [inline] |
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.
Count megatree::NodeHandle::getCount | ( | ) | const [inline] |
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.
Node* megatree::NodeHandle::getNode | ( | ) | [inline] |
Definition at line 134 of file node_handle.h.
NodeFile* megatree::NodeHandle::getNodeFile | ( | ) | const [inline] |
Definition at line 139 of file node_handle.h.
const NodeGeometry& megatree::NodeHandle::getNodeGeometry | ( | ) | const [inline] |
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.
void megatree::NodeHandle::invalidate | ( | ) | [inline] |
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.
bool megatree::NodeHandle::isNewFamily | ( | ) | [inline] |
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.
void megatree::NodeHandle::waitUntilLoaded | ( | ) | [inline] |
Definition at line 169 of file node_handle.h.
friend class NodeCache [friend] |
Definition at line 175 of file node_handle.h.
IdType megatree::NodeHandle::id [private] |
Definition at line 181 of file node_handle.h.
bool megatree::NodeHandle::modified [private] |
Definition at line 183 of file node_handle.h.
bool megatree::NodeHandle::new_family [private] |
Definition at line 183 of file node_handle.h.
Node* megatree::NodeHandle::node [private] |
Definition at line 179 of file node_handle.h.
NodeFile* megatree::NodeHandle::node_file [private] |
Definition at line 182 of file node_handle.h.
NodeGeometry megatree::NodeHandle::node_geom [private] |
Definition at line 180 of file node_handle.h.