User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.create_2_itgis_shape_sysint_wordbool_olevariant_itgis_layervector

Table of Contents



ITGIS_Shape.Create_2 method

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

Create a 2D shape instance from an existing shape or from raw internal geometry data.

Available also on: Delphi | Python.

Syntax

// C#
public void Create_2(
  ITGIS_Shape _source,
  SYSINT _ptr,
  WordBool _mapped,
  OleVariant _uid,
  ITGIS_LayerVector _layer
);
' VisualBasic
Public Sub Create_2(
  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 Create_2(
    _source : ITGIS_Shape;
    _ptr : SYSINT;
    _mapped : WordBool;
    _uid : OleVariant;
    _layer : ITGIS_LayerVector
  );

Parameters

Name Type Description
_source ITGIS_Shape Source shape to clone or use as a template. If assigned, _ptr is ignored, but _uid and _layer can still override the source values.
_ptr SYSINT Pointer or platform-specific buffer containing internal shape geometry data.
_mapped WordBool True if geometry copied from _source or prepared from _ptr should be treated as mapped; otherwise False.
_uid OleVariant Unique identifier assigned to the shape. A nonzero value overrides the UID copied from _source.
_layer ITGIS_LayerVector Vector layer that owns or provides context for the shape. If assigned, it overrides the layer copied from _source.

Remarks

For normal use,TGIS_LayerVector.CreateShape is recommended instead.

PURPOSE: Create a 2D shape using an existing shape template or internal geometry storage supplied by the vector-layer framework.

BEHAVIOR: Initializes the shape withTGIS_DimensionType.XY dimensionality and delegates setup toRecreate. The constructor can clone from _source or prepare geometry from _ptr, with _uid and _layer able to override copied values.

CONSTRAINTS: Intended mainly for internal or advanced use. When _ptr is used, the caller must provide valid data compatible with the shape implementation.

Example

This is a simple procedure showing how to add a shape to the layer.

2026/10/31 22:56

Page Tools