DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Recreate_2 | Methods | Properties
Reinitialize an existing shape instance from another shape or from raw internal geometry data with an explicit dimension type.
// C# public void Recreate_2( ITGIS_Shape _source, SYSINT _ptr, WordBool _mapped, OleVariant _uid, ITGIS_LayerVector _layer, TGIS_DimensionType _dim );
' VisualBasic Public Sub Recreate_2( ByVal _source As ITGIS_Shape, ByVal _ptr As SYSINT, ByVal _mapped As WordBool, ByVal _uid As OleVariant, ByVal _layer As ITGIS_LayerVector, ByVal _dim As TGIS_DimensionType )
// Oxygene public procedure Recreate_2( _source : ITGIS_Shape; _ptr : SYSINT; _mapped : WordBool; _uid : OleVariant; _layer : ITGIS_LayerVector; _dim : TGIS_DimensionType );
| Name | Type | Description |
|---|---|---|
| _source | ITGIS_Shape | Source shape used as a template. If assigned, _ptr, _uid, and _layer are used according to the implementation context. |
| _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. |
| _dim | TGIS_DimensionType | Coordinate dimension type to use for the recreated geometry. |
PURPOSE: Reuse an existing shape object while explicitly controlling geometry dimensionality during internal processing or iteration.
BEHAVIOR: Clears the current state and rebuilds the shape from _source or from the supplied internal data pointer, UID, layer context, and dimension type.
CONSTRAINTS: Intended mainly for internal or advanced use. The supplied dimension type must match the underlying geometry data, and any referenced raw data must remain valid for the required lifetime.