Saga3D API Documentation  1.0-RC4
ISceneNodeFactory.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_SCENE_NODE_FACTORY_H_INCLUDED__
6 #define __I_SCENE_NODE_FACTORY_H_INCLUDED__
7 
8 
9 #include "ESceneNodeTypes.h"
10 
11 namespace saga
12 {
13 
14 namespace scene
15 {
16  class ISceneNode;
17 
19 
28  {
29  public:
31 
35  virtual ISceneNode* addSceneNode(E_SCENE_NODE_TYPE type, ISceneNode* parent= 0) = 0;
36 
38 
42  virtual ISceneNode* addSceneNode(const char* typeName, ISceneNode* parent= 0) = 0;
43 
45  virtual std::uint32_t getCreatableSceneNodeTypeCount() const = 0;
46 
48 
50  virtual E_SCENE_NODE_TYPE getCreateableSceneNodeType(std::uint32_t idx) const = 0;
51 
53 
55  virtual const char* getCreateableSceneNodeTypeName(std::uint32_t idx) const = 0;
56 
58 
60  virtual const char* getCreateableSceneNodeTypeName(E_SCENE_NODE_TYPE type) const = 0;
61  };
62 
63 
64 } // namespace scene
65 } // namespace saga
66 
67 #endif
68 
saga::scene::ISceneNode
Type for list of scene node animators.
Definition: ISceneNode.h:41
saga::scene::ISceneNodeFactory::addSceneNode
virtual ISceneNode * addSceneNode(E_SCENE_NODE_TYPE type, ISceneNode *parent=0)=0
adds a scene node to the scene graph based on its type id
saga::scene::E_SCENE_NODE_TYPE
E_SCENE_NODE_TYPE
An enumeration for all types of built-in scene nodes.
Definition: ESceneNodeTypes.h:17
saga::scene::ISceneNodeFactory::getCreatableSceneNodeTypeCount
virtual std::uint32_t getCreatableSceneNodeTypeCount() const =0
returns amount of scene node types this factory is able to create
saga::scene::ISceneNodeFactory::getCreateableSceneNodeTypeName
virtual const char * getCreateableSceneNodeTypeName(std::uint32_t idx) const =0
returns type name of a creatable scene node type by index
ESceneNodeTypes.h
saga::scene::ISceneNodeFactory::getCreateableSceneNodeType
virtual E_SCENE_NODE_TYPE getCreateableSceneNodeType(std::uint32_t idx) const =0
returns type of a creatable scene node type
saga
Definition: aabbox3d.h:11
saga::scene::ISceneNodeFactory
Interface for dynamic creation of scene nodes.
Definition: ISceneNodeFactory.h:27