MapWindowDevelper:View
From MapWindow GIS
MapWindow.Interfaces.View
The View interface is used to manipulate or work with the main MapWindow display.
Property Members
| Name | Access | Summary |
|---|---|---|
| BackColor : Color | public | Gets or sets the background color of the map. |
| CursorMode : tkCursorMode | public | Gets or sets the current cursor mode. The cursor mode can be any of the following: cmNonecmPancmSelectioncmZoomIncmZoomOut |
| Draw : Draw | public | Returns a MapWindow.Interfaces.Draw interface used to add custom drawing to the map. |
| ExtentPad : Double | public | Gets or sets the amount to pad around the extents when calling ZoomToMaxExtents, ZoomToLayer, and ZoomToShape. |
| Extents : Extents | public | Gets or sets the map's current extents. |
| MapCursor : tkCursor | public | Gets or sets the cursor to use on the map. The enumeration can
be any of the following: crsrAppStartingcrsrArrowcrsrCrosscrsrHelpcrsrIBeamcrsrMapDefaultcrsrNocrsrSizeAllcrsrSizeNESWcrsrSizeNScrsrSizeNWSEcrsrSizeWEcrsrUpArrowcrsrUserDefinedcrsrWait |
| MapState : String | public | Gets or sets the MapState string which describes in a single
string the entire map state, including layers and coloring schemes. |
| SelectColor : Color | public | Gets or sets the color used to indicate a selected shape. |
| SelectedShapes : SelectInfo | public | Returns a SelectInfo object containing information about all shapes that are currently selected. |
| SelectionPersistence : Boolean | public | Gets or sets whether selection should be persistent. If
selection is persistent, previously selected shapes are not cleared before selecting the new shapes. When selection is persistent you must select nothing to clear the selection. The default value for this property is false. When selection is not persistent, all selected shapes are cleared between selection routines unless the user is holding down a control or shift key. |
| SelectionTolerance : Double | public | The tolerance, in projected map units, to use for selection. |
| SelectMethod : SelectMode | public | Gets or sets the selection method to use. InclusionIntersection
Inclusion means that the entire shape must be within the selection bounds in order to select the shape. Intersection means that only a portion of the shape must be within the selection bounds in order for the shape to be selected. |
| Tag : String | public | Gets or sets a tag for the map. The tag is a string variable
that can be used by a developer to store any information they desire. |
| UserCursorHandle : Int32 | public | Gets or sets the handle of the cursor to use when the CursorMode is cmUserDefined. |
| ZoomPercent : Double | public | Gets or sets the default zoom percentage to use when interacting with the map using a mouse. |
Method Members
| Name | Access | Summary |
|---|---|---|
| ClearSelectedShapes() : Void | public | Clears all selected shapes from the MapWindow, reverting them to their original colors. |
| Identify() : IdentifiedLayers | public | Queries all of the active shapefile layers for any within the specified tolerance of the given point. |
| LockLegend() : Void | public | Prevents the legend from showing any changes made to it until
the UnlockLegend function is called. The legend maintains a count of the number of locks it has, only redrawing if there are no locks. |
| LockMap() : Void | public | Prevents the map from updating due to any changes made to the
layers that are loaded until the UnlockMap function is called. The map maintains a count of the number of locks it has, only redrawing if there are no locks. |
| PixelToProj() : Void | public | Converts a point in pixel coordinates to a point in projected map units. |
| ProjToPixel() : Void | public | Converts a point in projected map units to a point in screen coordinates. |
| PressToolbarButton() : Void | public | Presses the specified toolbar button. |
| Redraw() : Void | public | Forces the map to redraw. This function has no effect if the map is locked. |
| Select() : SelectInfo | public | Selects shapes in the mapwindow from the specified rectangle.
This function uses the same selection routines that are called when a user selects with a mouse. |
| Select() : SelectInfo | public | Selects shapes in the mapwindow from the specified point. The
tolerance used is the global tolerance set through the View.SelectionTolerance. This function uses the same selection routines that are called when a user selects with a mouse. |
| ShowToolTip() : Void | public | Shows a tooltip under the cursor on the map. |
| Snapshot() : Image | public | Takes a snapshot of the currently visible layers at the extents specified. |
| UnlockLegend() : Void | public | Unlocking the Legend allows it to redraw and update the view to
reflect any changes that were made. The legend maintains a count of the number of locks it has, only redrawing if there are no locks. There can never be a negative number of locks. |
| UnlockMap() : Void | public | Allows the map to redraw entirely when changes are made. The
map maintains a count of the number of locks it has, only redrawing if there are no locks. There can never be a negative number of locks. |
| ZoomIn() : Void | public | Zooms the display in by the given factor. |
| ZoomOut() : Void | public | Zooms the display out by the given factor. |
| ZoomToMaxExtents() : Void | public | Zooms the view to the maximum extents of all the loaded and visible layers. |
| ZoomToPrev() : Void | public | Zooms to the previous extent. |
















