User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shapepolygon.create_tgis_shape_pointer_boolean_tgis_uid_tgis_layervector

Table of Contents

TGIS_ShapePolygon.Create(TGIS_Shape; Pointer; Boolean; TGIS_Uid; TGIS_LayerVector) constructor

DK11 for Delphi | GisLayerVector.TGIS_ShapePolygon.Create | Overloads | Constructors | Fields | Methods | Properties

Create a shape instance.

Available also on: Python.

Overrides TGIS_Shape.Create.

Syntax

// Delphi
public
  constructor Create(
    const _source : TGIS_Shape;
    const _ptr : Pointer;
    const _mapped : Boolean;
    const _uid : TGIS_Uid;
    const _layer : TGIS_LayerVector
  ); overload; override;
// C++ Builder
Create (
  TGIS_Shape* const _source,
  const void* _ptr,
  const bool _mapped,
  TGIS_Uid* const _uid,
  TGIS_LayerVector* const _layer
);

Parameters

Name Type Description
_source TGIS_Shape If not nil then base shape will be based on this shape. Otherwise _prt, _mapped, _uid and _layer will be used.
_ptr Pointer Address in memory where shape data exists.
_mapped Boolean Id _ptr from mapped file or from memory.
_uid TGIS_Uid Unique identity for shape.
_layer TGIS_LayerVector Reference to the layer on which shape will be created.

Remarks

For usage TGIS_LayerVector.CreateShape method is recommended instead.

Use this method to create a shape. Internally it calls Recreate method.

2024/12/20 22:19

Page Tools