Class TAbstractScriptNode
Unit
Declaration
type TAbstractScriptNode = class(TAbstractChildNode)
Description
Abstract node type for all scripting nodes.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractChildNode
- TAbstractScriptNode
Overview
Methods
procedure ExecuteScript(const FunctionName: string; ReceivedValue: TX3DField; const Time: TX3DTime); |
|
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
destructor Destroy; override; |
|
procedure ResetLastEventTimes; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: String; override; |
|
procedure SetUrl(const Value: array of string); overload; |
|
procedure SetUrl(const Value: TCastleStringList); overload; |
Properties
property Initialized: boolean read FInitialized write SetInitialized
default false; |
|
property FdUrl: TMFString read FFdUrl; |
Description
Methods
procedure ExecuteScript(const FunctionName: string; ReceivedValue: TX3DField; const Time: TX3DTime); |
|
This item has no description. |
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
This item has no description. Showing description inherited from TX3DNode.Create. Constructor. Initializes various properties:
|
destructor Destroy; override; |
|
This item has no description. |
procedure ResetLastEventTimes; |
|
Clear the memory when the last events were generated from this script. TCasScriptVRMLValuesList.ResetLastEventTimes See also
|
procedure CreateNode; override; |
|
Create node fields and events. |
class function ClassX3DType: String; override; |
|
This item has no description. Showing description inherited from TX3DNode.ClassX3DType. Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value. Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there. You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance. |
procedure SetUrl(const Value: array of string); overload; |
|
This item has no description. |
procedure SetUrl(const Value: TCastleStringList); overload; |
|
This item has no description. |
Properties
property Initialized: boolean read FInitialized write SetInitialized
default false; |
|
Initialize / shutdown of the script. Read this to know current script state, write this is to actually initialize/shutdown if needed. Note that the script node doesn't initialize itself at any point. Reason: there's no comfortable moment to do this: 1. in constructor some routes and such are not initialized yet, and we should initialize script after whole VRML graph is loaded. 2. tricks with BeforeTraverse, like used for TInlineNode, are not Ok, since scripts must work even when they are in the inactive part of VRML graph. If you want scripts to work, you have to initialize them yourself. If you use TCastleSceneCore, this will be done for you automatically when you change TCastleSceneCore.ProcessEvents, so it's not a problem in practice. |
property FdUrl: TMFString read FFdUrl; |
|
Internal wrapper for property |
Generated by PasDoc 0.16.0-snapshot.