
The transfer function provides a floating point value for each provided input value.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | input | SFFloat | 0.0 | The input to convert using this transfer function. |
![]() | outputValue | (SFFloat) | 0.0 | This field converts the input value to a output value according to the specifications for the transfer function. |
![]() | outputDerivative | (SFFloat) | 0.0 | This field evaluates the derivative of the transfer function at the position of the input value. |
Public Member Functions | |
| virtual unsigned char | getChar (unsigned char x) |
| Get the value as unsigned byte. | |
| virtual H3D::H3DFloat | get (H3D::H3DFloat x)=0 |
| Get the value as H3DFloat. | |
| virtual H3D::H3DFloat | getDerivative (H3D::H3DFloat x) |
| Calculates the derivative of the transfer function. | |
| virtual string | defaultXMLContainerField () |
Public Attributes | |
| auto_ptr< H3D::SFFloat > | input |
| The input to convert using this transfer function. | |
| auto_ptr< GetValue > | outputValue |
| This field converts the input value to a output value according to the specifications for the transfer function. | |
| auto_ptr< GetDerivative > | outputDerivative |
| This field evaluates the derivative of the transfer function at the position of the input value. | |
| auto_ptr< H3D::Field > | functionChanged |
| Indicates that this function has changed. | |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
Protected Member Functions | |
| VHTKTransferFunctionNode (H3D::Inst< H3D::SFFloat > _input=0, H3D::Inst< GetValue > _outputValue=0, H3D::Inst< GetDerivative > _outputDerivative=0, H3D::Inst< H3D::Field > _functionChanged=0) | |
| Initializes local members. | |
Classes | |
| struct | GetDerivative |
| struct | GetValue |
| VHTK::VHTKTransferFunctionNode::VHTKTransferFunctionNode | ( | H3D::Inst< H3D::SFFloat > | _input = 0, |
|
| H3D::Inst< GetValue > | _outputValue = 0, |
|||
| H3D::Inst< GetDerivative > | _outputDerivative = 0, |
|||
| H3D::Inst< H3D::Field > | _functionChanged = 0 | |||
| ) | [protected] |
Initializes local members.
| virtual unsigned char VHTK::VHTKTransferFunctionNode::getChar | ( | unsigned char | x | ) | [inline, virtual] |
Get the value as unsigned byte.
| virtual H3D::H3DFloat VHTK::VHTKTransferFunctionNode::get | ( | H3D::H3DFloat | x | ) | [pure virtual] |
Get the value as H3DFloat.
Implemented in VHTK::PiecewiseFunction, VHTK::SampledFunction, VHTK::WindowFunction, and VHTK::ConstantFunction.
| virtual H3D::H3DFloat VHTK::VHTKTransferFunctionNode::getDerivative | ( | H3D::H3DFloat | x | ) | [inline, virtual] |
Calculates the derivative of the transfer function.
This implementation is only a forward difference approximation. Any subclass should, if possible, provide a more appropriate implementation.
Reimplemented in VHTK::PiecewiseFunction, VHTK::SampledFunction, VHTK::WindowFunction, and VHTK::ConstantFunction.
| auto_ptr< H3D::SFFloat > VHTK::VHTKTransferFunctionNode::input |
The input to convert using this transfer function.
| auto_ptr< GetValue > VHTK::VHTKTransferFunctionNode::outputValue |
This field converts the input value to a output value according to the specifications for the transfer function.
| auto_ptr< GetDerivative > VHTK::VHTKTransferFunctionNode::outputDerivative |
This field evaluates the derivative of the transfer function at the position of the input value.
Indicates that this function has changed.
1.5.6