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

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function Height(const Coord, TexCoord: TVector2): Single; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Published property Url: String read FUrl write SetUrl;
Published property MinLevel: Single read FMinLevel write SetMinLevel default -0.5;
Published property MaxLevel: Single read FMaxLevel write SetMaxLevel default 0.5;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public 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.

Public 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

Published property Url: String read FUrl write SetUrl;

Image URL. Empty string means that no image is loaded.

Published property MinLevel: Single read FMinLevel write SetMinLevel default -0.5;

Height when the image has minimum intensity (black).

Published 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.