User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.rotationpoint

Table of Contents

IGIS_Viewer.RotationPoint property

DK11 for Delphi | GisInterfaces.IGIS_Viewer.RotationPoint | Methods | Properties

Point of viewer rotation in map units.

Available also on: .NET | 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.

// Delphi
<code 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 ;
2018/02/17 00:06