Class TX3DReaderNames
Unit
Declaration
type TX3DReaderNames = class(TX3DReader)
Description
Container tracking VRML/X3D node and prototype names during parsing. Used by both classic and XML VRML/X3D readers.
Source: scene/x3d/x3dnodes_load.inc (line 21).
Hierarchy
- TObject
- TX3DReader
- TX3DReaderNames
Overview
Fields
| Public | LengthConversionFactor: Float; |
| Public | ParentNode: TObject; |
Methods
| Public | constructor Create(const ABaseUrl: String; const AVersion: TX3DVersion); |
| Public | constructor CreateCopy(Source: TX3DReader); |
| Public | procedure UnitConversion(const Category, Name: string; const ConversionFactor: Float); |
| Public | constructor Create(const AAutoRemoveNodes: boolean; const ABaseUrl: String; const AVersion: TX3DVersion); |
| Public | constructor CreateCopy(const AAutoRemoveNodes: boolean; Source: TX3DReader); |
| Public | destructor Destroy; override; |
| Public | procedure ExtractNames(out APrototypes: TX3DPrototypeNames; out AExported: TX3DExportList; out AImported: TX3DNodeNames); |
| Public | procedure DoExport(const E: TX3DExport; const ExportedNodeName: String); |
| Public | procedure DoImport(const I: TX3DImport); |
| Public | function Bound(const Name: string; out NodeFinished: Boolean; const WarningIfImported: Boolean): TX3DNode; |
Properties
| Public | property BaseUrl: String read FBaseUrl; |
| Public | property Version: TX3DVersion read FVersion; |
| Public | property Nodes: TX3DNodeNames read FNodes; |
| Public | property Prototypes: TX3DPrototypeNames read FPrototypes; |
| Public | property Imported: TX3DNodeNames read FImported; |
| Public | property Exported: TX3DExportList read FExported; |
| Public | property Importable: TX3DImportableNames read FImportable; |
Description
Fields
| Public | LengthConversionFactor: Float; |
|
This item is declared in ancestor TX3DReader. This item has no description. | |
| Public | ParentNode: TObject; |
|
This item is declared in ancestor TX3DReader.
Parent node, always TX3DNode, | |
Methods
| Public | constructor Create(const ABaseUrl: String; const AVersion: TX3DVersion); |
|
This item is declared in ancestor TX3DReader. This item has no description. | |
| Public | constructor CreateCopy(Source: TX3DReader); |
|
This item is declared in ancestor TX3DReader. This item has no description. | |
| Public | procedure UnitConversion(const Category, Name: string; const ConversionFactor: Float); |
|
This item is declared in ancestor TX3DReader. Apply unit conversion. If this is angle conversion factor, it is stored and used internally. If this is length conversion factor, we update our LengthConversionFactor property, but it's callers responsibility to make use of it. (You want to use here TX3DRootNode.Scale.) | |
| Public | constructor Create(const AAutoRemoveNodes: boolean; const ABaseUrl: String; const AVersion: TX3DVersion); |
|
This item has no description. | |
| Public | constructor CreateCopy(const AAutoRemoveNodes: boolean; Source: TX3DReader); |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | procedure ExtractNames(out APrototypes: TX3DPrototypeNames; out AExported: TX3DExportList; out AImported: TX3DNodeNames); |
|
Extract names, before destructing this object. This method can be used only right before calling the destructor. It copies the prototype, exported, imported names list (names visible from the outside), and sets them to | |
| Public | procedure DoExport(const E: TX3DExport; const ExportedNodeName: String); |
|
Set E.ExportedNode based on ExportedNodeName, and modify Exported list to handle the export. | |
| Public | procedure DoImport(const I: TX3DImport); |
|
modify Imported list to handle the export. | |
| Public | function Bound(const Name: string; out NodeFinished: Boolean; const WarningIfImported: Boolean): TX3DNode; |
|
Find node bound to given name. Looks in Nodes and Imported. Returns | |
Properties
| Public | property BaseUrl: String read FBaseUrl; |
|
This item is declared in ancestor TX3DReader. Base path for resolving URLs from nodes in this namespace. See TX3DNode.BaseUrl. | |
| Public | property Version: TX3DVersion read FVersion; |
|
This item is declared in ancestor TX3DReader. VRML/X3D version number. For resolving node class names and other stuff. | |
| Public | property Nodes: TX3DNodeNames read FNodes; |
|
Current namespace for DEF/USE. This is a list without duplicates with all currently known node names. Objects[] of this list point to actual TX3DNode instances. If many instances had the same NodeName, only the last instance will be referenced here, following VRML spec (last DEF takes precedence). Internal notes: ParseNode doesn't modify this, only TX3DNode.Parse can do this. | |
| Public | property Prototypes: TX3DPrototypeNames read FPrototypes; |
|
Current namespace of PROTO names. | |
| Public | property Imported: TX3DNodeNames read FImported; |
|
Currently IMPORTed nodes. The nodes on this list are "bound" to their aliases, as this is the name under which they are visible in the current namespace. Alias is the identifier after the "AS" keyword in the "IMPORT" declaration (or, if no "AS xxx" clause was present, then alias is just the name under which node was exported). | |
| Public | property Exported: TX3DExportList read FExported; |
|
Currently EXPORTed nodes from this scene. | |
| Public | property Importable: TX3DImportableNames read FImportable; |
|
Currently loaded Inlines with importable nodes. The mechanism is that when you load an Inline node, the resulting "Exported" nodes (from the namespace within the Inline) get added to this "Importable" list. Then the "IMPORT" clause in this namespace can make "Importable" nodes into actually "Imported". This is a list with strings representing Inline node names (there's no way to IMPORT from unnamed Inline nodes). Objects[] of this list are instances of TX3DNodeNames corresponding to exported names within the inline. | |
Generated by PasDoc 0.17.0.snapshot.