Class TCastleTerrainImage
Unit
Declaration
type TCastleTerrainImage = class(TCastleTerrainData)
Description
Terrain (height map) data taken from intensities in an image.
The image spans always the entire terrain in X and Z.
The image minimum intensity (black) maps to height MinLevel, maximum intensity (white) maps to height MaxLevel. Any relation of MinLevel and MaxLevel is OK, that is: both MinLevel<MaxLevel and MinLevel>MaxLevel are valid.
When image is not loaded, it behaves like all the image intensities are 0.5.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTerrainData
- TCastleTerrainImage
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function Height(const Coord, TexCoord: TVector2): Single; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Url: String read FUrl write SetUrl; |
|
property MinLevel: Single read FMinLevel write SetMinLevel default -0.5; |
|
property MaxLevel: Single read FMaxLevel write SetMaxLevel default 0.5; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function Height(const Coord, TexCoord: TVector2): Single; override; |
|
This item has no description. Showing description inherited from TCastleTerrainData.Height. Return height for given terrain point.
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
This item has no description. Showing description inherited from TCastleComponent.PropertySections. Section where to show property in the editor. |
Properties
property Url: String read FUrl write SetUrl; |
|
Image URL. Empty string means that no image is loaded. |
property MinLevel: Single read FMinLevel write SetMinLevel default -0.5; |
|
Height when the image has minimum intensity (black). |
property MaxLevel: Single read FMaxLevel write SetMaxLevel default 0.5; |
|
Height when the image has maximum intensity (white). |
Generated by PasDoc 0.16.0-snapshot.