Public Member Functions
|virtual Type *||getCastedValueByIndex (typename MFNode::size_type i, int id=0)|
|Get the value casted to the Type. |
Protected Member Functions
|void||onAdd (Node *n)|
|We check that the type of the Node is of the correct type. |
This is the same as TypedMFNode but with the difference that the type does not have to be a node type but can be an abstract base class such as X3DMetadataObject. This makes it impossible however to override the getValueByIndex() function to return the correct type. Hence the getCastedValueByIndex() function must be used. You only have to use this template if you want to use one of the interface base classes such as X3DMetadataObject and H3DDisplayListObject as the Type parameter. In all other cases the TypedSFNode template is recommended.
|Type||The expected type.|