User Tools

Site Tools


samples:samples:selectbyshape

Table of Contents

SelectByShape sample

Documentation | Samples | SelectByShape

Summary

How to select shapes from a layer by user-defined shape (circle and rectangle in this samples).

Description

This sample illustrates use of:

Name Description
TGIS_LayerVector.DeselectAllClears selection of all shapes.
TGIS_LayerVector.RevertShapesReverts all shapes to their original state.
TGIS_LayerVector.CreateShapeCreates a new shape and makes it editable.
TGIS_LayerVector.FindFirstFinds the first shape in layer.
TGIS_LayerVector.FindNextFinds the next occurrence of an item defined in FindFirst.
TGIS_Shape.AddPartAdd next part to the shape.
TGIS_Shape.AddPointAdd a point to the last part of the shape.
TGIS_Topology.MakeBufferCompute a buffer around a shape to a given distance.
TGIS_ViewerWnd.PaintExtraEventPaintExtra event.

Code

This sample is available on following platforms (click to see source code):

2020/05/26 09:38

Page Tools