Table of Contents

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 ITerrain

The ITerrain to load new height-map data into.

fileName string

The file to load the height-map data from.

refreshHandler Action

Called when the presenter needs to be reset.

Properties

MapData

Points to HeightMap

protected override ByteGrid MapData { get; set; }

Property Value

ByteGrid

Methods

LoadMap()

Loads the height-map data from a file into the ITerrain

protected override void LoadMap()