Static Public Member Functions

TransferFunction Class Reference

#include <TransferFunction.hpp>

List of all members.

Static Public Member Functions

static void addPoint (float x, float y, Color *color)
 Adds a new point.
static void removePoint (float x, float y)
 Removes the point from the list.
static bool selectPoint (float x, float y)
 Selects a point near the coordinates.
static std::list< ControlPoint * > getControlPoints (void)
 Gets the control points.
static void sortPoints (void)
 Sort points.
static void clearPoints (void)
 Clears the points.
static void drawTexture (GLuint &tex)
 Draws transfer texture.

Member Function Documentation

void TransferFunction::addPoint ( float  x,
float  y,
Color color 
) [static]

Adds a new point.

Parameters:
xThe x coordinate.
yThe y coordinate.
[in,out]colorThe color.
void TransferFunction::clearPoints ( void   ) [static]

Clears the points.

void TransferFunction::drawTexture ( GLuint &  fbo ) [static]

Draws transfer texture.

Parameters:
[in,out]fboFrame buffer object to draw to.
std::list< ControlPoint * > TransferFunction::getControlPoints ( void   ) [static]

Gets the control points.

Returns:
control point list.
void TransferFunction::removePoint ( float  x,
float  y 
) [static]

Removes the point from the list.

Parameters:
xThe x coordinate.
yThe y coordinate.
bool TransferFunction::selectPoint ( float  x,
float  y 
) [static]

Selects a point near the coordinates.

Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if selected, false if not.
void TransferFunction::sortPoints ( void   ) [static]

Sort points.


The documentation for this class was generated from the following files: