VHTK::ConstantFunction Class Reference
[Volumetric Data Nodes]

Inheritance diagram for VHTK::ConstantFunction:

Inheritance graph
[legend]

List of all members.


Detailed Description

The constant function is a transfer function that simply returns a constant value for any input.

This value can of course be modified through routing, so this node can be used to set up a function of some other property than that used by the user of the node.

X3D Interface

 NameTypeDefault valueDescription
value SFFloat   1.0   The constant value.  
 
Derived from VHTKTransferFunctionNode  
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

 ConstantFunction (H3D::Inst< H3D::ThreadSafeSField< H3D::SFFloat > > _value=0)
 Initializes local members.
 ConstantFunction (H3D::H3DFloat value, H3D::Inst< H3D::ThreadSafeSField< H3D::SFFloat > > _value=0)
 Initializes local members.
H3D::H3DFloat get (H3D::H3DFloat x)
 Get the value as float.
H3D::H3DFloat getDerivative (H3D::H3DFloat x)
 Get the derivative.

Public Attributes

auto_ptr
< H3D::ThreadSafeSField
< H3D::SFFloat > > 
value
 The constant value.

Static Public Attributes

static H3D::H3DNodeDatabase database


Constructor & Destructor Documentation

VHTK::ConstantFunction::ConstantFunction ( H3D::Inst< H3D::ThreadSafeSField< H3D::SFFloat > >  _value = 0  ) 

Initializes local members.

VHTK::ConstantFunction::ConstantFunction ( H3D::H3DFloat  value,
H3D::Inst< H3D::ThreadSafeSField< H3D::SFFloat > >  _value = 0 
)

Initializes local members.


Member Function Documentation

H3D::H3DFloat VHTK::ConstantFunction::get ( H3D::H3DFloat  x  )  [virtual]

Get the value as float.

Implements VHTK::VHTKTransferFunctionNode.

H3D::H3DFloat VHTK::ConstantFunction::getDerivative ( H3D::H3DFloat  x  )  [inline, virtual]

Get the derivative.

Reimplemented from VHTK::VHTKTransferFunctionNode.


Member Data Documentation

The constant value.


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