User Tools

Site Tools


api:dk11:delphi:gisaggregator.tgis_aggregatorclusteringhexagonalgridpointy

TGIS_AggregatorClusteringHexagonalGridPointy class

DK for Delphi | GisAggregator.TGIS_AggregatorClusteringHexagonalGridPointy | Classes | Constructors | Fields | Methods | Properties

This class implements the clustering method using a pointy-topped hexagonal grid.

Available also on: .NET | Java | ActiveX | Python.

Syntax

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

Inheritance

Constructors

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

Fields

Inherited Protected
Name Visibility Description
useConfig protected If true then initialization of visual appearance is blocked because it is going to be read from a project/config file.
(Inherited from TGIS_DynamicAggregatorAbstract)

Methods

Inherited Overrides Protected
Name Visibility Description
AddShape(TGIS_Shape; TObject) public Adds a new shape to be drawn
(Inherited from TGIS_DynamicAggregatorAbstract)
AddShape(TGIS_Shape; Variant; TGIS_UidArray) public Adds a new shape to be drawn
(Inherited from TGIS_DynamicAggregatorAbstract)
applyConfigOptions protected Read config option parameters.
(Inherited from TGIS_DynamicAggregatorAbstract)
Copy public Creates a copy of the dynamic aggregator.
(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 aggregator.
(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

ClusteringSquareGrid ClusteringHexagonalGridFlat ClusteringHexagonalGridPointy

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

Example

The recommended way to construct an aggregator is 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( 'ClusteringHexagonalGridPointy', layer ) ;
 
// detach aggregator
layer.DynamicAggregator := nil ;

C++ Builder

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

References

2025/01/31 01:06

Page Tools