Class TAbstractTexture2DNode
Unit
Declaration
type TAbstractTexture2DNode = class(TAbstractSingleTextureNode)
Description
2D texture.
Source: scene/x3d/x3dnodes_standard_texturing.inc (line 177).
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractAppearanceChildNode
- TAbstractTextureNode
- TAbstractSingleTextureNode
- TAbstractTexture2DNode
Overview
Methods
| Public | constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override; |
| Public | destructor Destroy; override; |
| Public | function TextureImage: TEncodedImage; |
| Public | function IsTextureImage: boolean; |
| Public | function TextureComposite: TCompositeImage; |
| Public | function TextureVideo: TVideo; |
| Public | function IsTextureVideo: boolean; |
| Public | procedure CreateNode; override; |
| Public | class function ClassX3DType: String; override; |
Properties
| Public | property IsTextureLoaded: boolean
read FIsTextureLoaded write SetIsTextureLoaded; |
| Public | property TextureUsedFullUrl: String read FTextureUsedFullUrl; |
| Public | property FdRepeatS: TSFBool read FFdRepeatS; |
| Public | property RepeatS: Boolean read GetRepeatS write SetRepeatS; |
| Public | property FdRepeatT: TSFBool read FFdRepeatT; |
| Public | property RepeatT: Boolean read GetRepeatT write SetRepeatT; |
| Public | property FdTextureProperties: TSFNode read FFdTextureProperties; |
| Public | property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties; |
Description
Methods
| Public | 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: scene/x3d/x3dnodes_standard_texturing.inc (line 249). | |
| Public | destructor Destroy; override; |
|
This item has no description. Source: scene/x3d/x3dnodes_standard_texturing.inc (line 250). | |
| Public | function TextureImage: TEncodedImage; |
|
Calls to Note that either one of Note that when image failed to load, or URL was just empty, we can have IsTextureLoaded =
Source: scene/x3d/x3dnodes_standard_texturing.inc (line 277). | |
| Public | function IsTextureImage: boolean; |
|
This item has no description. Source: scene/x3d/x3dnodes_standard_texturing.inc (line 278). | |
| Public | function TextureComposite: TCompositeImage; |
|
This item has no description. Source: scene/x3d/x3dnodes_standard_texturing.inc (line 279). | |
| Public | function TextureVideo: TVideo; |
|
This item has no description. Source: scene/x3d/x3dnodes_standard_texturing.inc (line 280). | |
| Public | function IsTextureVideo: boolean; |
|
This item has no description. Source: scene/x3d/x3dnodes_standard_texturing.inc (line 281). | |
| Public | procedure CreateNode; override; |
|
Create node fields and events. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 35). | |
| Public | 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: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 36). | |
Properties
| Public | property IsTextureLoaded: boolean
read FIsTextureLoaded write SetIsTextureLoaded; |
|
Is the texture data already loaded. Since the texture will be loaded automatically, you're usually not interested in this property. You can read it to e.g. predict if next TextureImage / TextureVideo call may take a long time. (You know that if You can also set Note that Source: scene/x3d/x3dnodes_standard_texturing.inc (line 309). | |
| Public | property TextureUsedFullUrl: String read FTextureUsedFullUrl; |
|
From which URL did we load the texture data, if any. Once the texture data (image or video) is successfully loaded from some URL, this property is updated to this URL. When this property is empty then we didn't yet attempt to load (e.g. IsTextureLoaded = This is always a full, expanded (i.e. not relative) URL. It case of data: URI to embed data, this property contains the original data: URI. This is important, it allows to use this property e.g. to determine should we use some cached resource (TImageTextureResource.PrepareCore). When displaying this property to the user, remember to process this with UriDisplay, to avoid displaying very long URLs in such cases. Do it like this:
WritelnLog('Loaded from %s', [UriDisplay(MyImageTextureNode.TextureUsedFullUrl)]);
Source: scene/x3d/x3dnodes_standard_texturing.inc (line 335). | |
| Public | property FdRepeatS: TSFBool read FFdRepeatS; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 40). | |
| Public | property RepeatS: Boolean read GetRepeatS write SetRepeatS; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 42). | |
| Public | property FdRepeatT: TSFBool read FFdRepeatT; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 46). | |
| Public | property RepeatT: Boolean read GetRepeatT write SetRepeatT; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 48). | |
| Public | property FdTextureProperties: TSFNode read FFdTextureProperties; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 52). | |
| Public | property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.inc (line 54). | |
Generated by PasDoc 0.17.0.snapshot.