TransferFunction Class Reference

#include <TransferFunction.h>

List of all members.

Public Member Functions

 TransferFunction ()
 ~TransferFunction ()
void initHistogram (FlowChannel *_channel)
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 (  ) 

Constructor.

TransferFunction::~TransferFunction (  ) 

Destructor.


Member Function Documentation

static TransferFunction* TransferFunction::getInstance (  )  [static]

Returns an instance of the TransferFunction.

Returns:
An instance of the TransferFunction.

void TransferFunction::initHistogram ( FlowChannel _channel  ) 

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 Sun Jan 20 12:10:08 2008 for FlowVis by  doxygen 1.5.4