TFNode Class Reference

A node of the transfer function. More...

List of all members.

Public Member Functions

Public Attributes


Detailed Description

A simple class to wrap the x coordinate, colour, and opacity of a single transfer function node.


Constructor & Destructor Documentation

TFNode::TFNode ( void   ) 

Default constructor.

Constructs a node with all values set to 0.

See also:
TFNode(), ~TFNode()
TFNode::TFNode ( GLuint  x,
GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)

Constructor.

Constructs a node with the provided values.

Parameters:
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.
See also:
TFNode(GLuint, GLfloat, GLfloat, GLfloat, GLfloat), ~TFNode()
TFNode::~TFNode ( void   ) 

Default destructor.

See also:
TFNode()

Member Function Documentation

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.

Parameters:
node The other node to compare this one with.
Returns:
true if this node's x-coordinate is lower than the other node's, false otherwise.

Generated on Thu Jan 21 00:31:55 2010 for simpleVIS by  doxygen 1.6.1