Class TSceneNodeFactory

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSceneNodeFactory = class(TReferenceCounted)

Description

Interface for dynamic creation of scene nodes.

Hierarchy

Overview

Methods

Public constructor Create(Reference: Pointer; Manager: TReferenceCounted; AutoDrop: Boolean = False);
Public function AddSceneNode(NType: TSceneNodeType; Parent: TSceneNode=nil): TSceneNode; overload; inline;
Public function AddSceneNode(const TypeName: AnsiString; Parent: TSceneNode=nil): TSceneNode; overload; inline;
Public function GetTypeName(NType: TSceneNodeType): AnsiString; inline;

Properties

Public property CreatableTypeCount: LongWord read GetCreatableTypeCount;
Public property CreatableTypeNames[Index: LongWord]: AnsiString read GetCreatableTypeName;
Public property CreatableTypes[Index: LongWord]: TSceneNodeType read GetCreatableType;

Description

Methods

Public constructor Create(Reference: Pointer; Manager: TReferenceCounted; AutoDrop: Boolean = False);

Constructor.
Only used internally.

Public function AddSceneNode(NType: TSceneNodeType; Parent: TSceneNode=nil): TSceneNode; overload; inline;

Adds a scene node to the scene graph based on its type id

Parameters
NType
Type of the scene node to add.
Parent
Parent scene node of the new node, can be null to add the scene node to the root.
Returns

The new scene node, or nil if not successful. This pointer should not be dropped. See IReferenceCounted::drop() for more information.

Public 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
TypeName
Type name of the scene node to add.
Parent
Parent scene node of the new node, can be null to add the scene node to the root.
Returns

The new scene node, or nil if not successful. This pointer should not be dropped. See TReferenceCounted.Drop() for more information.

Public function GetTypeName(NType: TSceneNodeType): AnsiString; inline;

Returns the corresponding type name for a scene node type.

Parameters
NType
The type to query.
Returns

The type name.

Properties

Public property CreatableTypeCount: LongWord read GetCreatableTypeCount;

The number of scene node types this factory is able to create.

Public property CreatableTypeNames[Index: LongWord]: AnsiString read GetCreatableTypeName;

Holds the names of all creatable scene node types.

Public property CreatableTypes[Index: LongWord]: TSceneNodeType read GetCreatableType;

Holds all creatable scene node types.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22