Class EvasMap
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The EvasMap is an opaque handle to map points.
C#Copypublic class EvasMap
- Inheritance
-
System.ObjectEvasMap
Constructors
Declaration
C#Copypublic EvasMap(int count)
Parameters
Type | Name | Description |
---|---|---|
Int32 | count | The number of points in the map |
API Level: preview
Properties
IsMoveSync
Gets or sets the flag of the object to move synchronization for map rendering.
Declaration
C#Copypublic bool IsMoveSync { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: preview
Methods
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic Point3D GetPointCoordinate(int idx)
Parameters
Type | Name | Description |
---|---|---|
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
PopulatePoints(EvasObject)
Populates the source and destination map points to exactly match the object.
Declaration
C#Copypublic void PopulatePoints(EvasObject obj)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | obj | The object to use unmapped geometry to populate the map coordinates. |
API Level: preview
PopulatePoints(EvasObject, Int32)
Populates the source and destination map points to exactly match the object.
Declaration
C#Copypublic void PopulatePoints(EvasObject obj, int z)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | obj | The object to use unmapped geometry to populate the map coordinates. |
Int32 | z | The point Z-coordinate hint (pre-perspective transform). This value is used for all the four points. |
API Level: preview
PopulatePoints(Rect, Int32)
Populates the source and destination map points to match the given geometry.
Declaration
C#Copypublic 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. |
Int32 | z | The Z-coordinate hint (pre-perspective transform) This value is used for all the four points. |
API Level: preview
Declaration
C#Copypublic 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. |
Int32 | cx | The rotation's center horizontal position. |
Int32 | cy | The rotation's center vertical position. |
API Level: preview
Rotate3D(Double, Double, Double, Int32, Int32, Int32)
Rotates the map around 3 axes in 3D.
Declaration
C#Copypublic 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. |
Int32 | cx | The rotation's center horizontal position. |
Int32 | cy | The rotation's center vertical position. |
Int32 | cz | The rotation's center depth position. |
API Level: preview
Declaration
C#Copypublic void SetPointCoordinate(int idx, Point3D point)
Parameters
Type | Name | Description |
---|---|---|
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
Declaration
C#Copypublic 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. |
Int32 | cx | The zooming center horizontal position. |
Int32 | cy | The zooming center vertical position. |