Class TAbstractScriptNode
Unit
Declaration
type TAbstractScriptNode = class(TAbstractChildNode)
Description
Abstract node type for all scripting nodes.
Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 20).
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. Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 37). | |
![]() |
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
This item has no description. Showing description inherited from TX3DNode.Create. Constructor. Initializes various properties:
Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 40). | |
![]() |
destructor Destroy; override; |
|
This item has no description. Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 41). | |
![]() |
procedure ResetLastEventTimes; |
|
Clear the memory when the last events were generated from this script. TCasScriptVRMLValuesList.ResetLastEventTimes See also
Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 64). | |
![]() |
procedure CreateNode; override; |
|
Create node fields and events. Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dscriptnode.inc (line 28). | |
![]() |
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. Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dscriptnode.inc (line 29). | |
![]() |
procedure SetUrl(const Value: array of string); overload; |
|
This item has no description. Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dscriptnode.inc (line 35). | |
![]() |
procedure SetUrl(const Value: TCastleStringList); overload; |
|
This item has no description. Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dscriptnode.inc (line 37). | |
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. Source: src/scene/x3d/x3dnodes_standard_scripting.inc (line 57). | |
![]() |
property FdUrl: TMFString read FFdUrl; |
|
Internal wrapper for property Source: src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dscriptnode.inc (line 33). | |
Generated by PasDoc 0.17.0.snapshot.

