Class TX3DNodesCache
Unit
Declaration
type TX3DNodesCache = class(TTexturesVideosCache)
Description
Cache for X3D nodes. Descends from TTexturesVideosCache, so can also cache textures and movies.
Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 21).
Hierarchy
- TObject
- TVideosCache
- TTexturesVideosCache
- TX3DNodesCache
Overview
Fields
| Public | Log: Boolean; |
Methods
| Protected | procedure CheckEmpty; |
| Public | function Video_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TVideo; |
| Public | procedure Video_DecReference(var Video: TVideo); |
| Public | function TextureImage_IncReference(const Url: String; out Composite: TCompositeImage; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
| Public | function TextureImage_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
| Public | function TextureImage_IncReference(const Url: String; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
| Public | procedure TextureImage_DecReference(var Image: TEncodedImage; var Composite: TCompositeImage); overload; |
| Public | procedure TextureImage_DecReference(var Image: TEncodedImage); overload; |
| Public | constructor Create; |
| Public | destructor Destroy; override; |
| Public | function LoadNode(const URL: String): TX3DRootNode; |
| Public | function IsCached(const URL: String): Boolean; |
| Public | function TryCopyNode(const URL: String): TX3DRootNode; |
| Public | procedure FreeNode(var Node: TX3DRootNode); |
| Public | function Empty: boolean; override; |
Properties
| Public | property OnEmpty: TProcedure read FOnEmpty write FOnEmpty; |
Description
Fields
| Public | Log: Boolean; |
|
This item has no description. | |
Methods
| Protected | procedure CheckEmpty; |
|
This item is declared in ancestor TVideosCache.
If cache is empty, calls OnEmpty. Note that OnEmpty may destroy current instance, so call | |
| Public | function Video_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TVideo; |
|
This item is declared in ancestor TVideosCache. This item has no description. | |
| Public | procedure Video_DecReference(var Video: TVideo); |
|
This item is declared in ancestor TVideosCache. This item has no description. | |
| Public | function TextureImage_IncReference(const Url: String; out Composite: TCompositeImage; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
|
This item is declared in ancestor TTexturesVideosCache. This item has no description. | |
| Public | function TextureImage_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
|
This item is declared in ancestor TTexturesVideosCache. This item has no description. | |
| Public | function TextureImage_IncReference(const Url: String; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload; |
|
This item is declared in ancestor TTexturesVideosCache. This item has no description. | |
| Public | procedure TextureImage_DecReference(var Image: TEncodedImage; var Composite: TCompositeImage); overload; |
|
This item is declared in ancestor TTexturesVideosCache. This item has no description. | |
| Public | procedure TextureImage_DecReference(var Image: TEncodedImage); overload; |
|
This item is declared in ancestor TTexturesVideosCache. This item has no description. | |
| Public | constructor Create; |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | function LoadNode(const URL: String): TX3DRootNode; |
|
Load model, just like X3DLoad.LoadNode but with a cache. URL must be absolute (not relative). Note that this should not be used if you plan to modify the model graph (for example by VRML/X3D events). In such case, the cache should not be used, as it would make all the model instances shared. For example, if you inline the same model multiple times, you could not modify one instance independent from another. | |
| Public | function IsCached(const URL: String): Boolean; |
|
Is the given URL cached. | |
| Public | function TryCopyNode(const URL: String): TX3DRootNode; |
|
If the given URL is cached, return a DeepCopy of the node from cache. Otherwise returns | |
| Public | procedure FreeNode(var Node: TX3DRootNode); |
|
Unload previously loaded here model. Node may be | |
| Public | function Empty: boolean; override; |
|
This item has no description. | |
Properties
| Public | property OnEmpty: TProcedure read FOnEmpty write FOnEmpty; |
|
This item is declared in ancestor TVideosCache. Called when cache becomes empty. This is only for internal usage by X3DNodes unit for now. | |
Generated by PasDoc 0.17.0.snapshot.