8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FACTORY_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_FACTORY_H
33class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT
Factory
45 using CreateNodeMap = std::unordered_map<std::string, CreateNodeFunction>;
This class implements a x3d node factory.
Definition scenedescription/sdx/x3d/Factory.h:34
SDXNodeRef(*)(const SDXNode::SDXEnvironment *environment) CreateNodeFunction
Definition of a function pointer creating nodes.
Definition scenedescription/sdx/x3d/Factory.h:40
std::unordered_map< std::string, CreateNodeFunction > CreateNodeMap
Definition of an unordered map mapping names of node types to functions creating the nodes.
Definition scenedescription/sdx/x3d/Factory.h:45
static SDXNodeRef createNode(const SDXNode::SDXEnvironment *environment)
Creates a new node with a specific type.
static SDXNodeRef createNode(const std::string &type, const SDXNode::SDXEnvironment *environment)
Creates a new x3d node by the given type name of the node.
This class implements a node environment container.
Definition SDXNode.h:62
SmartObjectRef< SDXNode, Node > SDXNodeRef
Definition of a smart object reference for SDX scene description nodes.
Definition SDXNode.h:37
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15