Texture3D Class Reference

#include <VisTexture3D.hpp>

List of all members.

Public Member Functions

 Texture3D (string filename)
unsigned short value (float x, float y, float z)
V3i get_size ()
GLuint get_texture_name ()
void bind (GLuint texUnit)
void bind (GLuint texUnit, GLuint texUnit2)
void computeGradientMap (FILE *loadF, string filename)

Public Attributes

unsigned short * pixels
V3i size
GLuint texture_name
GLuint gradient_name


Detailed Description

Wrapper for 3D Textures.

Constructor & Destructor Documentation

Texture3D::Texture3D ( string  filename  ) 

Load a .dat file.

Parameters:
filename Path to .dat file.


Member Function Documentation

void Texture3D::bind ( GLuint  texUnit,
GLuint  texUnit2 
)

Bind volume data and it's gradient to two texturing units.

void Texture3D::bind ( GLuint  texUnit  ) 

Bind volume data to a texturing unit.

void Texture3D::computeGradientMap ( FILE *  loadF,
string  filename 
)

Generate the gradient.

V3i Texture3D::get_size (  )  [inline]

Returns size.

GLuint Texture3D::get_texture_name (  )  [inline]

Returns texture handle.

unsigned short Texture3D::value ( float  x,
float  y,
float  z 
)

Query a value in the volume.


Member Data Documentation

Gradient name.

unsigned short* Texture3D::pixels

Pixel data

Size in voxels.

Texture name.


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

Generated on Wed Dec 10 14:41:01 2008 by  doxygen 1.5.7.1