User Tools

Site Tools


api:dk11:delphi:gisaggregator.tgis_aggregatorbinninghexagonflat

TGIS_AggregatorBinningHexagonFlat class

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

This class implements the binning method using a flat-topped hexagonal grid.

Available also on: .NET | Java | ActiveX.

Syntax

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

Inheritance

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Create a processor instance.
(Overrides TGIS_AggregatorBinningHexagonAbstract.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

BinningSquare BinningHexagonFlat BinningHexagonPointy

Aggregation is available through the Layer Properties Control in General node 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( 'BinningHexagonFlat', layer ) ;
 
// detach aggregator
layer.DynamicAggregator := nil ;

C++ Builder

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

References

2020/05/08 01:09

Page Tools