Table of Contents

Class TerrainVisual3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A visual element that shows a terrain model.

public class TerrainVisual3D : ModelVisual3D, IAnimatable, IAddChild
Inheritance
TerrainVisual3D
Implements
Inherited Members
Extension Methods

Remarks

The following terrain model file formats are supported: .bt .btz (gzip compressed .bt) .hgt (SRTM1, SRTM3) .hgt.zip (SRTM1, SRTM3) compressed

The origin of model will be at the midpoint of the terrain. A compression method to convert from ".bt" to ".btz" can be found in the GZipHelper. Note that no LOD algorithm is implemented - this is for small terrains only...

Constructors

TerrainVisual3D()

Initializes a new instance of the TerrainVisual3D class.

public TerrainVisual3D()

Fields

ModelProperty

Identifies the Model dependency property.

public static readonly DependencyProperty ModelProperty

Field Value

DependencyProperty

SourceProperty

Identifies the Source dependency property.

public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

Properties

Model

Gets or sets the terrain model.

public ITerrainModel Model { get; set; }

Property Value

ITerrainModel

The terrain model.

Source

Gets or sets the source terrain file.

public string Source { get; set; }

Property Value

string

The source.

Methods

ModelChanged(DependencyObject, DependencyPropertyChangedEventArgs)

The source object changed.

protected static void ModelChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)

Parameters

obj DependencyObject

The obj.

args DependencyPropertyChangedEventArgs

The args.

SourceChanged(DependencyObject, DependencyPropertyChangedEventArgs)

The source changed.

protected static void SourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)

Parameters

obj DependencyObject

The obj.

args DependencyPropertyChangedEventArgs

The args.