Click or drag to resize

TileMapRectangle Class

Represents a MapRectangle corresponding to a tile.
Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.MapMapRectangle
    Ptv.XServer.Controls.Map.TileProvidersTileMapRectangle

Namespace:  Ptv.XServer.Controls.Map.TileProviders
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class TileMapRectangle : MapRectangle

The TileMapRectangle type exposes the following members.

Constructors
  NameDescription
Public methodTileMapRectangle
Creates and initializes an instance of MapRectangleByTile.
Top
Properties
  NameDescription
Public propertyCenter
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.)
Public propertyEast
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.)
Public propertyHeight
Gets or sets the height of the rectangle. If the height is set, the rectangle's center remains the same.
(Inherited from MapRectangle.)
Public propertyIsEmpty
Gets a value indicating whether the rectangle is empty. This is true, if the width or height value is lower 0.
(Inherited from MapRectangle.)
Public propertyNorth
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.)
Public propertyNorthEast
Gets the NorthEast point of the rectangle.
(Inherited from MapRectangle.)
Public propertyNorthWest
Gets the NorthWest point of the rectangle.
(Inherited from MapRectangle.)
Public propertySouth
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.)
Public propertySouthEast
Gets the SouthEast point of the rectangle.
(Inherited from MapRectangle.)
Public propertySouthWest
Gets the SouthWest point of the rectangle.
(Inherited from MapRectangle.)
Public propertyWest
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.)
Public propertyWidth
Gets or sets the width of the rectangle. If the width is set, the rectangle's center remains the same.
(Inherited from MapRectangle.)
Public propertyX
Gets the x-coordinate of the tile.
Public propertyY
Gets the y-coordinate of the tile.
Public propertyZ
Gets the z-coordinate of the tile.
Top
Methods
  NameDescription
Public methodContains(Point)
Checks whether the point parameter is within the rectangle, inclusive its edges.
(Inherited from MapRectangle.)
Public methodContains(MapRectangle)
Checks whether the rect parameter is located completely within the rectangle, inclusive its edges.
(Inherited from MapRectangle.)
Public methodEquals(Object)
Compares this rectangle with the passed in object.
(Inherited from MapRectangle.)
Public methodEquals(MapRectangle)
Compares this Rect with the passed in object.
(Inherited from MapRectangle.)
Public methodGetHashCode
Returns the HashCode for this object.
(Inherited from MapRectangle.)
Public methodInflate(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.)
Public methodInflate(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.)
Public methodInflateHorizontally
Inflates the object horizontally by specifying a factor. The width of the rectangle is multiplied by this factor.
(Inherited from MapRectangle.)
Public methodInflateVertically
Inflates the object vertically by specifying a factor. The height of the rectangle is multiplied by this factor.
(Inherited from MapRectangle.)
Public methodIntersect
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.)
Public methodIntersectsWith
Checks whether the parameter rect intersects with this rectangle. If one edge is coincident, it is considered an intersection.
(Inherited from MapRectangle.)
Public methodTranslate
Translates the rectangle horizontally and vertically, if it is not empty. All boundaries are changed.
(Inherited from MapRectangle.)
Public methodTranslateHorizontally
Translates the rectangle horizontally, if it is not empty. The properties West and East are changed.
(Inherited from MapRectangle.)
Public methodTranslateVertically
Translates the rectangle vertically, if it is not empty. The properties South and North are changed.
(Inherited from MapRectangle.)
Public methodUnion(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.)
Public methodUnion(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.)
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also