Maria GDK 4.5.0.137
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoFramework.Core.GeoContext Class Reference
Inheritance diagram for TPG.GeoFramework.Core.GeoContext:
TPG.GeoFramework.Contracts.Geo.Context.IGeoContext TPG.GeoFramework.Contracts.Geo.Context.IGeoContextBase

Public Member Functions

void LockCurrentResolution ()
 Lock the current screen viewport resolution. This method will cause the map renderer to use the same resolution for all zoom levels, until you call UnlockResolution again. Please note that this will cause severe performance problems when zooming out, and severe rendering artifacts when zooming in.
 
void UnlockResolution ()
 Unlock the screen viewport resolution. See LockCurrentResolution().
 
bool IsLockedResolution ()
 Returns true if the screen resolution is locked to a specific value.
 
 GeoContext (IViewport viewport, bool useTransitions=true)
 
void BeginTracking (Point pt)
 
void UpdateTracking (Point pt)
 
void CalcTrackingViewport ()
 Calculate viewort from current tracking (panning) data. This should be done right before rendering, and not on every mouse move.
 
void EndTracking (Point pt)
 
void Pan (Vector pan)
 
void Pan (Vector pan, double panStep)
 
void PanLeft (object obj=null)
 
void PanRight (object obj=null)
 
void PanUp (object obj=null)
 
void PanDown (object obj=null)
 
void ZoomTo (List< GeoPos > positions, int margin=0)
 Zoom to a list of positions.
Parameters
positionsList of positions.
marginPixel margin.

 
void ZoomTo (GeoPos pos, double scale)
 
void ZoomAt (Point pt, double zoomFactor)
 
bool AreSimilar (IViewport a, IViewport b, int pixelOffsetTolerance)
 
IViewport CheckedVp (IViewport vp)
 
void Refresh (bool force=false)
 
void Dispose ()
 
void CalcTrackingViewport ()
 Calculate viewort from current tracking (panning) data. This should be done right before rendering, and not on every mouse move.
 
void LockCurrentResolution ()
 Lock the current screen viewport resolution. This method will cause the map renderer to use the same resolution for all zoom levels, until you call UnlockResolution again. Please note that this will cause severe performance problems when zooming out, and severe rendering artifacts when zooming in.
 
void UnlockResolution ()
 Unlock the screen viewport resolution. See LockCurrentResolution().
 
bool IsLockedResolution ()
 Returns true if the screen resolution is locked to a specific value.
 
bool AreSimilar (IViewport a, IViewport b, int pixelOffsetTolerance)
 
IViewport CheckedVp (IViewport vp)
 
void Refresh (bool force=false)
 
void BeginTracking (Point pt)
 
void UpdateTracking (Point pt)
 
void EndTracking (Point pt)
 
void Pan (Vector pan)
 
void Pan (Vector pan, double panStep)
 
void PanLeft (object obj=null)
 
void PanRight (object obj=null)
 
void PanUp (object obj=null)
 
void PanDown (object obj=null)
 
void ZoomAt (Point pt, double zoomFactor)
 
void ZoomTo (GeoPos pos, double scale)
 
void ZoomTo (List< GeoPos > positions, int margin=0)
 Zoom to a list of positions.
 

Properties

double RotateValue [get, set]
 
Vector DragOffset [get]
 
TimingEntries TimingInfo [get]
 
bool Tracking [get]
 
bool InTransition [get, set]
 
GeoContextTransitionState TransitionState [get]
 
IViewport TrackingViewportOrigin [get]
 Starting viewport for trakcing (panning) operations.
 
int Generation [get]
 Generation counter. Should be updated each time the viewport moves enough to cause a redraw of the layers.
 
double LockedResolution [get, set]
 Current value of the locked screen resolution (in m/pixel)
 
IViewport Viewport [get, set]
 
bool SuppressNotify [get, set]
 
GeoPos CenterPosition [get, set]
 
GeoPos CursorPosition [get, set]
 
GeoPos LastClickedPosition [get, set]
 
double LastClickedElevation [get, set]
 
string DisplayProjection [get, set]
 
Int32Rect DeviceRect [get, set]
 
double CenterScale [get, set]
 
int PanStep [get, set]
 
double MouseWheelStep [get, set]
 
int RulerWidth [get, set]
 
int MaxAllowedScale [get, set]
 Max allowed scale of the viewport, measured at equator.
 
TimeSpan TransitionTimeout [get, set]
 
ICommand PanLeftCommand [get]
 
ICommand PanRightCommand [get]
 
ICommand PanUpCommand [get]
 
ICommand PanDownCommand [get]
 
- Properties inherited from TPG.GeoFramework.Contracts.Geo.Context.IGeoContext
IViewport Viewport [get, set]
 
Int32Rect DeviceRect [get, set]
 
IViewport TrackingViewportOrigin [get]
 Starting viewport for trakcing (panning) operations.
 
int MaxAllowedScale [get, set]
 Max allowed scale of the viewport, measured at equator.
 
string DisplayProjection [get, set]
 
TimingEntries TimingInfo [get]
 
int Generation [get]
 Generation counter. Should be updated each time the viewport moves enough to cause a redraw of the layers.
 
double LockedResolution [get, set]
 Current value of the locked screen resolution (in m/pixel)
 
GeoPos CursorPosition [get, set]
 
GeoPos LastClickedPosition [get, set]
 
Vector DragOffset [get]
 
double LastClickedElevation [get, set]
 
bool InTransition [get, set]
 
double RotateValue [get, set]
 
TimeSpan TransitionTimeout [get, set]
 
- Properties inherited from TPG.GeoFramework.Contracts.Geo.Context.IGeoContextBase
bool Tracking [get]
 
GeoContextTransitionState TransitionState [get]
 
GeoPos CenterPosition [get, set]
 
double CenterScale [get, set]
 
int PanStep [get, set]
 
double MouseWheelStep [get, set]
 
ICommand PanLeftCommand [get]
 
ICommand PanRightCommand [get]
 
ICommand PanUpCommand [get]
 
ICommand PanDownCommand [get]
 

Events

ViewportChangedEventHandler ViewportChanged = delegate { }
 
CenterPosChangedEventHandler CenterPosChanged = delegate { }
 
CenterScaleChangedEventHandler CenterScaleChanged = delegate { }
 
TrackingChangedEventHandler TrackingChanged = delegate { }
 
GenerationChangedEventHandler GenerationChanged = delegate { }
 
DeviceRectChangedEventHandler DeviceRectChanged = delegate { }
 
BeforeViewportPanEventHandler BeforeViewportPan = delegate { }
 
AfterViewportPanEventHandler AfterViewportPan = delegate { }
 
TransitionStateChangedEventHandler TransitionStateChanged
 
PropertyChangedEventHandler PropertyChanged
 
- Events inherited from TPG.GeoFramework.Contracts.Geo.Context.IGeoContext
ViewportChangedEventHandler ViewportChanged
 
CenterPosChangedEventHandler CenterPosChanged
 
CenterScaleChangedEventHandler CenterScaleChanged
 
TrackingChangedEventHandler TrackingChanged
 
GenerationChangedEventHandler GenerationChanged
 
DeviceRectChangedEventHandler DeviceRectChanged
 
BeforeViewportPanEventHandler BeforeViewportPan
 
AfterViewportPanEventHandler AfterViewportPan
 
TransitionStateChangedEventHandler TransitionStateChanged
 

Member Function Documentation

◆ AreSimilar()

bool TPG.GeoFramework.Core.GeoContext.AreSimilar ( IViewport  a,
IViewport  b,
int  pixelOffsetTolerance 
)
inline

◆ BeginTracking()

void TPG.GeoFramework.Core.GeoContext.BeginTracking ( Point  pt)
inline

◆ CalcTrackingViewport()

void TPG.GeoFramework.Core.GeoContext.CalcTrackingViewport ( )
inline

Calculate viewort from current tracking (panning) data. This should be done right before rendering, and not on every mouse move.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ CheckedVp()

IViewport TPG.GeoFramework.Core.GeoContext.CheckedVp ( IViewport  vp)
inline

◆ EndTracking()

void TPG.GeoFramework.Core.GeoContext.EndTracking ( Point  pt)
inline

◆ IsLockedResolution()

bool TPG.GeoFramework.Core.GeoContext.IsLockedResolution ( )
inline

Returns true if the screen resolution is locked to a specific value.

Returns

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ LockCurrentResolution()

void TPG.GeoFramework.Core.GeoContext.LockCurrentResolution ( )
inline

Lock the current screen viewport resolution. This method will cause the map renderer to use the same resolution for all zoom levels, until you call UnlockResolution again. Please note that this will cause severe performance problems when zooming out, and severe rendering artifacts when zooming in.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ Pan() [1/2]

void TPG.GeoFramework.Core.GeoContext.Pan ( Vector  pan)
inline

◆ Pan() [2/2]

void TPG.GeoFramework.Core.GeoContext.Pan ( Vector  pan,
double  panStep 
)
inline

◆ PanDown()

void TPG.GeoFramework.Core.GeoContext.PanDown ( object  obj = null)
inline

◆ PanLeft()

void TPG.GeoFramework.Core.GeoContext.PanLeft ( object  obj = null)
inline

◆ PanRight()

void TPG.GeoFramework.Core.GeoContext.PanRight ( object  obj = null)
inline

◆ PanUp()

void TPG.GeoFramework.Core.GeoContext.PanUp ( object  obj = null)
inline

◆ Refresh()

void TPG.GeoFramework.Core.GeoContext.Refresh ( bool  force = false)
inline

◆ UnlockResolution()

void TPG.GeoFramework.Core.GeoContext.UnlockResolution ( )
inline

Unlock the screen viewport resolution. See LockCurrentResolution().

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ UpdateTracking()

void TPG.GeoFramework.Core.GeoContext.UpdateTracking ( Point  pt)
inline

◆ ZoomAt()

void TPG.GeoFramework.Core.GeoContext.ZoomAt ( Point  pt,
double  zoomFactor 
)
inline

◆ ZoomTo() [1/2]

void TPG.GeoFramework.Core.GeoContext.ZoomTo ( GeoPos  pos,
double  scale 
)
inline

◆ ZoomTo() [2/2]

void TPG.GeoFramework.Core.GeoContext.ZoomTo ( List< GeoPos positions,
int  margin = 0 
)
inline

Zoom to a list of positions.

Parameters
positionsList of positions.
marginPixel margin.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContextBase.

Property Documentation

◆ CenterPosition

GeoPos TPG.GeoFramework.Core.GeoContext.CenterPosition
getset

◆ CenterScale

double TPG.GeoFramework.Core.GeoContext.CenterScale
getset

◆ CursorPosition

GeoPos TPG.GeoFramework.Core.GeoContext.CursorPosition
getset

◆ DeviceRect

Int32Rect TPG.GeoFramework.Core.GeoContext.DeviceRect
getset

◆ DisplayProjection

string TPG.GeoFramework.Core.GeoContext.DisplayProjection
getset

◆ DragOffset

Vector TPG.GeoFramework.Core.GeoContext.DragOffset
get

◆ Generation

int TPG.GeoFramework.Core.GeoContext.Generation
get

Generation counter. Should be updated each time the viewport moves enough to cause a redraw of the layers.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ InTransition

bool TPG.GeoFramework.Core.GeoContext.InTransition
getset

◆ LastClickedElevation

double TPG.GeoFramework.Core.GeoContext.LastClickedElevation
getset

◆ LastClickedPosition

GeoPos TPG.GeoFramework.Core.GeoContext.LastClickedPosition
getset

◆ LockedResolution

double TPG.GeoFramework.Core.GeoContext.LockedResolution
getset

Current value of the locked screen resolution (in m/pixel)

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ MaxAllowedScale

int TPG.GeoFramework.Core.GeoContext.MaxAllowedScale
getset

Max allowed scale of the viewport, measured at equator.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ MouseWheelStep

double TPG.GeoFramework.Core.GeoContext.MouseWheelStep
getset

◆ PanDownCommand

ICommand TPG.GeoFramework.Core.GeoContext.PanDownCommand
get

◆ PanLeftCommand

ICommand TPG.GeoFramework.Core.GeoContext.PanLeftCommand
get

◆ PanRightCommand

ICommand TPG.GeoFramework.Core.GeoContext.PanRightCommand
get

◆ PanStep

int TPG.GeoFramework.Core.GeoContext.PanStep
getset

◆ PanUpCommand

ICommand TPG.GeoFramework.Core.GeoContext.PanUpCommand
get

◆ RotateValue

double TPG.GeoFramework.Core.GeoContext.RotateValue
getset

◆ TimingInfo

TimingEntries TPG.GeoFramework.Core.GeoContext.TimingInfo
get

◆ Tracking

bool TPG.GeoFramework.Core.GeoContext.Tracking
get

◆ TrackingViewportOrigin

IViewport TPG.GeoFramework.Core.GeoContext.TrackingViewportOrigin
get

Starting viewport for trakcing (panning) operations.

Implements TPG.GeoFramework.Contracts.Geo.Context.IGeoContext.

◆ TransitionState

GeoContextTransitionState TPG.GeoFramework.Core.GeoContext.TransitionState
get

◆ TransitionTimeout

TimeSpan TPG.GeoFramework.Core.GeoContext.TransitionTimeout
getset

◆ Viewport

IViewport TPG.GeoFramework.Core.GeoContext.Viewport
getset

The documentation for this class was generated from the following file: