Class TCastleTerrainData
Unit
Declaration
type TCastleTerrainData = class(TCastleComponent)
Description
Terrain (height map) data that can be used for TCastleTerrain.Data.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTerrainData
Overview
Methods
procedure DoChange; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function Height(const Coord, TexCoord: TVector2): Single; virtual; abstract; |
|
procedure AddChangeNotification(const Notify: TNotifyEvent); |
|
procedure RemoveChangeNotification(const Notify: TNotifyEvent); |
Description
Methods
procedure DoChange; |
|
Use this in descendants implementation to notify that data (affecting Height results) changed. In the base class, it takes care to run notifications registered by AddChangeNotification. |
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function Height(const Coord, TexCoord: TVector2): Single; virtual; abstract; |
|
Return height for given terrain point.
Parameters
|
procedure AddChangeNotification(const Notify: TNotifyEvent); |
|
Add notification when data (affecting Height results) changes. |
procedure RemoveChangeNotification(const Notify: TNotifyEvent); |
|
Remove notification when data (affecting Height results) changes. |
Generated by PasDoc 0.16.0.