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

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

Méthodes publiques

Свойство Type Description
GradientProperty System.Windows.DependencyProperty
IntensityProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Stops loading of any pending images
protected Cancel ( ) : void
Résultat void

GetSource() protected méthode

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.
Résultat void

HeatMapLayer() public méthode

Initializes a new instance of the HeatMapLayer class.
public HeatMapLayer ( ) : System
Résultat System

QueryLegendInfos() public méthode

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.
Résultat void

Property Details

GradientProperty public_oe static_oe property

Identifies the Gradient dependency property.
public static DependencyProperty,System.Windows GradientProperty
Résultat System.Windows.DependencyProperty

IntensityProperty public_oe static_oe property

Identifies the Intensity dependency property.
public static DependencyProperty,System.Windows IntensityProperty
Résultat System.Windows.DependencyProperty