Class ImportHeightMap
- Namespace
- AlphaFramework.Editor.World.Commands
- Assembly
- AlphaFramework.Editor.dll
Loads new height-map data into a Terrain<TTemplate>.
public class ImportHeightMap : ImportMap<ByteGrid>, IUndoCommand
- Inheritance
-
ImportHeightMap
- Implements
- Inherited Members
- Extension Methods
Constructors
ImportHeightMap(ITerrain, string, Action)
Creates a new command for loading height-map data into a ITerrain.
public ImportHeightMap(ITerrain terrain, string fileName, Action refreshHandler)
Parameters
terrain
ITerrainThe ITerrain to load new height-map data into.
fileName
stringThe file to load the height-map data from.
refreshHandler
ActionCalled when the presenter needs to be reset.
Properties
MapData
Points to HeightMap
protected override ByteGrid MapData { get; set; }
Property Value
Methods
LoadMap()
Loads the height-map data from a file into the ITerrain
protected override void LoadMap()