TfpList Class Reference
#include <TfpList.h>
List of all members.
Public Member Functions |
| TfpList (TfPoint *_head, TfPoint *_tail) |
void | addPoint (const float x, const float y, const float r, const float g, const float b, const float a) |
void | removePoint (const float x, const float y) |
void | changeColorOfPoint (const float x, const float y, const float r, const float g, const float b) |
bool | isPointClicked (const float x, const float y) |
void | dragPoint (const float x, const float y) |
void | setPositionOfDraggedPoint (const float x, const float y, const float a) |
TfPoint * | getHead () |
void | clean () |
void | constructList (std::list< TfPoint * > liste) |
Detailed Description
The point list for the transfer function The point list for the transfer function
Constructor & Destructor Documentation
Constructs a ne TfpList object
- Parameters:
-
| _head | The head of the list |
| _tail | The tail of the list |
Member Function Documentation
void TfpList::addPoint |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b, |
|
|
const float |
a | |
|
) |
| | |
Adding a point to the list if it is possible. If there is already a point at the desired place, the point would not be added.
- Parameters:
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
| r | R-Value of the color of the point |
| g | G-Value of the color of the point |
| b | B-Value of the color of the point |
| a | A-Value of the color of the point |
void TfpList::changeColorOfPoint |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b | |
|
) |
| | |
Change the color of the point that was selected
- Parameters:
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
| r | R-Value of the color of the point |
| g | G-Value of the color of the point |
| b | B-Value of the color of the point |
Delete all elements of the transfer point list
void TfpList::constructList |
( |
std::list< TfPoint * > |
liste |
) |
|
Construct a new transfer point list out of a std::list of tfpoints
- Parameters:
-
| list | List containing pointers to tfpoints |
void TfpList::dragPoint |
( |
const float |
x, |
|
|
const float |
y | |
|
) |
| | |
Drag the point corresponding to the coordinate
- Parameters:
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
Return the head of the list
- Returns:
- Head of the point list
bool TfpList::isPointClicked |
( |
const float |
x, |
|
|
const float |
y | |
|
) |
| | |
Return a boolean value indicating whether the click was on a transfer point x X-coordinate of the point y Y-coordinate of the point
- Returns:
- boolean Vlue indicating whether the click was on a tranfer point or not
void TfpList::removePoint |
( |
const float |
x, |
|
|
const float |
y | |
|
) |
| | |
Remove the point of the list if that is possible, because if ther is no point at the choosen place, no point can be removed
- Parameters:
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
void TfpList::setPositionOfDraggedPoint |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
a | |
|
) |
| | |
Set the position and alpha-value of the dragged point
- Parameters:
-
| x | X-coordinate of the point |
| y | Y-coordinate of the point |
| a | Alpha-Value of the point |
The documentation for this class was generated from the following files:
- D:/C++/Visualisierung/vislab/src/TfpList.h
- D:/C++/Visualisierung/vislab/src/TfpList.cpp