Description | Hierarchy | Fields | Methods | Properties |
type TSceneNodeFactory = class(TReferenceCounted)
Interface for dynamic creation of scene nodes.
![]() |
constructor Create(Reference: Pointer; Manager: TReferenceCounted; AutoDrop: Boolean = False); |
![]() |
function AddSceneNode(NType: TSceneNodeType; Parent: TSceneNode=nil): TSceneNode; overload; inline; |
![]() |
function AddSceneNode(const TypeName: AnsiString; Parent: TSceneNode=nil): TSceneNode; overload; inline; |
![]() |
function GetTypeName(NType: TSceneNodeType): AnsiString; inline; |
![]() |
property CreatableTypeCount: LongWord read GetCreatableTypeCount; |
![]() |
property CreatableTypeNames[Index: LongWord]: AnsiString read GetCreatableTypeName; |
![]() |
property CreatableTypes[Index: LongWord]: TSceneNodeType read GetCreatableType; |
![]() |
constructor Create(Reference: Pointer; Manager: TReferenceCounted; AutoDrop: Boolean = False); |
Constructor. |
![]() |
function AddSceneNode(NType: TSceneNodeType; Parent: TSceneNode=nil): TSceneNode; overload; inline; |
Adds a scene node to the scene graph based on its type id Parameters
ReturnsThe new scene node, or nil if not successful. This pointer should not be dropped. See IReferenceCounted::drop() for more information. |
![]() |
function AddSceneNode(const TypeName: AnsiString; Parent: TSceneNode=nil): TSceneNode; overload; inline; |
Adds a scene node to the scene graph based on its type name. Parameters
ReturnsThe new scene node, or nil if not successful. This pointer should not be dropped. See TReferenceCounted.Drop() for more information. |
![]() |
function GetTypeName(NType: TSceneNodeType): AnsiString; inline; |
Returns the corresponding type name for a scene node type. Parameters
ReturnsThe type name. |
![]() |
property CreatableTypeCount: LongWord read GetCreatableTypeCount; |
The number of scene node types this factory is able to create. |
![]() |
property CreatableTypeNames[Index: LongWord]: AnsiString read GetCreatableTypeName; |
Holds the names of all creatable scene node types. |
![]() |
property CreatableTypes[Index: LongWord]: TSceneNodeType read GetCreatableType; |
Holds all creatable scene node types. |