Octree Class Reference
[Advanced]

1D texture holding empty-space skipping information. More...

#include <Octree.hpp>

Inheritance diagram for Octree:
Texture Node Applicable

List of all members.

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
Datasetdataset
int height
int size
int threshold
OctreeNoderoot
string link

Detailed Description

1D texture holding empty-space skipping information.


Constructor & Destructor Documentation

~Octree (  )  [virtual]

Deletes the texture data.

Todo:
Should recursively delete root.

Member Function Documentation

void associate (  )  [virtual]

Finds the 3D texture the octree should generate itself from.

Exceptions:
NodeException if the octree could not find the 3D texture.

Reimplemented from Texture.

void finalize (  )  [virtual]

Builds an octree and then calls load().

Reimplemented from Node.

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.

Parameters:
[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.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3