TransferPointList Class Reference
#include <TransferPointList.h>
List of all members.
|
Public Member Functions |
| TransferPointList (TransferPoint *_head, TransferPoint *_tail, const float _pointSize) |
| ~TransferPointList () |
void | addPointIfPossible (const float x, const float r, const float g, const float b) |
void | removePointIfPossible (const float x) |
void | changeColorOfPoint (const float x, const float r, const float g, const float b) |
bool | isPointClicked (const float x) |
void | dragPoint (const float x) |
void | setPositionOfDraggedPoint (const float x) |
TransferPoint * | getHead () |
void | clean () |
void | constructList (std::list< TransferPoint * > liste) |
| TransferPointList (TransferPoint *_head, TransferPoint *_tail, const float _pointSize) |
| ~TransferPointList () |
void | addPointIfPossible (const float x, const float r, const float g, const float b) |
void | removePointIfPossible (const float x) |
void | changeColorOfPoint (const float x, const float r, const float g, const float b) |
bool | isPointClicked (const float x) |
void | dragPoint (const float x) |
void | setPositionOfDraggedPoint (const float x) |
TransferPoint * | getHead () |
void | clean () |
void | constructList (std::list< TransferPoint * > liste) |
Private Attributes |
TransferPoint * | head |
TransferPoint * | draggedPoint |
float | leftLimit |
float | rightLimit |
bool | draggedPointIsHead |
bool | draggedPointIsTail |
float | pointSize |
Detailed Description
The point list for the transfer function
Constructor & Destructor Documentation
Constructs a new TransferPointList object
- Parameters:
-
| _head | The head of the list |
| _tail | The tail of the list |
TransferPointList::~TransferPointList |
( |
|
) |
|
TransferPointList::~TransferPointList |
( |
|
) |
|
Member Function Documentation
void TransferPointList::addPointIfPossible |
( |
const float |
x, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b | |
|
) |
| | |
void TransferPointList::addPointIfPossible |
( |
const float |
x, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b | |
|
) |
| | |
Adds a point to the list if it is possible. If there is already a point at the desired place, the point can not be added.
- Parameters:
-
| x | x-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 |
void TransferPointList::changeColorOfPoint |
( |
const float |
x, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b | |
|
) |
| | |
void TransferPointList::changeColorOfPoint |
( |
const float |
x, |
|
|
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b | |
|
) |
| | |
Changes 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 |
void TransferPointList::clean |
( |
|
) |
|
void TransferPointList::clean |
( |
|
) |
|
Deletes all elements of the transfer point list
void TransferPointList::constructList |
( |
std::list< TransferPoint * > |
liste |
) |
|
void TransferPointList::constructList |
( |
std::list< TransferPoint * > |
liste |
) |
|
Constructs a new transfer point list out of a std::list of transfer points
- Parameters:
-
| list | list containing pointers to transfer points |
void TransferPointList::dragPoint |
( |
const float |
x |
) |
|
void TransferPointList::dragPoint |
( |
const float |
x |
) |
|
Drags the point corresponding to the coordinates
- Parameters:
-
| x | x-Coordinate of the point |
Returns the head of the list
bool TransferPointList::isPointClicked |
( |
const float |
x |
) |
|
bool TransferPointList::isPointClicked |
( |
const float |
x |
) |
|
Returns a boolean value indicating whether the click was on a transfer point
- Parameters:
-
| x | x-Coordinate of the point |
- Returns:
- boolean value indicating whether the click was on a transfer point
void TransferPointList::removePointIfPossible |
( |
const float |
x |
) |
|
void TransferPointList::removePointIfPossible |
( |
const float |
x |
) |
|
Removes the point of the list if that is possible, because if no point is at the desired place, no point can be removed.
- Parameters:
-
| x | x-Coordinate of the point |
void TransferPointList::setPositionOfDraggedPoint |
( |
const float |
x |
) |
|
void TransferPointList::setPositionOfDraggedPoint |
( |
const float |
x |
) |
|
Sets the position and alpha-value of the dragged point
- Parameters:
-
| x | x-Coordinate of the point |
Member Data Documentation
The currently dragged point
Indicates whether the dragged point is the head or not
Indicates whether the dragged point is the tail or not
The Head of the transfer point list
Left border (x-coordinate) for the dragged point
Right border (x-coordinate for the dragged point
The documentation for this class was generated from the following files:
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/header/TransferPointList.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/header/TransferPointList.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/src/TransferPointList.cpp
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/src/TransferPointList.cpp