#include <TFNode.h>
Public Member Functions | |
| float | getAlpha () const |
| const Eigen::Vector3f & | getColor () const |
| void | setAlpha (float alpha) |
| void | setColor (Eigen::Vector3f &color) |
| TFNode () | |
| TFNode (Eigen::Vector3f &color, float alpha) | |
Friends | |
| ostream & | operator<< (ostream &str, TFNode obj) |
| istream & | operator>> (istream &str, TFNode &obj) |
| VolVis::VolumeRendering::TFNode::TFNode | ( | Eigen::Vector3f & | color, | |
| float | alpha | |||
| ) |
Constructor.
| alpha | defines the transparency of a node. 1 means completely opaque, 0 completely transparent. | |
| color | defines the color of a node. The vector stores the RGB-values of the color in the range of 0 to 1. |
| VolVis::VolumeRendering::TFNode::TFNode | ( | ) |
Default constructor. Sets color to black and alpha to 0.
| float VolVis::VolumeRendering::TFNode::getAlpha | ( | ) | const |
Returns the alpha value of this node. 1 means completely opaque, 0 completely transparent.
| const Eigen::Vector3f& VolVis::VolumeRendering::TFNode::getColor | ( | ) | const |
Returns the color value of this node in RGB-values in the range of 0 to 1.
| void VolVis::VolumeRendering::TFNode::setAlpha | ( | float | alpha | ) |
Sets a new alpha value. 1 means completely opaque, 0 completely transparent.
| alpha | new alpha value |
| void VolVis::VolumeRendering::TFNode::setColor | ( | Eigen::Vector3f & | color | ) |
Sets a new color value. The vector contains RGB-values in the range of 0 to 1.
| color | new color value |
| ostream& operator<< | ( | ostream & | str, | |
| TFNode | obj | |||
| ) | [friend] |
Writes the values of a transfer function node to a stream in the form rgba
| str | stream to which the data is written | |
| obj | TFnode which contains the data |
| istream& operator>> | ( | istream & | str, | |
| TFNode & | obj | |||
| ) | [friend] |
Reads out the values of a stream for a transfer function node. The data must be stored in the order rgba.
| str | stream from which the data is read | |
| obj | TFnode where the data is stored |
1.5.1-p1