TextureHandler Class Reference

#include <TextureHandler.h>

List of all members.

Public Member Functions

 TextureHandler ()
GLuint * create3DTextures (unsigned short *Dataset, int sizeX, int sizeY, int sizeZ, int interpolation, TProgressBar *ProgressBar)
void clearColorMap ()
void setColorMap (int x1, float y1, int x2, float y2, int r1, int g1, int b1, int r2, int g2, int b2, int peak, TLabel *Label2, TLabel *Label3)
float * dorendering (bool render, int rotX, int rotY, int scrollZ, int sampleRate, double augX, double augY, double augZ, unsigned short *Dataset, double sizeX, double sizeY, double sizeZ, TLabel *Label2, TProgressBar *ProgressBar)
void trilinterpolate (double x, double y, double z, unsigned short *Dataset, int sizeX, int sizeY, int sizeZ)
double interpolate (double c1, double v1, double c2, double v2, double c)

Private Attributes

GLuint * texture
int * marker
float colormap [4096]
float colormapR [4096]
float colormapG [4096]
float colormapB [4096]
double * rgba
String previousView


Constructor & Destructor Documentation

TextureHandler::TextureHandler (  )  [inline]


Member Function Documentation

GLuint* TextureHandler::create3DTextures ( unsigned short *  Dataset,
int  sizeX,
int  sizeY,
int  sizeZ,
int  interpolation,
TProgressBar *  ProgressBar 
) [inline]

creates the 3D textures out of the dataset

void TextureHandler::clearColorMap (  )  [inline]

void TextureHandler::setColorMap ( int  x1,
float  y1,
int  x2,
float  y2,
int  r1,
int  g1,
int  b1,
int  r2,
int  g2,
int  b2,
int  peak,
TLabel *  Label2,
TLabel *  Label3 
) [inline]

sets the colormaps for r,g,b,a

float* TextureHandler::dorendering ( bool  render,
int  rotX,
int  rotY,
int  scrollZ,
int  sampleRate,
double  augX,
double  augY,
double  augZ,
unsigned short *  Dataset,
double  sizeX,
double  sizeY,
double  sizeZ,
TLabel *  Label2,
TProgressBar *  ProgressBar 
) [inline]

performs the raycasting and renders the dataset to a 2D texture

void TextureHandler::trilinterpolate ( double  x,
double  y,
double  z,
unsigned short *  Dataset,
int  sizeX,
int  sizeY,
int  sizeZ 
) [inline]

This is called for the trilinearinterpolation.

double TextureHandler::interpolate ( double  c1,
double  v1,
double  c2,
double  v2,
double  c 
) [inline]

This here does the actual interpolation step


Member Data Documentation

GLuint* TextureHandler::texture [private]

int* TextureHandler::marker [private]

float TextureHandler::colormap[4096] [private]

float TextureHandler::colormapR[4096] [private]

float TextureHandler::colormapG[4096] [private]

float TextureHandler::colormapB[4096] [private]

double* TextureHandler::rgba [private]

String TextureHandler::previousView [private]


The documentation for this class was generated from the following file:
Generated on Wed Dec 13 00:04:19 2006 for Volukit by  doxygen 1.5.1-p1