TileMapRectangle Class |
Namespace: Ptv.XServer.Controls.Map.TileProviders
The TileMapRectangle type exposes the following members.
Name | Description | |
---|---|---|
TileMapRectangle |
Creates and initializes an instance of MapRectangleByTile.
|
Name | Description | |
---|---|---|
Center |
Gets or sets the center of the rectangle. If the rectangle is empty, the point (Double.NaN, Double.NaN) is returned.
If the center is set to an empty rectangle, the value becomes the new center, the width and height of the rectangle are
set to 0. If the rectangle was not empty, the center is changed, but the width and height remain unchanged.
(Inherited from MapRectangle.) | |
East |
Gets or sets the East boundary of the rectangle. The rectangle is empty, if the value is lower than the West boundary value.
No checks are made to avoid a lower value compared to the West boundary.
(Inherited from MapRectangle.) | |
Height |
Gets or sets the height of the rectangle. If the height is set, the rectangle's center remains the same.
(Inherited from MapRectangle.) | |
IsEmpty |
Gets a value indicating whether the rectangle is empty. This is true,
if the width or height value is lower 0.
(Inherited from MapRectangle.) | |
North |
Gets or sets the North boundary of the rectangle. The rectangle is empty, if the value is lower than the South boundary value.
No checks are made to avoid a higher value compared to the South boundary.
(Inherited from MapRectangle.) | |
NorthEast |
Gets the NorthEast point of the rectangle.
(Inherited from MapRectangle.) | |
NorthWest |
Gets the NorthWest point of the rectangle.
(Inherited from MapRectangle.) | |
South |
Gets or sets the South boundary of the rectangle. The rectangle is empty, if the value is higher than the North boundary value.
No checks are made to avoid a higher value compared to the North boundary.
(Inherited from MapRectangle.) | |
SouthEast |
Gets the SouthEast point of the rectangle.
(Inherited from MapRectangle.) | |
SouthWest |
Gets the SouthWest point of the rectangle.
(Inherited from MapRectangle.) | |
West |
Gets or sets the West boundary of the rectangle. The rectangle is empty, if the value is higher than the East boundary value.
No checks are made to avoid a higher value compared to the East boundary.
(Inherited from MapRectangle.) | |
Width |
Gets or sets the width of the rectangle. If the width is set, the rectangle's center remains the same.
(Inherited from MapRectangle.) | |
X |
Gets the x-coordinate of the tile.
| |
Y |
Gets the y-coordinate of the tile.
| |
Z |
Gets the z-coordinate of the tile.
|
Name | Description | |
---|---|---|
Contains(Point) |
Checks whether the point parameter is within the rectangle, inclusive its edges.
(Inherited from MapRectangle.) | |
Contains(MapRectangle) |
Checks whether the rect parameter is located completely within the rectangle, inclusive its edges.
(Inherited from MapRectangle.) | |
Equals(Object) |
Compares this rectangle with the passed in object.
(Inherited from MapRectangle.) | |
Equals(MapRectangle) |
Compares this Rect with the passed in object.
(Inherited from MapRectangle.) | |
GetHashCode |
Returns the HashCode for this object.
(Inherited from MapRectangle.) | |
Inflate(Double) |
Inflates the object horizontally and vertically by specifying one single factor, applied to both dimensions.
The width and height of the rectangle is multiplied by this factor.
(Inherited from MapRectangle.) | |
Inflate(Double, Double) |
Inflates the object horizontally and vertically by specifying two different factors for each dimension.
The width and height of the rectangle is multiplied by these factors.
(Inherited from MapRectangle.) | |
InflateHorizontally |
Inflates the object horizontally by specifying a factor. The width of the rectangle is multiplied by this factor.
(Inherited from MapRectangle.) | |
InflateVertically |
Inflates the object vertically by specifying a factor. The height of the rectangle is multiplied by this factor.
(Inherited from MapRectangle.) | |
Intersect |
Updates this rectangle to be the intersection of this and parameter rect.
If either this or rect are empty, the result is empty as well.
(Inherited from MapRectangle.) | |
IntersectsWith |
Checks whether the parameter rect intersects with this rectangle.
If one edge is coincident, it is considered an intersection.
(Inherited from MapRectangle.) | |
Translate |
Translates the rectangle horizontally and vertically, if it is not empty. All boundaries are changed.
(Inherited from MapRectangle.) | |
TranslateHorizontally |
Translates the rectangle horizontally, if it is not empty. The properties West and East are changed.
(Inherited from MapRectangle.) | |
TranslateVertically |
Translates the rectangle vertically, if it is not empty. The properties South and North are changed.
(Inherited from MapRectangle.) | |
Union(Point) |
Updates this rectangle to be the union of this and parameter point. I.e. the rectangle boundaries and the point
itself are included in the new boundaries.
If point has Double.IsNaN coordinates, the boundaries remain unchanged.
If this is empty, the boundaries are adapted to the point's coordinates (width and height will be 0).
(Inherited from MapRectangle.) | |
Union(MapRectangle) |
Updates this rectangle to be the union of this and parameter rect. I.e. the rectangle boundaries of this
and rect are included in the new boundaries.
If rect is empty, the boundaries remain unchanged.
If this is empty, the new boundaries are adapted to the rect's boundaries.
(Inherited from MapRectangle.) |
Name | Description | |
---|---|---|
ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |