holoride
Search Results for

    Show / Hide Table of Contents

    Class TileAreaDescription

    Manages the distribution of tiles of a certain zoom level within the given bounds.

    Inheritance
    object
    TileAreaDescription
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Library.Runtime.dll
    Syntax
    public class TileAreaDescription

    Constructors

    TileAreaDescription(int, GlobalBounds, GeoCoordinate)

    Constructor of the TileAreaDescription class.

    Declaration
    public TileAreaDescription(int zoomLevel, GlobalBounds bounds, GeoCoordinate pivot)
    Parameters
    Type Name Description
    int zoomLevel

    The zoom level of this tile area.

    GlobalBounds bounds

    The bounds to gather the resources within.

    GeoCoordinate pivot

    The pivot to transfer cartesian into geoCoordinates.

    Fields

    NorthWestGeo

    The most north-west GeoCoordinate.

    Declaration
    public readonly GeoCoordinate NorthWestGeo
    Field Value
    Type Description
    GeoCoordinate

    NorthWestTilePos

    The most north-west TilePosition.

    Declaration
    public readonly Vector2Int NorthWestTilePos
    Field Value
    Type Description
    Vector2Int

    NorthWestTileUV

    The most north-west UV coordinate.

    Declaration
    public readonly Vector2 NorthWestTileUV
    Field Value
    Type Description
    Vector2

    SouthEastGeo

    The most south-east GeoCoordinate.

    Declaration
    public readonly GeoCoordinate SouthEastGeo
    Field Value
    Type Description
    GeoCoordinate

    SouthEastTilePos

    The most south-east TilePosition.

    Declaration
    public readonly Vector2Int SouthEastTilePos
    Field Value
    Type Description
    Vector2Int

    SouthEastTileUV

    The most south-east UV coordinate.

    Declaration
    public readonly Vector2 SouthEastTileUV
    Field Value
    Type Description
    Vector2

    ZoomLevel

    The map service this tile array refers to.

    Declaration
    public readonly int ZoomLevel
    Field Value
    Type Description
    int

    Properties

    Center

    Gets the center tile.

    Declaration
    public Vector2Int Center { get; }
    Property Value
    Type Description
    Vector2Int

    GlobalTilePositions

    Gets a list of all tile positions in global space.

    Declaration
    public List<Vector2Int> GlobalTilePositions { get; }
    Property Value
    Type Description
    List<Vector2Int>

    LocalTilePositions

    Gets a list of all tile positions in local space.

    Declaration
    public List<Vector2Int> LocalTilePositions { get; }
    Property Value
    Type Description
    List<Vector2Int>

    TileCount

    Gets the total tile count.

    Declaration
    public int TileCount { get; }
    Property Value
    Type Description
    int

    TileCountNorthSouth

    Gets the tile count from north to south.

    Declaration
    public int TileCountNorthSouth { get; }
    Property Value
    Type Description
    int

    TileCountWestEast

    Gets the tile count from west to east.

    Declaration
    public int TileCountWestEast { get; }
    Property Value
    Type Description
    int

    Methods

    LocalToGlobalTilePos(Vector2Int)

    Converts a local position to a global tile position.

    Declaration
    public Vector2Int LocalToGlobalTilePos(Vector2Int localTilePos)
    Parameters
    Type Name Description
    Vector2Int localTilePos

    The local tile position to convert.

    Returns
    Type Description
    Vector2Int

    The corresponding global tile position.

    MaximumTileCount(int, float, out int, out int)

    The further to north tiles are requested, the smaller is the area they cover. This method computes the maximum number of tiles that is required to cover areas under a given maximum supported latitude. Main usage is to have a reasonable magnitude for memory allocation.

    Declaration
    public static void MaximumTileCount(int zoomLevel, float extents, out int maximumTileCountWestEast, out int maximumTileCountNorthSouth)
    Parameters
    Type Name Description
    int zoomLevel

    The zoomLevel.

    float extents

    The extents of the area.

    int maximumTileCountWestEast

    The maximum tile count in west east direction.

    int maximumTileCountNorthSouth

    The maximum tile count in north south direction.

    MaximumTileCount(int, float)

    The further to north tiles are requested, the smaller is the area they cover. This method computes the maximum number of tiles that is required to cover areas under a given maximum supported latitude. Main usage is to have a reasonable magnitude for memory allocation.

    Declaration
    public static int MaximumTileCount(int zoomLevel, float extents)
    Parameters
    Type Name Description
    int zoomLevel

    The zoomLevel.

    float extents

    The extents of the area.

    Returns
    Type Description
    int

    The maximum map tile number that can occur.

    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint