TFTexture Class Reference

The transfer function. More...

List of all members.

Public Member Functions

Public Attributes


Detailed Description

This class represents the transfer function as an ordered collection of TFNodes. It also generates the texture for the transfer function used by the shaders.


Constructor & Destructor Documentation

TFTexture::TFTexture ( QWidget *  parent  ) 

Constructor.

Initialises the transfer function with a few default values.

Parameters:
parent The widget using this transfer function.
See also:
~TFTexture()
TFTexture::~TFTexture ( void   ) 

Default destructor.

See also:
TFTexture()

Member Function Documentation

void TFTexture::addNode ( TFNode  node  ) 

Adds a node to the transfer function.

Wrapper function for the underlying map's insert().

Parameters:
node The node to add.
See also:
removeNode(), clear()
void TFTexture::removeNode ( GLuint  x  ) 

Removes a node from the transfer function.

Wrapper function for the underlying map's erase().

Parameters:
x The x-coordinate of the node to remove.
See also:
addNode(), clear()
void TFTexture::clear ( void   ) 

Clears the transfer function.

Wrapper function for the underlying map's clear().

See also:
addNode(), removeNode()
std::map< int, TFNode >::iterator TFTexture::begin (  ) 

Returns an iterator at the first node.

Wrapper function for the underlying map's begin().

Returns:
The iterator at the beginning of the map.
See also:
end()
std::map< int, TFNode >::iterator TFTexture::end (  ) 

Returns an iterator at the last node.

Wrapper function for the underlying map's end().

Returns:
The iterator at the end of the map.
See also:
begin()
void TFTexture::setFBO ( GLuint  fbo,
GLuint  texture 
)

Sets the frame buffer and texture used to generate the transfer function.

Parameters:
fbo The OpenGL id of the frame buffer to use.
texture The OpenGL id of the texture to use.
void TFTexture::generate ( void   ) 

Generates the texture that stores the transfer function.

Draws a number of quads, interpolating linearly between the colours and opacities of each pair of nodes.

void TFTexture::setHistogram ( int *  histogram  ) 

Sets the histogram used in the transfer function display.

Parameters:
histogram The histogram data.

Generated on Thu Jan 21 00:31:55 2010 for simpleVIS by  doxygen 1.6.1