
The Color function provides a floating point precison colour value for each provided input value.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | 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::SFFloat > | input |
| 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::Field > | functionChanged |
| 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 |
| VHTK::VHTKColorFunctionNode::VHTKColorFunctionNode | ( | H3D::Inst< H3D::SFFloat > | _input = 0, |
|
| H3D::Inst< GetValue > | _outputValue = 0, |
|||
| H3D::Inst< H3D::Field > | _functionChanged = 0 | |||
| ) | [protected] |
Initializes local members.
| virtual unsigned int VHTK::VHTKColorFunctionNode::getRGB | ( | unsigned char | x | ) | [inline, virtual] |
| 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.
| auto_ptr< H3D::SFFloat > VHTK::VHTKColorFunctionNode::input |
The input to convert using this color function.
| auto_ptr< GetValue > VHTK::VHTKColorFunctionNode::outputValue |
This field converts the input value to a output value according to the specifications for the color function.
Indicates that this function has changed.
1.5.6