User Tools

Site Tools


api:dk11:delphi:gisaggregator.tgis_aggregatorclusteringsquaregrid

TGIS_AggregatorClusteringSquareGrid class

DK11 for Delphi | GisAggregator.TGIS_AggregatorClusteringSquareGrid | Classes | Constructors | Methods | Properties

This class implements the clustering method using a square grid.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
type
  TGIS_AggregatorClusteringSquareGrid = class( TGIS_AggregatorClusteringAbstract )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_AggregatorClusteringSquareGrid : public TGIS_AggregatorClusteringAbstract
{
};

Inheritance

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Create a processor instance.
(Overrides TGIS_AggregatorClusteringAbstract.Create)

Methods

Inherited Overrides Protected
Name Visibility Description
AddShape public Adds a new shape to be drawn
(Inherited from TGIS_DynamicAggregatorAbstract)
applyConfigOptions protected Read config option parameters.
(Inherited from TGIS_DynamicAggregatorAbstract)
HideShape public Hide a shape against being drawn.
(Inherited from TGIS_DynamicAggregatorAbstract)
Prepare public Prepares dynamic shapes.
(Inherited from TGIS_AggregatorAbstract)
SetUp public Perform internal aggregator setup.
(Inherited from TGIS_AggregatorAbstract)
storeConfigOptions protected Write config option parameters.
(Inherited from TGIS_DynamicAggregatorAbstract)
useShapeType protected Set shape type t be used by aggregastor.
(Inherited from TGIS_DynamicAggregatorAbstract)

Properties

Inherited Protected
Name Visibility Description
Caption public User friendly name (translated).
(Inherited from TGIS_DynamicAggregatorAbstract)
IsPreparing public True if aggregator is executing Prepare().
(Inherited from TGIS_DynamicAggregatorAbstract)
Layer public Layer on which the processor is constructed.
(Inherited from TGIS_DynamicAggregatorAbstract)
Name public Unique aggregator name.
(Inherited from TGIS_DynamicAggregatorAbstract)
Radius public A radius within which shapes will be aggregated.
(Inherited from TGIS_DynamicAggregatorAbstract)
RadiusAsText public A radius within which shapes will be aggregated expressed in human readable form, like '10pt', '3in'.Uses AsText parameter syntax.
(Inherited from TGIS_DynamicAggregatorAbstract)
Threshold public Minimum number of shapes to form an aggregator.
(Inherited from TGIS_DynamicAggregatorAbstract)

Remarks

Aggregation is available through the Layer Properties Control and is stored to the project file.

Example

The recommended way to construct an aggregator is to use TGIS_DynamicAggregatorFactory. It is also possible to directly assign an instance of a class that inherits from TGIS_AggregatorAbstract.

Please note that TGIS_LayerVector.DynamicAggregator owns an object, therefore the aggregator should not be freed directly.

Delphi

// attach aggregator
layer.DynamicAggregator := TGIS_DynamicAggregatorFactory.CreateInstance( 'ClusteringSquareGrid', layer ) ;
 
// detach aggregator
layer.DynamicAggregator := nil ;

C++ Builder

// attach aggregator
layer->DynamicAggregator = TGIS_DynamicAggregatorFactory::CreateInstance( "ClusteringSquareGrid", layer ) ;
 
// deatch aggregator
layer->DynamicAggregator = NULL ;

References

2020/05/08 01:09

Page Tools