#include <ImFusion/GL/TransferFunctionTissue.h>
Describes a single tissue of a transfer function.
More...
Describes a single tissue of a transfer function.
A tissue is described by a unique name and a set of key points.
- See also
- TransferFunction
|
|
using | ID = int |
| | Alias for the type uniquely identifying a KeyPoint within a tissue.
|
| |
◆ TransferFunctionTissue() [1/2]
Creates a new TF tissue with the given key points.
- Parameters
-
| keyPoints | Set of key points defining this tissue. |
◆ TransferFunctionTissue() [2/2]
Creates a new TF tissue with the given key points.
- Parameters
-
| keyPoints | Set of key points defining this tissue. |
◆ addKeyPoint()
| ID addKeyPoint |
( |
double | position, |
|
|
vec4 | color, |
|
|
bool | sort = true ) |
Adds a key point to this tissue.
- Parameters
-
| position | Absolute position of the new key point in TF space. |
| color | Color of the new key point. |
| sort | Whether to resort the data structure, otherwise you have to trigger sortKeyPoints yourself when done |
- Returns
- ID of the newly created key point.
◆ moveKeyPoint()
| void moveKeyPoint |
( |
ID | keyPoint, |
|
|
double | position ) |
Moves the key point to a new position.
Please do not change a key point's position member directly and use this method instead, since it ensures the correct sorting of the key points.
- Parameters
-
| keyPoint | ID of the key point to move. |
| position | New position in TF space. |
◆ removeKeyPoint()
| void removeKeyPoint |
( |
ID | keyPoint | ) |
|
Removes the given key point.
- Parameters
-
| keyPoint | ID of the key point to remove. |
◆ sortKeyPoints()
Sorts all key points by their absolute position.
Should be called every time you change a key point's position directly.
The documentation for this class was generated from the following file:
- ImFusion/GL/TransferFunctionTissue.h