H3D::TypedSFNode< NodeType > Class Template Reference
[Field template modifiers.]

Template to make sure that the Node that is set in a SFNode is of a specified Node type. More...

#include <SFNode.h>

Inheritance diagram for H3D::TypedSFNode< NodeType >:

Inheritance graph
List of all members.

Public Member Functions

virtual NodeType * getValue (int id=0)
 Get the value casted to the NodeType.
virtual NodeType * getCastedValue (int id=0)
 Get the value casted to the NodeType.

Protected Types

typedef NodeType typed_class_type
 The subclass of value_type of that the TypedSFNode has made sure that the node is of.
typedef NodeType * typed_value_type
 A pointer type to the subclass value_type of that the TypedSFNode has made sure that the node is of.

Protected Member Functions

void onAdd (Node *n)
 We check that the type of the Node is of the correct type.

Detailed Description

template<class NodeType>
class H3D::TypedSFNode< NodeType >

Template to make sure that the Node that is set in a SFNode is of a specified Node type.

Parameters:
NodeType The expected Node type. Must be a subclass of Node.


Generated on Thu Aug 24 12:39:54 2006 for H3D API by  doxygen 1.4.5