TransferFunction Class Reference

#include <TransferFunction.h>

Collaboration diagram for TransferFunction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~TransferFunction ()
void initVolume (Volume *_volume)
void draw ()
bool mouseButton (int button, int state, int x, int y)
bool mouseMove (int x, int y)
bool passiveMouseMove (int x, int y)
void init ()
void save (string fileName)
void load (string fileName)

Static Public Member Functions

static TransferFunctiongetInstance ()

Public Attributes

GLuint histogramTexture


Detailed Description

An interactive Transferfunction.

Constructor & Destructor Documentation

TransferFunction::~TransferFunction (  ) 

Destructor.


Member Function Documentation

TransferFunction * TransferFunction::getInstance (  )  [static]

Returns an instance of the TransferFunction.

Returns:
An instance of the TransferFunction.

void TransferFunction::initVolume ( Volume _volume  ) 

Computes the histogram for a given volume.

Parameters:
_volume The volume for which the histogram has to be computed.

void TransferFunction::draw (  ) 

Renderes the TransferFunction.

bool TransferFunction::mouseButton ( int  button,
int  state,
int  x,
int  y 
)

Handles the mousebutton interaction.

Parameters:
button The glut-mousebutton
state The glut-mousestate
x The x-position of the mouse.
y The y-position of the mouse.
Returns:
Returns true, when the mouse is within the transferfunction and false, when the mouse is somewhere else.

bool TransferFunction::mouseMove ( int  x,
int  y 
)

Handles the mousemovement interaction, when a button is pressed.

Parameters:
x The x-position of the mouse.
y The y-position of the mouse.
Returns:
Returns true, when the mouse is within the transferfunction and false, when the mouse is somewhere else.

bool TransferFunction::passiveMouseMove ( int  x,
int  y 
)

Handles the mousemovement interaction, when no button is pressed.

Parameters:
x The x-position of the mouse.
y The y-position of the mouse.
Returns:
Returns true, when the mouse is within the transferfunction and false, when the mouse is somewhere else.

void TransferFunction::init (  ) 

Initializes the TransferFunction

void TransferFunction::save ( string  fileName  ) 

Saves the TransferFunction.

Parameters:
fileName The filename where the TransferFunction should be saved.

void TransferFunction::load ( string  fileName  ) 

Loads a TransferFunction.

Parameters:
fileName The filename from where the TransferFunction should be loaded.


Member Data Documentation

GLuint TransferFunction::histogramTexture

Texture, where the color and alpha values can be looked up for each density value inside the shaders.


The documentation for this class was generated from the following files:
Generated on Tue Dec 4 01:54:47 2007 for Volumerenderer by  doxygen 1.5.4