User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.recreate_itgis_shape_sysint_wordbool_olevariant_itgis_layervector

Table of Contents

ITGIS_Shape.Recreate method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Recreate | Methods | Properties

Reinitialize an existing shape instance from another shape or from raw internal geometry data.

Available also on: Delphi | Python.

Syntax

// C#
public void Recreate(
  ITGIS_Shape _source,
  SYSINT _ptr,
  WordBool _mapped,
  OleVariant _uid,
  ITGIS_LayerVector _layer
);
' VisualBasic
Public Sub Recreate(
  ByVal _source As ITGIS_Shape,
  ByVal _ptr As SYSINT,
  ByVal _mapped As WordBool,
  ByVal _uid As OleVariant,
  ByVal _layer As ITGIS_LayerVector
)
// Oxygene
public
  procedure Recreate(
    _source : ITGIS_Shape;
    _ptr : SYSINT;
    _mapped : WordBool;
    _uid : OleVariant;
    _layer : ITGIS_LayerVector
  );

Parameters

Name Type Description
_source ITGIS_Shape Source shape used as a template. If assigned, _ptr, _uid, and _layer are ignored.
_ptr SYSINT Pointer or platform-specific buffer containing internal shape geometry data.
_mapped WordBool True if _ptr references memory-mapped geometry data; False if it refers to regular in-memory data.
_uid OleVariant Unique identifier assigned to the recreated shape.
_layer ITGIS_LayerVector Vector layer that owns or provides context for the recreated shape.

Remarks

PURPOSE: Reuse an existing shape object during iteration, rendering, or internal processing to avoid repeated allocations.

BEHAVIOR: Clears the current state and rebuilds the shape from _source or from the supplied internal data pointer, UID, and layer context. Supports both copied and memory-mapped geometry storage.

CONSTRAINTS: Intended mainly for internal or advanced use. When _ptr is used, its lifetime must remain valid for as long as the shape depends on that data.

2026/07/05 01:25

Page Tools