User Tools

Site Tools


api:dk11:delphi:fmx.gisviewerwnd.tgis_viewerwnd.rotationpoint

Table of Contents

TGIS_ViewerWnd.RotationPoint property

DK for Delphi | FMX.GisViewerWnd.TGIS_ViewerWnd.RotationPoint | Constructors | Methods | Properties | Events | Events

Point of viewer rotation in map units.

Available also on: .NET WinForms | Java | ActiveX.

Syntax

// Delphi
public
  property RotationPoint : TGIS_Point read write;
// C++ Builder
public:
  __property TGIS_Point* RotationPoint = {read, write};

Value

Type
TGIS_Point

Remarks

See also RotationAngle.

Example

This is a simple code how to set a rotation point. Suppose we have a GIS object of TGIS_ViewerWnd class.

Delphi

procedure MyForm.GISMouseDown( Sender: TObject; Button: TMouseButton;
                               Shift:  TShiftState; X, Y: Integer ) ;
begin
  // if clicked, change a rotation point and move viewport
  GIS.RotationPoint := GIS.ScreenToMap( Point( X, Y ) );
 
  if Autocenter then
    GIS.CenterViewport( GIS.ScreenToMap( Point( X, Y ) ) );
end ;
2025/01/31 01:06

Page Tools