User Tools

Site Tools


api:dk11:delphi:gisinterfaces.tgis_labelsareaabstract.allocateex_tgis_point_tgis_point_tgis_point_tgis_point_integer_tgis_uid_double

Table of Contents

TGIS_LabelsAreaAbstract.AllocateEx method

DK11 for Delphi | GisInterfaces.TGIS_LabelsAreaAbstract.AllocateEx | Methods

Reserve extent for a 4 node polygon in the Label Area Allocator. This operation avoids overlapping.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function AllocateEx(
    const _ptgA : TGIS_Point;
    const _ptgB : TGIS_Point;
    const _ptgC : TGIS_Point;
    const _ptgD : TGIS_Point;
    const _layer : Integer;
    const _uid : TGIS_Uid;
    const _tolerance : Double
  ) : Boolean; virtual; abstract;
// C++ Builder
public:
  virtual bool AllocateEx(
    TGIS_Point* const _ptgA,
    TGIS_Point* const _ptgB,
    TGIS_Point* const _ptgC,
    TGIS_Point* const _ptgD,
    const int _layer,
    TGIS_Uid* const _uid,
    const double _tolerance
  ) = 0;

Parameters

Name Type Description
_ptgA TGIS_Point point of polygon
_ptgB TGIS_Point point of polygon
_ptgC TGIS_Point point of polygon
_ptgD TGIS_Point point of polygon
_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