C# Class csShared.Geo.Transform

Inheritance: Caliburn.Micro.PropertyChangedBase
Exibir arquivo Open project: TNOCS/csTouch

Public Methods

Method Description
Contains ( KmlPoint p ) : bool
Contains ( Rect r ) : bool
MapPoint ( KmlPoint p ) : Point
MapToWorld ( double x, double y ) : Point
MapToWorld ( System.Windows.Vector vector ) : System.Windows.Vector
Pan ( Point currentMap, Point previousMap ) : void
Pan ( System.Windows.Vector translate ) : void
RotateAt ( double angle, Point origin ) : void
ScaleAt ( double scale, Point origin ) : void
Transform ( ) : System
WorldToMap ( double x, double y ) : Point
Zoom ( Rect zoomRect, Rect prevZoomRect ) : void

Private Methods

Method Description
FindBoundaries ( double twidth, double theight, Point p1 ) : Point
GetCenterX ( Rect rect ) : double
GetCenterY ( Rect rect ) : double
UpdateExtent ( double resolution, Point center, double width, double height ) : Rect

Method Details

Contains() public method

public Contains ( KmlPoint p ) : bool
p KmlPoint
return bool

Contains() public method

public Contains ( Rect r ) : bool
r System.Windows.Rect
return bool

MapPoint() public method

public MapPoint ( KmlPoint p ) : Point
p KmlPoint
return Point

MapToWorld() public method

public MapToWorld ( double x, double y ) : Point
x double
y double
return Point

MapToWorld() public method

public MapToWorld ( System.Windows.Vector vector ) : System.Windows.Vector
vector System.Windows.Vector
return System.Windows.Vector

Pan() public method

public Pan ( Point currentMap, Point previousMap ) : void
currentMap Point
previousMap Point
return void

Pan() public method

public Pan ( System.Windows.Vector translate ) : void
translate System.Windows.Vector
return void

RotateAt() public method

public RotateAt ( double angle, Point origin ) : void
angle double
origin Point
return void

ScaleAt() public method

public ScaleAt ( double scale, Point origin ) : void
scale double
origin Point
return void

Transform() public method

public Transform ( ) : System
return System

WorldToMap() public method

public WorldToMap ( double x, double y ) : Point
x double
y double
return Point

Zoom() public method

public Zoom ( Rect zoomRect, Rect prevZoomRect ) : void
zoomRect System.Windows.Rect
prevZoomRect System.Windows.Rect
return void