DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Create_3 | Methods | Properties
Create a shape instance from an existing shape or from raw internal geometry data with an explicit dimension type.
// C# public void Create_3( ITGIS_Shape _source, SYSINT _ptr, WordBool _mapped, OleVariant _uid, ITGIS_LayerVector _layer, TGIS_DimensionType _dim );
' VisualBasic Public Sub Create_3( 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 Create_3( _source : ITGIS_Shape; _ptr : SYSINT; _mapped : WordBool; _uid : OleVariant; _layer : ITGIS_LayerVector; _dim : TGIS_DimensionType );
| Name | Type | Description |
|---|---|---|
| _source | ITGIS_Shape | Source shape to clone or use as a template. If assigned, _ptr, _mapped, _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 data; False if it references regular in-memory data. |
| _uid | OleVariant | Unique identifier assigned to the shape. |
| _layer | ITGIS_LayerVector | Vector layer that owns or provides context for the shape. |
| _dim | TGIS_DimensionType | Coordinate dimension type for the shape geometry, such as 2D, 3D, or measured coordinates. |
TGIS_LayerVector.CreateShape is recommended instead.PURPOSE: Create a shape with explicit coordinate dimensionality for use with vector geometry stored in raw buffers or cloned from an existing shape.
BEHAVIOR: Initializes the shape and delegates setup toRecreate, including the requested dimension type.
CONSTRAINTS: Intended mainly for internal or advanced use. The supplied dimension type must match the actual geometry data.
This is a simple procedure showing how to add a shape to the layer.