Class EvasMap

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

The EvasMap is an opaque handle to map points.

C#
Copy
public class EvasMap
Inheritance
EvasMap

Constructors

View Source

EvasMap(Int32)

Creates and initializes a new instance of the EvasMap class.

Declaration
C#
Copy
public EvasMap(int count)
Parameters
Type Name Description
System.Int32 count

The number of points in the map

API Level: preview

Properties

View Source

IsMoveSync

Gets or sets the flag of the object to move synchronization for map rendering.

Declaration
C#
Copy
public bool IsMoveSync { get; set; }
Property Value
Type Description
Boolean
API Level: preview

Methods

View Source

Finalize()

Destructor for the EvasMap class.

Declaration
C#
Copy
protected void Finalize()
View Source

GetPointCoordinate(Int32)

Gets the map point's coordinate.

Declaration
C#
Copy
public Point3D GetPointCoordinate(int idx)
Parameters
Type Name Description
System.Int32 idx

The index of point to change, this must be smaller than the map size.

Returns
Type Description
Point3D

The coordinates of a given point in the map.

API Level: preview
View Source

PopulatePoints(EvasObject)

Populates the source and destination map points to exactly match the object.

Declaration
C#
Copy
public void PopulatePoints(EvasObject obj)
Parameters
Type Name Description
EvasObject obj

The object to use unmapped geometry to populate the map coordinates.

API Level: preview
View Source

PopulatePoints(EvasObject, Int32)

Populates the source and destination map points to exactly match the object.

Declaration
C#
Copy
public void PopulatePoints(EvasObject obj, int z)
Parameters
Type Name Description
EvasObject obj

The object to use unmapped geometry to populate the map coordinates.

System.Int32 z

The point Z-coordinate hint (pre-perspective transform). This value is used for all the four points.

API Level: preview
View Source

PopulatePoints(Rect, Int32)

Populates the source and destination map points to match the given geometry.

Declaration
C#
Copy
public void PopulatePoints(Rect geometry, int z)
Parameters
Type Name Description
Rect geometry

The geometry value contains X-coordinate, Y-coordinate, the width and height to use, to calculate the second and third points.

System.Int32 z

The Z-coordinate hint (pre-perspective transform) This value is used for all the four points.

API Level: preview
View Source

Rotate(Double, Int32, Int32)

Rotates the map.

Declaration
C#
Copy
public void Rotate(double degrees, int cx, int cy)
Parameters
Type Name Description
System.Double degrees

The abount of degrees from 0.0 to 360.0 to rotate.

System.Int32 cx

The rotation's center horizontal position.

System.Int32 cy

The rotation's center vertical position.

API Level: preview
View Source

Rotate3D(Double, Double, Double, Int32, Int32, Int32)

Rotates the map around 3 axes in 3D.

Declaration
C#
Copy
public void Rotate3D(double dx, double dy, double dz, int cx, int cy, int cz)
Parameters
Type Name Description
System.Double dx

The amount of degrees from 0.0 to 360.0 to rotate around the X-axis.

System.Double dy

The amount of degrees from 0.0 to 360.0 to rotate around the Y-axis.

System.Double dz

The amount of degrees from 0.0 to 360.0 to rotate around the Z-axis.

System.Int32 cx

The rotation's center horizontal position.

System.Int32 cy

The rotation's center vertical position.

System.Int32 cz

The rotation's center depth position.

API Level: preview
View Source

SetPointCoordinate(Int32, Point3D)

Changes the map point's coordinate.

Declaration
C#
Copy
public void SetPointCoordinate(int idx, Point3D point)
Parameters
Type Name Description
System.Int32 idx

The index of point to change, this must be smaller than the map size.

Point3D point

The 3D point coordinate.

API Level: preview
View Source

Zoom(Double, Double, Int32, Int32)

Changes the map to apply the given zooming.

Declaration
C#
Copy
public void Zoom(double x, double y, int cx, int cy)
Parameters
Type Name Description
System.Double x

The horizontal zoom to use.

System.Double y

The vertical zoom to use.

System.Int32 cx

The zooming center horizontal position.

System.Int32 cy

The zooming center vertical position.

API Level: preview