Class TComposedCubeMapTextureNode

Unit

Declaration

type TComposedCubeMapTextureNode = class(TAbstractEnvironmentTextureNode)

Description

Cube environment map texture defined as a six individual 2D texture nodes.

Hierarchy

Overview

Methods

Public constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override;
Public function LoadSides: boolean;
Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;

Properties

Public property FdBack: TSFNode read FFdBack;
Public property Back: TAbstractTexture2DNode read GetBack write SetBack;
Public property FdBottom: TSFNode read FFdBottom;
Public property Bottom: TAbstractTexture2DNode read GetBottom write SetBottom;
Public property FdFront: TSFNode read FFdFront;
Public property Front: TAbstractTexture2DNode read GetFront write SetFront;
Public property FdLeft: TSFNode read FFdLeft;
Public property Left: TAbstractTexture2DNode read GetLeft write SetLeft;
Public property FdRight: TSFNode read FFdRight;
Public property Right: TAbstractTexture2DNode read GetRight write SetRight;
Public property FdTop: TSFNode read FFdTop;
Public property Top: TAbstractTexture2DNode read GetTop write SetTop;
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:

  • Name, BaseUrl are initialized from given parameters.

  • The Fields, Events lists are filled in every descendant, to have all the fields/events defined by the specification.

  • DefaultContainerField, and other node-specific stuff, is filled in descendants. This is actually implemented in CreateNode, that is called at the end of this constructor.

Public function LoadSides: boolean;

Make sure all 6 sides are loaded. Make sure that all 6 fields for each cube map side are assigned, are TAbstractTexture2DNode instance (X3D spec requires it), load them, and check are they TCastleImage (we cannot support TGPUCompressedImage when loading cubemaps this way, as we have to rotate images from ComposedCubeMapTextureNode when passing them to GPU, which is only possible for TCastleImage).

Also calculate AlphaChannel for the whole cube map. Our AlphaChannel method will reflect the state from last call of this.

Public procedure CreateNode; override;

Create node fields and events.

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.

Properties

Public property FdBack: TSFNode read FFdBack;

Internal wrapper for property Back. This wrapper API may change, we advise to access simpler Back instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Back: TAbstractTexture2DNode read GetBack write SetBack;

This item has no description.

Public property FdBottom: TSFNode read FFdBottom;

Internal wrapper for property Bottom. This wrapper API may change, we advise to access simpler Bottom instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Bottom: TAbstractTexture2DNode read GetBottom write SetBottom;

This item has no description.

Public property FdFront: TSFNode read FFdFront;

Internal wrapper for property Front. This wrapper API may change, we advise to access simpler Front instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Front: TAbstractTexture2DNode read GetFront write SetFront;

This item has no description.

Public property FdLeft: TSFNode read FFdLeft;

Internal wrapper for property Left. This wrapper API may change, we advise to access simpler Left instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Left: TAbstractTexture2DNode read GetLeft write SetLeft;

This item has no description.

Public property FdRight: TSFNode read FFdRight;

Internal wrapper for property Right. This wrapper API may change, we advise to access simpler Right instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Right: TAbstractTexture2DNode read GetRight write SetRight;

This item has no description.

Public property FdTop: TSFNode read FFdTop;

Internal wrapper for property Top. This wrapper API may change, we advise to access simpler Top instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Top: TAbstractTexture2DNode read GetTop write SetTop;

This item has no description.

Public property FdTextureProperties: TSFNode read FFdTextureProperties;

Internal wrapper for property TextureProperties. This wrapper API may change, we advise to access simpler TextureProperties instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.