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; |
|
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; |
|
Image |
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.