A node of the transfer function. More...
A simple class to wrap the x coordinate, colour, and opacity of a single transfer function node.
TFNode::TFNode | ( | void | ) |
TFNode::TFNode | ( | GLuint | x, | |
GLfloat | r, | |||
GLfloat | g, | |||
GLfloat | b, | |||
GLfloat | a | |||
) |
Constructor.
Constructs a node with the provided values.
x | The node's x-coordinate. | |
r | The red component of the node's colour. | |
g | The green component of the node's colour. | |
b | The blue component of the node's colour. | |
a | The alpha component of the node's colour. |
TFNode::~TFNode | ( | void | ) |
Default destructor.
bool TFNode::operator< | ( | const TFNode & | node | ) |
Less-than comparison operator.
Allows for ordering of the nodes. One node is less than another if its x coordinate is lower.
node | The other node to compare this one with. |