VHTK::VHTKTransferFunctionNode Class Reference
[Volumetric Data Nodes]

Inheritance diagram for VHTK::VHTKTransferFunctionNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

The base type for all transfer functions.

The transfer function provides a floating point value for each provided input value.

X3D Interface

 NameTypeDefault valueDescription
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::SFFloatinput
 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::FieldfunctionChanged
 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


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

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.


Member Data Documentation

The input to convert using this transfer function.

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

This field evaluates the derivative of the transfer function at the position of the input value.

Indicates that this function has changed.


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