29 #ifndef __H3DFUNCTIONNODE_H__
30 #define __H3DFUNCTIONNODE_H__
36 #include <HAPI/HAPIFunctionObject.h>
52 virtual void update();
57 Inst< MFDouble > _input = 0,
58 Inst< Value > _output = 0 );
65 return evaluate( &_input );
70 return evaluate( &_input );
Contains the MFDouble field class.
Contains the SFDouble field class.
Header file for X3DNode, X3D scene-graph node.
Field class that calculates the function value for the given input.
Definition: H3DFunctionNode.h:50
Base class for nodes evaluating function.
Definition: H3DFunctionNode.h:45
H3DDouble get(H3DDouble _input)
Same as evaluate(). For backwards compatability.
Definition: H3DFunctionNode.h:69
H3DDouble evaluate(H3DDouble _input)
Shortcut for functions just taking one input.
Definition: H3DFunctionNode.h:64
virtual H3DDouble evaluate(H3DDouble *input)=0
Evaluate the function for the given input.
H3DUniquePtr< Field > functionChanged
Field that indicated whether the function has changed.
Definition: H3DFunctionNode.h:98
virtual unsigned int nrInputValues()=0
Returns the number of input values the function takes.
virtual string defaultXMLContainerField()
Returns the default xml containerField attribute value.
Definition: H3DFunctionNode.h:83
H3DUniquePtr< Value > output
Output value from the function when evaluated for the input values given in the input field.
Definition: H3DFunctionNode.h:92
virtual HAPI::HAPIFunctionObject * getAsHAPIFunctionObject()
Returns the function as a HAPIFunctionObject.
Definition: H3DFunctionNode.h:81
H3DUniquePtr< MFDouble > input
Input value to the function to evaluate.
Definition: H3DFunctionNode.h:88
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
This abstract node type is the base type for all nodes in the X3D system.
Definition: X3DNode.h:65
H3D API namespace.
Definition: Anchor.h:38