User Tools

Site Tools


samples:samples:hellodk

Table of Contents

HelloDK sample

Documentation | Samples | HelloDK

Summary

How to create a very basic DK11 application. See step-by-step tutorial.

Description

This sample illustrates use of:

Name Description
TGIS_ViewerEncapsulation of the generic viewer.
TGIS_ViewerWndThis is a TGisViewerWnd component with functionality build on Windows output.
TGIS_Viewer.OpenOpen project.
TGIS_Viewer.InvalidateWholeMapInvalidate whole map.
TGIS_Viewer.LockLock viewer.
TGIS_Viewer.UnlockUnlock viewer.
TGIS_Viewer.ScreenToMapConverts point coordinates from screen related to map related.
TGIS_Viewer.LocateLocate a shape that is near _ptg, but is closer than _prec distance.
TGIS_Viewer.AddAdd a layer to the Viewer.
TGIS_Viewer.GetRetrieve the layer identified by a name.
TGIS_LayerVector.DeselectAllClear selection of all shapes.
TGIS_LayerVector.GetShapeGet shape by unique identifier on default cursor (0).
TGIS_Layer.NameName of layer; if not filled directly then will be filled with Path when adding to the Viewer.
TGIS_Layer.CSCoordinate System assigned to the layer.
TGIS_LayerVector.ParamsReturns parameters (colors, fills, etc.) object.
TGIS_ParamsAreaParameters that are common for Areas.
TGIS_Shape.MakeEditableAdd the shape to edited items list.
TGIS_Shape.IsSelectedIs shape selected.
TGIS_Shape.LockLock a shape.
TGIS_Shape.UnlockUnlock a shape from burst-mode operation.
TGIS_Shape.AddPartAdd next part to the shape.
TGIS_Shape.AddPointAdd a point to the last part of the shape.

Code

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

2019/09/27 01:18