User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.recreate_tgis_shape_pointer_boolean_tgis_uid_tgis_layervector

Table of Contents

TGIS_Shape.Recreate(TGIS_Shape; Pointer; Boolean; TGIS_Uid; TGIS_LayerVector) method

Syntax

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

Parameters

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

Remarks

Use this method to recreate an instance with new basic values. Needed for faster FindNext in mapped file shapes. In such a situation shapes will be "reused" in FindNext loop. See Create method for details and example.

2020/05/07 01:09

Page Tools