User Tools

Site Tools


samples:samples:view3d

Table of Contents

View3D sample

Documentation | Samples | View3D

Summary

How to create simple 3D viewer.

Description

This sample illustrates use of:

Name Description
TGIS_ViewerWnd.View3D3D state; If set to true them Viewer is in a 3D mode.
TGIS_Viewer3D.ResetViewSet view to initial state (like FullExtent in 2D).
TGIS_Viewer3D.ShowLightsTurn Lights on/off.
TGIS_Viewer3D.UpdateWholeMapIssue control update action (deep refresh).
TGIS_Viewer3D.UpdateAllSelectedObjectsRedraw all selected objects.
TGIS_Viewer3D.ModeSet 3d Viewer navigation mode.
TGIS_Viewer3D.CameraPositionCamera position in radians; Changes of CameraPosition settings change CameraRotation settings; Camera always points to the central point of the visible area; * X height of the camera above horizon, range 0 - Pi/2 rad; * Y azimuth to the camera from natural north, range 0 - 2Pi rad; * Z distance to the camera in map units; * M optional parameter, for future use.
TGIS_Shape.AddPoint3DAdd a point to the last part of the shape in 3D.

Code

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

2017/12/05 09:21