Skip to content

InteractionArguments

Namespace: ThinkGeo.UI.WinForms

This class encapsulates the information and simple method for interactive actions.

public class InteractionArguments

Inheritance object → InteractionArguments

Properties

ScreenX

Gets or sets the X position, in map control coordinates.

public float ScreenX { get; set; }

Property Value

float

Remarks:

During a touch manipulation this is the position of the first finger the gesture reports, not the centre of the gesture. The centre is InteractionArguments.ManipulationOrigin, which is what a pinch or twist pivots around.

ScreenY

Gets or sets the screen Y position.

public float ScreenY { get; set; }

Property Value

float

WorldX

Gets or sets the world X position.

public double WorldX { get; set; }

Property Value

double

WorldY

Gets or sets the world Y position.

public double WorldY { get; set; }

Property Value

double

MouseButton

Gets and sets which button is clicked on the map canvas.

public MapMouseButton MouseButton { get; set; }

Property Value

MapMouseButton

CurrentExtent

Gets or sets the current extent used in the MapControl.

public RectangleShape CurrentExtent { get; set; }

Property Value

RectangleShape

SearchingTolerance

Gets or sets the searching tolerance for tracking and editing.

public double SearchingTolerance { get; set; }

Property Value

double

MapWidth

Gets or sets the width of the map in screen units.

public double MapWidth { get; set; }

Property Value

double

MapHeight

Gets or sets the height of the map in screen units.

public double MapHeight { get; set; }

Property Value

double

ManipulationDelta

Gets or sets the current manipulation delta when handling touch gestures.

public ManipulationDelta ManipulationDelta { get; set; }

Property Value

ManipulationDelta

ManipulationOrigin

Gets or sets the centre of the current manipulation gesture, in map control coordinates.

public Point ManipulationOrigin { get; set; }

Property Value

Point

Remarks:

For a two-finger gesture this is the midpoint the fingers turn and pinch about, which is not the same as InteractionArguments.ScreenX/InteractionArguments.ScreenY: those carry the first finger.

MapUnit

Gets or sets the unit for the Map Control.

public GeographyUnit MapUnit { get; set; }

Property Value

GeographyUnit

MouseWheelDelta

Gets or sets the Mouse wheel delta used in the MouseWheel method in InteractiveOverlay.

public int MouseWheelDelta { get; set; }

Property Value

int

Scale

Gets or sets the scale in current status.

public double Scale { get; set; }

Property Value

double

Constructors

InteractionArguments()

Initializes a new instance of the InteractionArguments class with default values.

public InteractionArguments()

Methods

ToString()

Override the ToString API for object.

public string ToString()

Returns

string
Returns a string to mark this instance and easy to read its properties.