Class MapTexture
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Terrain texture using a bitmap. Set the Left,Right,Bottom and Top coordinates to get the right alignment.
public class MapTexture : TerrainTexture
- Inheritance
-
MapTexture
- Inherited Members
Constructors
MapTexture(string)
Initializes a new instance of the MapTexture class.
public MapTexture(string source)
Parameters
sourcestringThe source.
MapTexture(BitmapImage)
Initializes a new instance of the MapTexture class.
public MapTexture(BitmapImage image)
Parameters
imageBitmapImageThe bitmap image.
Properties
Bottom
Gets or sets the bottom.
public double Bottom { get; set; }
Property Value
- double
The bottom.
Left
Gets or sets the left.
public double Left { get; set; }
Property Value
- double
The left.
Right
Gets or sets the right.
public double Right { get; set; }
Property Value
- double
The right.
Top
Gets or sets the top.
public double Top { get; set; }
Property Value
- double
The top.
Methods
Calculate(ITerrainModel, MeshGeometry3D)
Calculates the texture of the specified model.
public override void Calculate(ITerrainModel model, MeshGeometry3D mesh)
Parameters
modelITerrainModelThe model.
meshMeshGeometry3DThe mesh.