C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.HeatMapLayer

Heat Map layer
Inheritance: DynamicLayer, ILegendSupport, ISupportsDynamicImageByteRequests
Show file Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Public Properties

Property Type Description
GradientProperty System.Windows.DependencyProperty
IntensityProperty System.Windows.DependencyProperty

Public Methods

Method Description
HeatMapLayer ( ) : System

Initializes a new instance of the HeatMapLayer class.

QueryLegendInfos ( Action callback, Action errorCallback ) : void

Queries for the legend infos of a layer.

The returned result is encapsulated in a LayerLegendInfo object containing one legend item showing the heat map gradient.

Protected Methods

Method Description
Cancel ( ) : void

Stops loading of any pending images

GetSource ( DynamicLayer properties, DynamicLayer onComplete ) : void

Gets the source image to display in the dynamic layer. Override this to generate or modify images.

Private Methods

Method Description
AddPoint ( ushort distanceMatrix, int size, int x, int y, int intensityMap, int width ) : void

Adds a heat map point to the intensity matrix.

CreateDistanceMatrix ( int size ) : ushort[]

Creates the distance matrix.

ISupportsDynamicImageByteRequests ( DynamicLayer properties, OnImageDataReceived onImageDataReceived ) : void
InterpolateColor ( float value, List stops ) : Color

Lienarly interpolates a color from a list of colors.

OnGradientPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

GradientProperty property changed handler.

OnIntensityPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IntervalProperty property changed handler.

OnLegendChanged ( ) : void
heatMapPoints_CollectionChanged ( object sender, System e ) : void

Handles the CollectionChanged event of the heatMapPoints control.

renderThread_DoWork ( object sender, DoWorkEventArgs e ) : void

Handles the DoWork event of the renderThread control. This is where we render the heatmap outside the UI thread.

renderThread_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Handles the ProgressChanged event of the renderThread control and fires the layer progress event.

renderThread_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Handles the RunWorkerCompleted event of the renderThread control.

Method Details

Cancel() protected method

Stops loading of any pending images
protected Cancel ( ) : void
return void

GetSource() protected method

Gets the source image to display in the dynamic layer. Override this to generate or modify images.
protected GetSource ( DynamicLayer properties, DynamicLayer onComplete ) : void
properties DynamicLayer The image export properties.
onComplete DynamicLayer The method to call when the image is ready.
return void

HeatMapLayer() public method

Initializes a new instance of the HeatMapLayer class.
public HeatMapLayer ( ) : System
return System

QueryLegendInfos() public method

Queries for the legend infos of a layer.
The returned result is encapsulated in a LayerLegendInfo object containing one legend item showing the heat map gradient.
public QueryLegendInfos ( Action callback, Action errorCallback ) : void
callback Action The method to call on completion.
errorCallback Action The method to call in the event of an error.
return void

Property Details

GradientProperty public static property

Identifies the Gradient dependency property.
public static DependencyProperty,System.Windows GradientProperty
return System.Windows.DependencyProperty

IntensityProperty public static property

Identifies the Intensity dependency property.
public static DependencyProperty,System.Windows IntensityProperty
return System.Windows.DependencyProperty