ThinkGeo.MapSuite.Core.ExtentHelper
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
This static class exposes a number of helpful methods when dealing with extents.
Inheritance Hierarchy
Members Summary
Public Constructors
Protected Constructors
Public Methods
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
GetDrawingExtent(RectangleShape,Single,Single)
This function is used because the extent to draw must be the rame ratio as the screen width and height. If they are not, then the image drawn will be stretched or compressed. We always adjust the extent upwards to ensure that no matter how we adjust it, the original extent will fit within the new extent. This ensures that everything you wanted to see in the first extent is visible and maybe a bit more.
Return Value
Parameters
CenterAt(RectangleShape,PointShape,Single,Single)
This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.
Return Value
Parameters
CenterAt(RectangleShape,Feature,Single,Single)
This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.
Return Value
Parameters
CenterAt(RectangleShape,Single,Single,Single,Single)
Return Value
Parameters
GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,PointShape,PointShape,Single,Single)
Return Value
Parameters
GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,Feature,Feature,Single,Single)
Return Value
Parameters
GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit)
Return Value
Parameters
GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit)
Return Value
Type:Double
Description:N/A
Parameters
GetScale(RectangleShape,Single,GeographyUnit)
Return Value
Parameters
GetScale(RectangleShape,Single,GeographyUnit,Single)
Return Value
Parameters
GetBoundingBoxOfItems(IEnumerable<BaseShape>)
This API gets the BoundingBox of a group of BaseShapes.
Return Value
Parameters
GetBoundingBoxOfItems(IEnumerable<Feature>)
This API gets the BoundingBox of a group of Features.
Return Value
Parameters
ZoomIn(RectangleShape,Int32)
Return Value
Parameters
ZoomIntoCenter(RectangleShape,Int32,PointShape,Single,Single)
Return Value
Parameters
ZoomIntoCenter(RectangleShape,Int32,Feature,Single,Single)
Return Value
Parameters
ZoomIntoCenter(RectangleShape,Int32,Single,Single,Single,Single)
Return Value
Parameters
ZoomOut(RectangleShape,Int32)
Return Value
Parameters
ZoomOutToCenter(RectangleShape,Int32,PointShape,Single,Single)
Return Value
Parameters
ZoomOutToCenter(RectangleShape,Int32,Feature,Single,Single)
Return Value
Parameters
ZoomOutToCenter(RectangleShape,Int32,Single,Single,Single,Single)
Return Value
Parameters
Pan(RectangleShape,PanDirection,Int32)
Return Value
Parameters
Pan(RectangleShape,Single,Int32)
Return Value
Parameters
ToScreenCoordinate(RectangleShape,Double,Double,Single,Single)
Return Value
Parameters
ToScreenCoordinate(RectangleShape,RectangleShape,Single,Single)
Return Value
Parameters
ToScreenCoordinate(RectangleShape,PointShape,Single,Single)
Return Value
Parameters
ToScreenCoordinate(RectangleShape,Feature,Single,Single)
Return Value
Parameters
ToWorldCoordinate(RectangleShape,Single,Single,Single,Single)
Return Value
Parameters
ToWorldCoordinate(RectangleShape,ScreenPointF,Single,Single)
Return Value
Parameters
SnapToZoomLevel(RectangleShape,GeographyUnit,Single,Single,ZoomLevelSet)
Return Value
Parameters
ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single)
Return Value
Parameters
ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single,ScreenPointF)
Return Value
Parameters
ZoomIntoOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)
Return Value
Parameters
ZoomOutToOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)
Return Value
Parameters
ResizeExtent(RectangleShape,Single,Single,Single,GeographyUnit,MapResizeMode)
Return Value
Parameters
Protected Methods
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
GetStandardDPIScale(RectangleShape,Single,GeographyUnit,Single)
Return Value
Type:Double
Description:N/A
Parameters
screenWidth
Type:Single
Description:N/A
dpi
Type:Single
Description:N/A
GetSnappedZoomLevelIndex(Double,Collection<Double>)
Return Value
Type:Int32
Description:N/A
Parameters
scale
Type:Double
Description:N/A
zoomLevelScales
Type:Collection<Double>
Description:N/A
GetSnappedZoomLevelIndex(Double,Collection<Double>,Double,Double)
Return Value
Type:Int32
Description:N/A
Parameters
scale
Type:Double
Description:N/A
zoomLevelScales
Type:Collection<Double>
Description:N/A
minimumScale
Type:Double
Description:N/A
maximumScale
Type:Double
Description:N/A
GetSnappedScale(RectangleShape,Single,GeographyUnit)
Return Value
Type:Double
Description:N/A
Parameters
screenWidth
Type:Single
Description:N/A
GetCurrentZoomLevelNumber(Double,RectangleShape,GeographyUnit,Single)
Return Value
Type:Int32
Description:N/A
Parameters
newWidth
Type:Double
Description:N/A
dpi
Type:Single
Description:N/A
GetStretchedBitmap(Bitmap,Rectangle,RectangleF)
Return Value
Type:Bitmap
Description:N/A
Parameters
originalBitmap
Type:Bitmap
Description:N/A
destRect
Type:Rectangle
Description:N/A
srcRect
Type:RectangleF
Description:N/A
GetMiniBBox(PointShape)
Return Value
Parameters
GetTemporaryFolder()
Return Value
Type:String
Description:N/A
Parameters
SortWmsParameters(Dictionary<String,String>)
Return Value
Type:Void
Description:N/A
Parameters
Public Properties
Protected Properties
Public Events