User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shape.reset_void

Table of Contents

TGIS_Shape.Reset method

DK for Java | tatukgis.jdk.TGIS_Shape.Reset | Constructors | Fields | Methods | Properties

Clear all geometry (vertices and parts). Reinitializes shape as empty with default type.

Available also on: Delphi | .NET | ActiveX | Python.

Syntax

// Java
public void Reset();
// Oxygene
public
  procedure Reset; virtual;

Remarks

PURPOSE:Clear geometry for reinitialization. Removes all vertices/parts in preparation for new geometry. Called before building new shape geometry.

BEHAVIOR:Deallocates all coordinate storage (Points, PointsZ, PointsM, Parts, PartTypes). Sets shape to empty state. Shape type retained.

USAGE:Reinitialize:shape.Reset; shape.Lock(Extent); shape.AddPart; shape.AddPoint(pt1); ...; shape.Unlock;

CONSTRAINTS:Virtual method (subclass may validate). Shape becomes empty (IsEmpty = true). Virtual method.

2026/06/13 00:35

Page Tools