Class TAbstractTexture2DNode
Unit
Declaration
type TAbstractTexture2DNode = class(TAbstractSingleTextureNode)
Description
2D texture.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractAppearanceChildNode
- TAbstractTextureNode
- TAbstractSingleTextureNode
- TAbstractTexture2DNode
Overview
Methods
![]() |
constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override; |
![]() |
destructor Destroy; override; |
![]() |
function TextureImage: TEncodedImage; |
![]() |
function IsTextureImage: boolean; |
![]() |
function TextureComposite: TCompositeImage; |
![]() |
function TextureVideo: TVideo; |
![]() |
function IsTextureVideo: boolean; |
![]() |
procedure CreateNode; override; |
![]() |
class function ClassX3DType: String; override; |
Properties
![]() |
property IsTextureLoaded: boolean
read FIsTextureLoaded write SetIsTextureLoaded; |
![]() |
property TextureUsedFullUrl: String read FTextureUsedFullUrl; |
![]() |
property FdRepeatS: TSFBool read FFdRepeatS; |
![]() |
property RepeatS: Boolean read GetRepeatS write SetRepeatS; |
![]() |
property FdRepeatT: TSFBool read FFdRepeatT; |
![]() |
property RepeatT: Boolean read GetRepeatT write SetRepeatT; |
![]() |
property FdTextureProperties: TSFNode read FFdTextureProperties; |
![]() |
property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties; |
Description
Methods
![]() |
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. | |
![]() |
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 =
| |
![]() |
function IsTextureImage: boolean; |
|
This item has no description. | |
![]() |
function TextureComposite: TCompositeImage; |
|
This item has no description. | |
![]() |
function TextureVideo: TVideo; |
|
This item has no description. | |
![]() |
function IsTextureVideo: boolean; |
|
This item has no description. | |
![]() |
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. | |
Properties
![]() |
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 | |
![]() |
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)]);
| |
![]() |
property FdRepeatS: TSFBool read FFdRepeatS; |
|
Internal wrapper for property | |
![]() |
property RepeatS: Boolean read GetRepeatS write SetRepeatS; |
|
This item has no description. | |
![]() |
property FdRepeatT: TSFBool read FFdRepeatT; |
|
Internal wrapper for property | |
![]() |
property RepeatT: Boolean read GetRepeatT write SetRepeatT; |
|
This item has no description. | |
![]() |
property FdTextureProperties: TSFNode read FFdTextureProperties; |
|
Internal wrapper for property | |
![]() |
property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties; |
|
This item has no description. | |
Generated by PasDoc 0.16.0-snapshot.
