#include <VisTexture3D.hpp>
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 |
Texture3D::Texture3D | ( | string | filename | ) |
Load a .dat file.
filename | Path to .dat file. |
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.
GLuint Texture3D::gradient_name |
Gradient name.
unsigned short* Texture3D::pixels |
Pixel data
V3i Texture3D::size |
Size in voxels.
GLuint Texture3D::texture_name |
Texture name.