User Tools

Site Tools


api:dk11:delphi:gisinterfaces.tgis_labelsareaabstract.allocate_tgis_extent_integer_tgis_uid_double

Table of Contents

TGIS_LabelsAreaAbstract.Allocate method

DK11 for Delphi | GisInterfaces.TGIS_LabelsAreaAbstract.Allocate | Methods

Reserve extent for label in Label Area Allocator. This operation avoids overlapping.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function Allocate(
    const _rect : TGIS_Extent;
    const _layer : Integer;
    const _uid : TGIS_Uid;
    const _tolerance : Double
  ) : Boolean; virtual; abstract;
// C++ Builder
public:
  virtual bool Allocate(
    TGIS_Extent* const _rect,
    const int _layer,
    TGIS_Uid* const _uid,
    const double _tolerance
  ) = 0;

Parameters

Name Type Description
_rect TGIS_Extent extent to be reserved;
_layer Integer layer to which label belongs
_uid TGIS_Uid Uid of shape related with label
_tolerance Double tolerance of label placement in device pixels; generally should be expressed like 1.5/GIS.Zoom

Result

Type Description
Boolean True if place for label was found and has been allocated.
2020/05/07 01:07

Page Tools