#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:
-
| x | The x coordinate. |
| y | The y coordinate. |
[in,out] | color | The color. |
void TransferFunction::clearPoints |
( |
void |
) |
[static] |
void TransferFunction::drawTexture |
( |
GLuint & |
fbo ) |
[static] |
Draws transfer texture.
- Parameters:
-
[in,out] | fbo | Frame 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:
-
x | The x coordinate. |
y | The y coordinate. |
bool TransferFunction::selectPoint |
( |
float |
x, |
|
|
float |
y |
|
) |
| [static] |
Selects a point near the coordinates.
- Parameters:
-
x | The x coordinate. |
y | The y coordinate. |
- Returns:
- true if selected, false if not.
void TransferFunction::sortPoints |
( |
void |
) |
[static] |
The documentation for this class was generated from the following files: