User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.rotationpoint

Table of Contents

TGIS_Viewer.RotationPoint property

DK11 for Delphi | GisViewer.TGIS_Viewer.RotationPoint | Constructors | Fields | Methods | Properties | Events | Events

Point of viewer rotation in map units.

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

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

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 ;

References

2022/11/30 19:19

Page Tools