VHTK::VHTKColorFunctionNode Class Reference
[Volumetric Data Nodes]

Inheritance diagram for VHTK::VHTKColorFunctionNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

The base type for all colour functions.

The Color function provides a floating point precison colour value for each provided input value.

X3D Interface

 NameTypeDefault valueDescription
input SFFloat   0.0   The input to convert using this Color function.  
outputValue (SFColor)   0.0   This field converts the input value to a output value according to the specifications for the colour function.  

Public Member Functions

virtual unsigned int getRGB (unsigned char x)
 Get the color as an unsigned integer: 0x00bbggrr.
virtual H3D::RGB get (H3D::H3DFloat x)=0
 Get the value as an RGB struct.
virtual string defaultXMLContainerField ()

Public Attributes

auto_ptr< H3D::SFFloatinput
 The input to convert using this color function.
auto_ptr< GetValue > outputValue
 This field converts the input value to a output value according to the specifications for the color function.
auto_ptr< H3D::FieldfunctionChanged
 Indicates that this function has changed.

Static Public Attributes

static H3D::H3DNodeDatabase database

Protected Member Functions

 VHTKColorFunctionNode (H3D::Inst< H3D::SFFloat > _input=0, H3D::Inst< GetValue > _outputValue=0, H3D::Inst< H3D::Field > _functionChanged=0)
 Initializes local members.

Classes

struct  GetValue


Constructor & Destructor Documentation

VHTK::VHTKColorFunctionNode::VHTKColorFunctionNode ( H3D::Inst< H3D::SFFloat _input = 0,
H3D::Inst< GetValue >  _outputValue = 0,
H3D::Inst< H3D::Field _functionChanged = 0 
) [protected]

Initializes local members.


Member Function Documentation

virtual unsigned int VHTK::VHTKColorFunctionNode::getRGB ( unsigned char  x  )  [inline, virtual]

Get the color as an unsigned integer: 0x00bbggrr.

Reimplemented in VHTK::RGBFunction.

virtual H3D::RGB VHTK::VHTKColorFunctionNode::get ( H3D::H3DFloat  x  )  [pure virtual]

Get the value as an RGB struct.

Implemented in VHTK::RGBFunction, VHTK::HSVFunction, and VHTK::ColorScaleFunction.


Member Data Documentation

The input to convert using this color function.

This field converts the input value to a output value according to the specifications for the color function.

Indicates that this function has changed.


Generated on Thu Mar 5 08:46:57 2009 for Volume Haptics Toolkit by  doxygen 1.5.6