1D texture holding empty-space skipping information. More...
#include <Octree.hpp>
Public Member Functions | |
Octree (const Tag &tag) | |
virtual | ~Octree () |
virtual void | associate () |
virtual void | finalize () |
virtual GLint | getRawFootprint () const |
virtual void | store (OctreeNode *node, int index, int depth) |
virtual string | toString () const |
Protected Member Functions | |
virtual void | load () |
Private Attributes | |
unsigned char * | textureData |
Dataset * | dataset |
int | height |
int | size |
int | threshold |
OctreeNode * | root |
string | link |
1D texture holding empty-space skipping information.
void associate | ( | ) | [virtual] |
Finds the 3D texture the octree should generate itself from.
NodeException | if the octree could not find the 3D texture. |
Reimplemented from Texture.
GLint getRawFootprint | ( | ) | const [inline, virtual] |
How much memory the texture uses if uncompressed.
Implements Texture.
void load | ( | ) | [protected, virtual] |
Loads the octree data into the texture.
void store | ( | OctreeNode * | node, | |
int | index, | |||
int | depth | |||
) | [virtual] |
Recursively stores an octree node and its children into the texture data.
[in] | node | Pointer to the octree node. |
[in] | index | Where to store the node in the array. |
[in] | depth | Current number of levels down from the root |
string toString | ( | ) | const [virtual] |
Forms a string using the Texture's attributes.
Reimplemented from Texture.