Go to the documentation of this file.
34 #ifndef OCTOMAP_OCTREE_DATA_NODE_H
35 #define OCTOMAP_OCTREE_DATA_NODE_H
64 template<
typename NODE,
typename I>
110 std::istream&
readData(std::istream &s);
113 std::ostream&
writeData(std::ostream &s)
const;
std::istream & readData(std::istream &s)
Read node payload (data only) from binary stream.
Definition: OcTreeDataNode.hxx:114
OcTree base class, to be used with with any kind of OcTreeDataNode.
Definition: OcTreeBaseImpl.h:75
Basic node in the OcTree that can hold arbitrary data of type T in value.
Definition: OcTreeDataNode.h:63
T value
stored data (payload)
Definition: OcTreeDataNode.h:128
void setValue(T v)
sets value to be stored in the node
Definition: OcTreeDataNode.h:105
Definition: OcTreeDataNode.h:43
void copyData(const OcTreeDataNode &from)
Copy the payload (data in "value") from rhs into this node Opposed to copy ctor, this does not clone ...
Definition: OcTreeDataNode.hxx:73
~OcTreeDataNode()
Delete only own members. OcTree maintains tree structure and must have deleted children already.
Definition: OcTreeDataNode.hxx:65
T DataType
Make the templated data type available from the outside.
Definition: OcTreeDataNode.h:117
std::ostream & writeData(std::ostream &s) const
Write node payload (data only) to binary stream.
Definition: OcTreeDataNode.hxx:121
OCTOMAP_DEPRECATED(bool childExists(unsigned int i) const)
Test whether the i-th child exists.
T getValue() const
Definition: OcTreeDataNode.h:103
bool operator==(const OcTreeDataNode &rhs) const
Equals operator, compares if the stored value is identical.
Definition: OcTreeDataNode.hxx:78
Tables used by the Marching Cubes Algorithm The tables are from Paul Bourke's web page http://paulbou...
OcTreeDataNode()
Definition: OcTreeDataNode.hxx:37
AbstractOcTreeNode ** children
pointer to array of children, may be NULL
Definition: OcTreeDataNode.h:126
void allocChildren()
Definition: OcTreeDataNode.hxx:131