DotSpatial.Controls
Based on Ted's original idea in https://dotspatial.codeplex.com/discussions/232535 discussion thread,
a second frame is added to complement the main frame to handle dateline crossing.
First the main frame is normalized so that its left edge is in range [-180..180] and its width is bound to 360 but
retain its aspect ratio.
After the normalization, if main frame's right edge > 180 which indicates dateline crossing, then the main frame is clipped
to 180 degrees, and the secondary frame takes over, shifted to -180 degrees to the required width.
Dateline crossing map works correctly only with WGS84 datum Mercator projection.
The Map Control for 2D applications.
A Map Component that can be dropped on a form
This map draws geographic coordinates directly to pixel coordinates
IBasicMap
IClient
Converts a single point location into an equivalent geographic coordinate
The client coordinate relative to the map control
The geographic ICoordinate interface
Converts a rectangle in pixel coordinates relative to the map control into
a geographic envelope.
The rectangle to convert
An IEnvelope interface
Converts a single geographic location into the equivalent point on the
screen relative to the top left corner of the map.
The geographic position to transform
A Point with the new location.
Converts a single geographic envelope into an equivalent Rectangle
as it would be drawn on the screen.
The geographic IEnvelope
A Rectangle
Gets or sets the geographic extents to show in the view.
Adds a new layer to the map using an open file dialog.
Converts a point from client coordinates to screen coordinates.
The client location.
A Point in screen coordinates
Converst a point from screen coordinates to client coordinates
The Point representing the screen position
The Point
Invalidates the entire Map control, forcing it to redraw itself from the back buffer stencils.
This is good for drawing on top of the map, or when a layer is visible or not. If you need
to change the colorscheme as well
Invalidates the specified clipRectangle so that only that small region needs
to redraw itself.
Instructs the map to update the specified clipRectangle by drawing it to the back buffer.
Instructs the map to change the perspective to include the entire drawing content, and
in the case of 3D maps, changes the perspective to look from directly overhead.
// Added by Eric Hullinger 12/28/2012 for use in preventing zooming out too far.
Gets the MaxExtents of current Map.
Indicates whether the extent should be expanded by 10% to satisfy issue 84 (Expand target envelope by 10%).
Instructs the map to clear the layers.
returns a functional list of the ILayer members. This list will be
separate from the actual list stored, but contains a shallow copy
of the members, so the layers themselves can be accessed directly.
Gets the bounding rectangle representing this map in screen coordinates
Gets an image that has been buffered
Gets the client rectangle of the map control
Gets or sets the current tool mode. This rapidly enables or disables specific tools to give
a combination of functionality. Selecting None will disable all the tools, which can be
enabled manually by enabling the specific tool in the GeoTools dictionary.
Gets the geographic bounds of all of the different data layers currently visible on the map.
Gets the height of the control
Gets or sets a boolean that indicates whether a map-function is currently interacting with the map.
If this is true, then any tool-tip like popups or other mechanisms that require lots of re-drawing
should suspend themselves to prevent conflict. Setting this actually increments an internal integer,
so when that integer is 0, the map is "Not" busy, but multiple busy processes can work independently.
Indicates whether the Map is Zoomed out to full extent or not.
Added 1/3/2013 by Eric Hullinger
Gets the screen coordinates of the
Gets the legend, if any, associated with this map control.
A MapFrame
Gets the screen coordinates of the top of this control
Gets the width of the control
This allows to zoom out farther than the extent of the map. This is useful if we have only layers with small extents and want to look at them from farther out.
If the specified function is already in the list of functions, this will properly test the yield style of various
map functions that are currently on and then activate the function. If this function is not in the list, then
it will add it to the list. If you need to control the position, then insert the function before using this
method to activate. Be warned that calling "Activate" directly on your function will activate your function
but not disable any other functions. You can set "Map.FunctionMode = FunctionModes.None" first, and then
specifically activate the function that you want.
The MapFunction to activate, or add.
Adds a new layer to the map by using an open file dialog
An IMapLayer that represents the layer in the map.
Creates a new layer from the specified fileName and adds it to the map.
The string fileName to add to the map
The newly created IMapLayer
Uses the file dialog to allow selection of a fileName for opening the
new layer, but does not allow multiple files to be added at once.
The newly opened IMapLayer
This will add a new label category that will only apply to the specified filter expression. This will not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled. Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this category.
The name of the category.
This will add a new label category that will only apply to the specified filter expression. This will not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled. Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this category.
A geographic width, so that if the map is zoomed to a geographic width smaller than this value, labels should appear.
Gets the subset of layers that are specifically raster layers, allowing
you to control their symbology.
Gets the subset of layers that are specifically raster layers, allowing
you to control their symbology.
Gets a list of just the line layers (and not the general layers)
Gets a list of just the polygon layers (and not the general layers)
Gets a list of just the point layers (and not the general layers)
Gets a list of just the feature layers regardless of whether they are lines, points, or polygons
An array of IMapFeatureLayers
Allows a multi-select file dialog to add raster layers, applying a
filter so that only supported raster formats will appear.
A list of the IMapRasterLayers that were opened.
Allows an open file dialog without multi-select enabled to add a single
raster to the map as a layer, and returns the added layer.
The IMapRasterLayer that was added
Allows a mult-select open file dialog to specify several fileNames to add.
Only files with supported vector extensions will be shown.
The list of added MapFeatureLayers
Allows an open file dialog without multi-select enabled to add a single
raster tot he map as a layer, and returns the added layer.
Allows a mult-select open file dialog to specify several fileNames to add.
Only files with supported image extensions will be shown.
The list of added MapImageLayers
Allows an open dialog without multi-select to specify a single fileName
to be added to the map as a new layer and returns the newly added layer.
The layer that was added to the map.
Gets the MapFunction based on the string name
The string name to find
The MapFunction with the specified name
This causes all of the datalayers to re-draw themselves to the buffer, rather than just drawing
the buffer itself like what happens during "Invalidate"
This can be called any time, and is currently being used to capture
the end of a resize event when the actual data should be updated.
Zooms in one notch, so that the scale becomes larger and the features become larger.
Zooms out one notch so that the scale becomes smaller and the features become smaller.
Zooms to the next extent of the map
Zooms to the previous extent of the map
Occurs after a layer has been added to the mapframe, or any of the child groups of that mapframe.
Occurs after the map is refreshed
Occurs after the map is resized
Occurs when the map function mode is changed
for example when function mode is changed from 'zoom' to 'select'
Gets or sets the Cursor. This will be changed as the cursor mode changes.
Gets or sets the dictionary of tools built into this project
If this is true, then point layers in the map will only draw points that are
more than 50% revealed. This should increase drawing speed for layers that have
a large number of points.
Returns a MapFrame
The layers for this map
Gets or sets the progress handler for this component.
Gets or sets the projection. This should reflect the projection of the first data layer loaded.
Loading subsequent, but non-matching projections should throw an alert, and allow reprojection.
Creates a new instance of a map component that can be dropped on a form.
Handles the resizing in the case where the map uses docking, and therefore
needs to be updated whenever the form changes size.
This will add a new label category that will only apply to the specified filter expression.
This will not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled.
Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this
category.
The name of the category.
This will add a new label category that will only apply to the specified filter expression. This will
not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled.
Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this
category.
A geographic width, so that if the map is zoomed to a geographic width smaller than
this value, labels should appear.
Gets the subset of layers that are specifically raster layers, allowing
you to control their symbology.
Gets the subset of layers that are specifically raster layers, allowing
you to control their symbology.
Gets a list of just the line layers (and not the general layers)
Gets a list of just the line layers (and not the general layers)
Gets a list of just the line layers (and not the general layers)
Gets a list of just the feature layers regardless of whether they are lines, points, or polygons
An array of IMapFeatureLayers
Gets the MapFunction based on the string name
The string name to find
The MapFunction with the specified name
Removes any members from existing in the selected state
Adds any members found in the specified region to the selected state as long as SelectionEnabled is set to true.
The geographic region where selection occurs that is tolerant for point or linestrings.
The tight envelope to use for polygons.
The selection mode.
The envelope affected area.
Boolean, true if any members were added to the selection.
Inverts the selected state of any members in the specified region.
The geographic region where selection occurs that is tolerant for point or linestrings.
The tight envelope to use for polygons.
The selection mode determining how to test for intersection.
The geographic region encapsulating the changed members.
boolean, true if members were changed by the selection process.
Adds any members found in the specified region to the selected state as long as SelectionEnabled is set to true.
The geographic region where selection occurs that is tolerant for point or linestrings.
The tight envelope to use for polygons.
The selection mode.
The envelope affected area.
Boolean, true if any members were added to the selection.
Allows the user to add a new layer to the map using an open file dialog to choose a layer file.
Multi-select is an option, so this return a list with all the layers.
Adds the fileName as a new layer to the map, returning the new layer.
The string fileName of the layer to add
The IMapLayer added to the file.
This is so that if you have a basic map interface you can still prompt
to add a layer, you just won't get an IMapLayer back.
Uses the file dialog to allow selection of a fileName for opening the
new layer, but does not allow multiple files to be added at once.
The newly opened IMapLayer
Allows a multi-select file dialog to add raster layers, applying a
filter so that only supported raster formats will appear.
A list of the IMapRasterLayers that were opened.
Allows an open file dialog without multi-select enabled to add a single
raster to the map as a layer, and returns the added layer.
The IMapRasterLayer that was added, or null.
Allows a mult-select open file dialog to specify several fileNames to add.
Only files with supported vector extensions will be shown.
The list of added MapFeatureLayers
Allows an open file dialog without multi-select enabled to add a single
raster tot he map as a layer, and returns the added layer.
The IMapFeatureLayer that was added, or null.
Allows a mult-select open file dialog to specify several fileNames to add.
Only files with supported image extensions will be shown.
The list of added MapImageLayers
Allows an open dialog without multi-select to specify a single fileName
to be added to the map as a new layer and returns the newly added layer.
The layer that was added to the map, or null.
This can be called any time, and is currently being used to capture
the end of a resize event when the actual data should be updated.
Saves the dataset belonging to the layer.
Instructs the map to change the perspective to include the entire drawing content, and
in the case of 3D maps, changes the perspective to look from directly overhead.
Gets the MaxExtent Window of the current Map.
Indicates whether the extent should be expanded by 10% to satisfy issue 84 (Expand target envelope by 10%).
This activates the labels for the specified feature layer that will be the specified expression
where field names are in square brackets like "[Name]: [Value]". This will label all the features,
and remove any previous labeling.
The FeatureLayer to apply the labels to.
The string label expression to use where field names are in square brackets like
[Name]
The font to use for these labels
The color for the labels
Removes any existing label categories
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
The graphics device to print to
the rectangle where the map content should be drawn.
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
The graphics device to print to
the rectangle where the map content should be drawn.
the extents to print in the target rectangle
Instructs the map to clear the layers.
If the specified function is already in the list of functions, this will properly test the yield style of various
map functions that are currently on and then activate the function. If this function is not in the list, then
it will add it to the list. If you need to control the position, then insert the function before using this
method to activate. Be warned that calling "Activate" directly on your function will activate your function
but not disable any other functions. You can set "Map.FunctionMode = FunctionModes.None" first, and then
specifically activate the function that you want.
The MapFunction to activate, or add.
returns a functional list of the ILayer members. This list will be
separate from the actual list stored, but contains a shallow copy
of the members, so the layers themselves can be accessed directly.
Handles removing event handlers for the map frame
Handles adding new event handlers to the map frame
Fires the LayerAdded event
Occurs after the selection is updated on all the layers
Gets all layers of the map including layers which are nested
within groups. The group objects themselves are not included in this list,
but all FeatureLayers, RasterLayers, ImageLayers and other layers are included.
The list of the layers
Gets all map groups in the map including the nested groups
the list of the groups
This causes all of the data layers to re-draw themselves to the buffer, rather than just drawing
the buffer itself like what happens during "Invalidate"
Instructs the map to update the specified clipRectangle by drawing it to the back buffer.
Converts a single point location into an equivalent geographic coordinate
The client coordinate relative to the map control
The geographic ICoordinate interface
Converts a rectangle in pixel coordinates relative to the map control into
a geographic envelope.
The rectangle to convert
An IEnvelope interface
Converts a single geographic location into the equivalent point on the
screen relative to the top left corner of the map.
The geographic position to transform
A Point with the new location.
Converts a single geographic envelope into an equivalent Rectangle
as it would be drawn on the screen.
The geographic IEnvelope
A Rectangle
Zooms in one notch, so that the scale becomes larger and the features become larger.
Zooms out one notch so that the scale becomes smaller and the features become smaller.
Zooms to the next extent
Zooms to the previous extent
Occurs when this control tries to paint the background.
Perform custom drawing
Captures an image of whatever the contents of the back buffer would be at the size of the screen.
Creates a snapshot that is scaled to fit to a bitmap of the specified width.
The width of the desired bitmap
A bitmap with the specified width
Fires the DoMouseDoubleClick method on the ActiveTools
Fires the OnMouseDown event on the Active Tools
Fires the OnMouseUp event on the Active Tools
Fires the OnMouseMove event on the Active Tools
Fires the OnMouseWheel event for the active tools
Fires the ProjectionChanged event.
Fires the ViewExtentsChanged event. Corrects the ViewExtent if it is smaller than 1e-7. If ZoomOutFartherThanMaxExtent is set, it corrects the
ViewExtent if it is bigger then 1e+9. Otherwise it corrects the ViewExtent if it is bigger than the Maps extent + 10%.
Fires the FunctionModeChanged event.
Occurs after this object has been resized.
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Occurs after the map refreshes the image
Occurs when the map function mode has changed
Example of changing the function mode
is changing from zoom mode to select mode.
Occurs after a resize event
Occurs after the selection has changed for all the layers
Occurs after a layer has been added to the mapframe, or any of the child groups of that mapframe.
Public event advertising the mouse movement
Fires after the view extents have been altered and the map has redrawn to the new extents.
This is an echo of the MapFrame.ViewExtentsChanged, so you only want one handler.
Occurs after the projection of the map has been changed
Gets or sets a boolean that indicates whether or not
the drawing layers should cache off-screen data to
the buffer. Panning will be much more elegant,
but zooming, selecting and resizing will take a
performance penalty.
Gets or sets the Projection Esri string of the map. This property is used for serializing
the projection string to the project file.
Gets or sets a PromptMode enumeration that controls how users are prompted before adding layers
that have a coordinate system that is different from the map.
Gets or sets a PromptMode enumeration that controls how users are prompted before adding layers
that have a coordinate system that is different from the map.
Gets or sets a value indicating whether layers should draw during the actual resize itself. The
normal behavior is to draw the existing image buffer in the new size and position which is much
faster for large datasets, but is not as visually appealing if you only work with small datasets.
Cursor hiding from designer
Gets or sets a boolean indicating whether or not the sel
Gets or sets a boolean that indicates whether the Garbage collector should collect after drawing.
This can be disabled for fast-action panning, but should normally be enabled.
Gets or sets the dictionary of tools built into this project
Gets or sets the current tool mode. This rapidly enables or disables specific tools to give
a combination of functionality. Selecting None will disable all the tools, which can be
enabled manually by enabling the specific tool in the GeoTools dictionary.
Gets or sets a boolean that indicates whether a map-function is currently interacting with the map.
If this is true, then any tool-tip like popups or other mechanisms that require lots of re-drawing
should suspend themselves to prevent conflict. Setting this actually increments an internal integer,
so when that integer is 0, the map is "Not" busy, but multiple busy processess can work independantly.
If true then the map is zoomed to its full extents
Added by Eric Hullinger 1/3/2013
Gets or sets the back buffer. The back buffer should be in Format32bbpArgb bitmap.
If it is not, then the image on the back buffer will be copied from the supplied image.
If this is true, then point layers in the map will only draw points that are
more than 50% revealed. This should increase drawing speed for layers that have
a large number of points.
Gets the geographic bounds of all of the different data layers currently visible on the map.
Gets or sets the geographic extents to show in the view.
Gets or sets the MapFrame that should be displayed in this map.
Gets or sets the collection of layers
Gets or sets the projection. This should reflect the projection of the first data layer loaded.
Loading subsequent, but non-matching projections should throw an alert, and allow reprojection.
Gets or sets the legend to use when showing the layers from this map
Gets or sets the progress handler for this component.
This allows to zoom out farther than the extent of the map. This is useful if we have only layers with small extents and want to look at them from farther out.
Extension of Extent class to deal with dateline crossing
Add Data to the Map
Identifier Tool
Shows the options dialog.
Set the function mode to pan so user can move it with a mouse.
Handles the Click event of the PrintLayout control.
The source of the event.
The instance containing the event data.
Remove currently selected layer from the Map
Select or deselect Features
Deselect all features in all layers
Zoom In
Zoom to previous extent
Zoom Out
Zoom to previous extent
Zoom to the currently selected layer
Zoom to maximum extents
The source of the event.
The instance containing the event data.
Special marker for default required imports
Default Dock Manager. It will used when no custom implementation of IDockManager where found.
An interface that allows plugins to add controls which are managed by the application as forms or docking panels.
Adds the specified panel.
The panel.
Removes the specified panel.
The key.
Resets the layout of the dock panels to a developer specified location.
Activates and selects the panel.
The key.
Hides the panel. A subsequent call to SelectPanel will show this panel in the same place it was when hidden.
The key.
Shows the panel but does not select it.
The key.
Occurs when the active panel is changed, meaning a difference panel is activated.
Occurs when a panel is closed, which means the panel can still be activated or removed.
Occurs after a panel is added.
Occurs after a panel is removed.
Occurs when a panel is hidden.
Default Header control. It will used when no custom implementation of IHeaderControl where found.
Implementation of toolbar header.
HeaderControl which takes care of implementing RemoveItems.
By using this interface, the developers can create a button, menu, ribbon tab. etc
without considering whether the user interface is ribbon style or standard toolbar
style
This will add a new item that will appear on the standard toolbar or ribbon control.
Remove item from the standard toolbar or ribbon control
The string itemName to remove from the standard toolbar or ribbon control
Removes all items the plugin created.
Selects the root, making it the active root.
The key.
This event occurs when a root item is selected
The key of the home root item.
The key of the Application Menu item.
Used as the group caption for icons that should appear near the ribbon
maximize/minimize chevron.
A key to use for the root container of any extensions that do not provider a root key.
Removes all items the plugin created by calling Remove() individually for each.
Should only be called by the plugin (from the plugin assembly).
This will add a new item that will appear on the standard toolbar or ribbon control.
Should only be called by the plugin (from the plugin assembly).
Remove item from the standard toolbar or ribbon control. Also removes groups or parents when all
items have been removed from them.
The string itemName to remove from the standard toolbar or ribbon control
If passed a root item the behavior is not defined. The root item should never be empty because
it will be removed when all of its child items are removed.
Selects the root, making it the active root.
The key.
Adds the specified item.
The item.
Adds the menu container item.
The item.
Adds the specified root item.
The root item.
The RootItem should not be visible until it contains other items.
Adds a combo box style item
The item.
Adds a visible separator.
The item.
Adds the specified textbox item.
The item.
Adds the item to dictionary so that it can be removed later.
Item to add.
Full name of the assembly.
Gets header item by key
Key
Header item or null if not found.
Occurs when a root item is selected by the user.
This event also occurs after the SelectRoot method is called.
The key of the new selected root item
Occurs when a root item is selected
Adds the item.
The item.
Adds the separator.
The item.
Adds the specified root item.
The root item.
This will add a new item that will appear on the standard toolbar or ribbon control.
The item.
Adds a combo box style item
The item.
Adds the specified textbox item.
The item.
Initializes the specified container.
The tool strip panel.
Menu strip.
Loads the toolstrips in the order, that was saved on the last exit.
Remove item from the standard toolbar or ribbon control
The string itemName to remove from the standard toolbar or ribbon control
Selects the root. (Does nothing.)
The key.
Determines whether [is for tool strip] being that it has an icon. Otherwise it should go on a menu.
The item.
true if [is for tool strip] [the specified item]; otherwise, false.
Loads the saved toolstrippositions from file.
When the user moves toolstrips, the new position gets remembered for saving.
Gets the path to the MenuBarHeaderControl.config-file in which the toolstrip-order is saved.
Saves the toolstrips positions so that the user doesn't have to reorder them on next start.
Adds a toolstrip with the given name to the _strips-List. If the toolbars were already loaded it is added to the _tsPanel as well.
Name of the toolstrip that will be added.
ToolStrip that was created.
Ensure the extensions tab exists.
Make sure the root key is present or use a default.
Unchecks all toolstrip buttons except the current button
The toolstrip button which should
stay checked
If set the userdefined toolstrip-order won't be saved/loaded;
Enables the user to ignore Toolstrippositionsaving (e.g. in DesignMode)
Default Status Control. It will used when no custom implementation of IStatusControl where found.
Used to display status information.
Adds the specified panel.
The panel.
Removes the specified panel.
The panel.
The active panel changed event args.
Initializes a new instance of the ActivePanelChangedEventArgs class.
The active Panel Key.
Gets or sets the active panel key.
The active panel key.
Named DockablePanel to avoid the name conflict with DockPanel in WPF and most control libraries.
Initializes a new instance of the class.
Initializes a new instance of the class.
The key.
The caption.
The inner control.
The dock.
Triggers the PropertyChanged event.
The ea.
Occurs when a property value changes.
Gets or sets the caption of the panel and any tab button.
The caption.
Gets or sets The dock location.
The dock location.
Gets or sets the InnerControl.
The InnerControl.
Gets or sets the key.
The unique identifier.
Gets or sets the small image.
The small image.
Gets or sets the sort order. Lower values will suggest that an item should appear further left in a LeftToRight environment. Or higher up in a top to bottom environment.
Use a multiple of 100 or so to allow other developers some 'space' to place their panels.
The sort order.
A provider is the base class that enables plug-ins to work with the Application Manager.
This is true whether it is a plug-in or a data provider or some other extension.
Activates this provider
Deactivates this provider
Gets or sets a boolean that is true if the extension is active and running.
Gets a value indicating whether [deactivation is allowed].
true if [deactivation is allowed]; otherwise, false.
Specifies the activation priority order
Gets the AppManager that is responsible for activating and deactivating plugins as well as coordinating
all of the other properties.
Feature Identifier form used to display output from MapFunctionIdentify.
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Creates a new instance of FeatureIdentifier
Clears the items in the tree
Adds a new node to the tree view with the layer name
Adds a new node to the tree view with the layer name
The layer.
The bounds.
Re-selects the same layer that was being investigated before.
The StatusPanel class allows adding user-defined status panels to the
status bar
Initializes a new instance of the StatusPanel class.
Triggers the PropertyChanged event.
Gets or sets the caption.
The caption.
Gets or sets the width.
The width.
Gets or sets the key.
The key.
Occurs when a property value changes.
Gets or sets the progress percent.
This activates the labels for the specified feature layer that will be the specified expression
where field names are in square brackets like "[Name]: [Value]". This will label all the features,
and remove any previous labeling.
The FeatureLayer to apply the labels to.
The string label expression to use where field names are in square brackets like
[Name]
The font to use for these labels
The color for the labels
This will add a new label category that will only apply to the specified filter expression.
This will not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled.
Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this
category.
The name of the category.
This will add a new label category that will only apply to the specified filter expression. This will
not remove any existing categories.
The feature layer that the labels should be applied to
The string expression where field names are in square brackets
The string filter expression that controls which features are labeled.
Field names are in square brackets, strings in single quotes.
The label symbolizer that controls the basic appearance of the labels in this
category.
A geographic width, so that if the map is zoomed to a geographic width smaller than
this value, labels should appear.
Removes any existing label categories
Saves the changed settings.
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
The PackageManager performs file based operations on packages.
Marks the package for removal.
The app manager.
The path.
Marks the extension for removal. This will leave any dependencies.
The AppManager.
Name of the file.
Ensures the extension is deactivated.
The AppManager.
Name of the extension.
Removes the pending packages and extensions.
Deletes everything in the DotSpatial.Controls.AppManager.AbsolutePathToExtensions folder.
Deletes the directory and any files, recursively.
The path.
A list of options for enabling Apps.
The "Extensions" menu item will appear on the HeaderControl. Clicking it launches the AppDialog.
A "plugin" glyph will appear suspended in the lower right corner of the map. Clicking it launches
the AppDialog.
The AppDialog will button not be shown. This allows the application developer to provide a custom implementation.
A list of options for enabling Apps.
The "Extensions" menu item will appear on the HeaderControl. Clicking it launches the AppDialog.
A "plugin" glyph will appear suspended in the lower right corner of the map. Clicking it launches
the AppDialog.
The AppDialog will button not be shown. This allows the application developer to provide a custom implementation.
A component that manages the loading of extensions (including data providers), and helps with file serialization.
Will soon be responsible for tools and layer providers, too.
Name of the folder where packages reside.
Found within the Extensions Directory.
Initializes a new instance of the class.
Activates the extensions passed in and deactivates the rest.
If null is passed in, all extensions are deactivated.
Only affects extensions where DeactivationAllowed is true.
The names.
Ensures the required imports are available for IExtension implementors. We guarantee DockManager, HeaderControl and ProgressHandler
are available when an IExtension loads, so that the developer of an IExtension doesn't need to check to see whether they are null.
We make sure these are available before activating an IExtension.
Gets the extension.
The assembly title.
Null if the extension is not present.
Gets the extension.
The assembly title.
The version.
Null if the extension is not present.
Loads Extensions using MEF and then activates them.
Should only be called once on startup.
Triggers the ExtensionsActivated event.
The ea.
Refreshes the extensions - activating any newly discovered ones.
Updates the ProgressHandler.
The message.
Catalogs all extensions and then composes their parts.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Looks for the assembly in a path like Extensions\Packages\
Gets the directories in Directories and those nested one level deep.
Gets the paths of dlls for extensions that were downloaded as packages.
The absolute path to extensions.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Occurs when all plugins are loaded.
Occurs just before starting to activate extensions.
Use this event to run a custom task before extensions
are activated.
Occurs after the extensions that are of type
SatisfyImportsExtensions have been activated. At this stage
the DockManager, ProgressHandler and HeaderControl are available.
Use this event to add custom items to the DockManager, ProgressHandler
or HeaderControl before other extensions are activated.
Occurs when HeaderControl changed.
Occurs when Map Changed
A known directory from where extensions will be loaded, in addition to the configurable Directories list.
Assemblies placed directly in this directory will not be loaded, but rather those nested inside of a folder
more than one level deep.
Gets the catalog containing all off the know extensions. Add any additional extensions to Catalog.Catalogs.
Gets or sets the composition container.
The composition container.
Gets or sets the list of string paths (relative to this one) to search for plugins.
Gets or sets the dock manager that is being used to storing dock panels. You can leave this empty to use default dock manager.
The dock manager.
Gets the extensions.
Gets or sets the header control
Gets or sets the Legend (Table of Contents) associated with the plugin manager
Gets or sets the Map associated with the plugin manager
Gets or sets the progress handler that is being used to display status messages.
Gets or sets the serialization manager.
Gets or sets the method for enabling extension Apps.
Gets or sets the method for enabling extension Apps.
Gets or sets a value indicating whether extensions should be placed in AppDomain.CurrentDomain.BaseDirectory.
true if extensions should be placed in AppDomain.CurrentDomain.BaseDirectory; otherwise, extensions will be placed in a user profile folder based on the entry assembly name.
This must be set before calling LoadExtensions();
CohenSutherland Line(string) clipping algorithm
Clip a line segment. Coordinates are modified in place.
Clip status indicating how the line was clipped.
Clip a linestring
List of clipped linestrings.
Result of individual line segment clip
Initial untested value
Line is completely inside the clip area
Line is completely outside the clip area
Line was partially contained and first vertex was clipped
Line was partially contained and last vertex was clipped
An interactive element.
A visually distinguished container of instances that are Grouped inside of s.
An item that has a visible presence in the
Initializes a new instance of the class.
The key.
Initializes a new instance of the class.
Triggers the PropertyChanged event.
Gets or sets the key.
The unique identifier.
Occurs when a property value changes.
Initializes a new instance of the GroupItem class.
Initializes a new instance of the HeaderItem class.
Initializes a new instance of the class.
The key.
Gets or sets the group. This is a logical unit.
The group.
Gets or sets the root key.
The root key.
Initializes a new instance of the ActionItem class.
Initializes a new instance of the class.
The key.
Initializes a new instance of the ActionItem class.
Gets or sets the caption.
The caption.
Gets or sets the simple tool tip.
The simple tool tip.
Gets or sets a value indicating whether this is enabled.
true if enabled; otherwise, false.
Gets or sets a value indicating whether this is visible.
true if visible; otherwise, false.
A dropdown (combo box) style item.
Initializes a new instance of the DropDownActionItem class.
Initializes a new instance of the DropDownActionItem class.
Triggers the SelectedValueChanged event.
Gets or sets a value indicating whether the user may enter their own value into the dropdown.
true if [allow editing text]; otherwise, false.
Gets the items contained in the dropdown. Changes are not supported after the item is added to the header control.
Gets or sets a value indicating whether the user is selecting multiple elements from the dropdownlist or not.
Gets or sets a value indicating the color of the text in the dropdownbox
Gets or sets a value indicating the display text in the dropdownbox
Gets or sets the width of the item displayed in the header control.
The width.
Gets or sets the text displayed grayed out (as a watermark) when the editor doesn't have focus, and its edit value is null.
The prompt.
Gets or sets the selected item.
The selected item.
Gets or sets an event handler fired on selected value changed.
The on selected value changed.
A container of other instances.
Initializes a new instance of the class.
Initializes a new instance of the MenuContainerItem class.
Initializes a new instance of the MenuContainerItem class.
Gets or sets the large image.
The large image.
An item that appears as a root-level container of other instances.
Initializes a new instance of RootItem MenuContainerItem class.
Initializes a new instance of the class.
Gets or sets the caption.
The caption.
Gets or sets the sort order. Lower values will suggest that an item should appear further left in a LeftToRight environment.
Use a multiple of 10 or so to allow other developers some 'space' to place their menus.
The sort order.
Gets or sets a value indicating whether this is visible.
true if visible; otherwise, false.
Will generally bring this into focus when Visible is set to true.
Information about the selected root item
Initializes a new instance of the class.
Initializes a new instance of the RootItemEventArgs class.
The key of the selected root item
Gets or sets the selected root item key.
The selected root item key
Initializes a new instance of the class.
Initializes a new instance of the SelectedValueChangedEventArgs class.
Gets or sets the selected item.
The selected item.
A thin, typically vertical separation bar.
Initializes a new instance of the class.
Initializes a new instance of the SeparatorItem class.
A simple action which is represented by a button or clickable surface.
Initializes a new instance of the SimpleActionItem class.
Initializes a new instance of the SimpleActionItem class.
Initializes a new instance of the SimpleActionItem class.
Triggers the Click event.
Checks the button it it is unchecked and unchecks the button it if is checked.
This method has no effect if ToggleGroupKey is null.
Triggers the Toggling event.
Gets or sets the click event handler.
The click event handler.
Thrown when the Toggle method is executed.
True if an associated quick-access button is shown.
False if the associated quick-access button is not shown.
Gets or sets the large image.
The large image.
Gets or sets the menu container key.
The menu container key.
Gets or sets the small image.
The small image.
Gets or sets the sort order. Lower values will suggest that an item should appear further left in a LeftToRight environment. Or higher up in a top to bottom environment.
Use a multiple of 100 or so to allow other developers some 'space' to place their groups.
The sort order.
Gets or sets the toggle button group key used to select what buttons should toggle each other..
The toggle button key.
Helper-Class to remember the Toolstrip-Positions to save to file on exit.
A textbox item
Gets or sets the width of the item displayed in the header control.
The width.
Gets or sets the text.
The text.
Gets or sets a value indicating the color of the text in the dropdownbox
The actual control controling the layout.
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Removes the specified layoutElement from the layout
Clears the the layout of all layoutElements
Adds the specified LayoutElement le to the selection
Adds the specified LayoutElement le to the selection
Removes the specified layoutElement from the selection
Clears the current selection
This is the constructor, it makes a LayoutControl
Creates a new blank layout
Prompts the user if they want to save first
Shows a load dialog box and prompts the user to open a layout file
Prompts the user if they want to save first
Loads the paper settings (size, margins, orientation) from the layout
Warn the user if the paper size stored in the file doesn't exist in current printer and ask them if they want to load it anyways
Loads the selected layoutfile
The layout file to load
Loads the paper settings (size, margins, orientation) from the layout
Warn the user if the paper size stored in the file doesn't exist in current printer and ask them if they want to load it anyways
Prepapres the layoutcontrol for closing, prompts the user to save if needed
Shows a save dialog box and prompts the user to save a layout file.
Show prompt dialog or not. Note that dialog will be always shown when Filename is null or empty.
Saves the layout to the specified fileName.
If file name has .mwl extension then it will be saved as DotSpatial Layout File.
Otherwise it will be trying to save as Bitmap.
Specified file name
Throws when fileName is null.
Export layout to bitmap.
Bitmap file name
Throws when fileName is null.
Export layout to DotSpatial Layout File.
DotSpatial Layout File
Throws when fileName is null.
Adds a layout element to the layout
This shows the choose printer dialog
This shows the pageSetup dialog
Prints to the printer currently in PrinterSettings
Refreshes all of the elements in the layout
This event handler is fired by the print document when it prints and draws the layout to the print document
Draws page to layout
Zooms into the paper
Zooms out of the paper
Zooms the page to fit to the screen and centers it
Zooms the specified map element in by 10%
Zooms all map elements in by 10%
Zooms the specified map element out by 10%
Zooms all map element out by 10%
Zooms the specified map element to the full extent of its layers
Zooms all map elements to the full extent of their layers
Zoom the specified map to the extent of the data view
Zoom all maps to the extent of their data view
Pans the map the specified amount
the layout map to pan
The distance to pan the map on x-axis in screen coord
The distance to pan the map on y-axis in screen coord
Deletes all of the selected elements from the model
Inverts the selection
Moves the selection up by one
Moves the selection down by one
Selects All the elements in the layout
Allows the user to click on the layout and drag a rectangle where they want to insert an element
Creates an instance of the MapElement and returns it
Creates an instance of the LegendElement and returns it
Creates an instance of the ScaleBarElement and returns it
Converts all of the selected layout elements to bitmaps
Converts a selected layout element into a bitmap and saves it a the specified location removing the old element and replacing it
Aligns elements with each other or with the margins
A list of elements to align
The side to align to
True to align to paper margins, false to align to the most extreme element of the indicated side
Makes all of the input layout elements have the same width or height
A list of elements to resize to the max size of all elements or the margins
Fit the width or the height
True if use margin size false to use arges element in input list
Converts a point in screen coordinants to paper coordinants in 1/100 of an inch
Converts a point in screen coordinants to paper coordinants in 1/100 of an inch
Converts a rectangle in screen coordinants to paper coordiants in 1/100 of an inch
Converts a rectangle in screen coordinants to paper coordiants in 1/100 of an inch
Converts between a point in paper coordinants in 1/100th of an inch to screen coordinants
Converts between a point in paper coordinants in 1/100th of an inch to screen coordinants
Converts between a rectangle in paper coordinants in 1/100th of an inch to screen coordinants
Converts a rectangle in screen coordinants to paper coordiants in 1/100 of an inch
Centers the layout on a given point
A Point on the paper to center on
Updates the scroll bars so the look and act right
Calculates which edge of a rectangle the point intersects with, within a certain limit
Drawing code
Prevents flicker from any default on paint background operations
This gets fired when one of the layoutElements gets invalidated
Fires whenever the LayoutControl is resized
This fires when the vscrollbar is moved
This fires when the hscrollbar is moved
This allows elements to be refreshed, deleted by key press.
Calls this to indicate the fileName has been changed
Calls this to indicate the zoom has been changed
Call this to indicate the selection has changed
Call this to indicate elements were added or removed.
Call this to indicate that a layout was loaded from file.
This fires after a element was added or removed.
This fires after a layout was loaded from file.
This fires after the selection has changed.
This fires when the zoom of the layout changes.
This fires when the projects file name is changed.
Gets the list of layoutElements currently selected in the project
Gets the list of layoutElements currently loaded in the project
Gets or sets the fileName of the current project
Gets or sets the printer settings for the layout
Gets or sets the layout menu strip to use
Gets or sets the layoutproperty grip to use
Gets or sets the Map control to use
Gets or sets the layout tool strip to use
Gets or sets the layout list box
Gets or sets the LayoutDocToolStrip
Gets or sets the LayoutInsertToolStrip
Gets of sets the LayoutMapToolStrip
Sets a boolean flag indicating if margins should be shown.
Gets or sets the zoom of the paper
Gets or sets the smoothing mode to use to draw the map
Gets or sets the map pan mode
\
Gets the width of the paper in 1/100 of an inch
Gets the heigh of the paper in 1/100 of an inch
This is the primary form where the print layout content is organized before printing
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Default constructor for creating a new instance of hte Layout form
Gets or sets the map that will be used in the layout
Gets layout control.
A Brian Marchioni original toolstrip... preloaded with content.
Creates an instance of the toolstrip
The layout control associated with this toolstrip
A dialog for changing the projection of the map frame.
The Designer for the AppDialog Class
use the mapFrame with this dialog
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Gets or sets the map frame for this dialog
Gets or sets projection
CanConvertTo
Can convert from
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Byte[].
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Looks up a localized resource of type System.Drawing.Bitmap.
Provides an empty control that can be used to create other controls.
Gets or sets how the control will resize itself.
A value from the AutoSizeMode enumeration. The default is AutoSizeMode.GrowOnly.
Gets or sets the border style of the tree view control.
One of the BorderStyle values. The default is BorderStyle.Fixed3D.
InvalidEnumArgumentException: The assigned value is not one of the BorderStyle values.
Occurs when the AutoSize changes
Occurs when the UserControl.AutoValidate property changes.
Occurs before the control becomes visible for the first time.
The extended and complete set of events associated with the PreviewMap
Implementing this avoids having to manually add handlers for every event.
Occurs when a drag-and-drop operation is completed.
An instance of the calling object
A DragEventArgs with the drag parameters
Occurs when the visible region being displayed on the map changes
Occurs when the control is clicked by the mouse.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the control is double clicked by the mouse.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is over the control and a mouse button is pressed.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is moved over the control.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is over the control and a mouse button is released.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse wheel moves while the control has focus.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the control is redrawn.
An instance of the calling object
A PaintEventArgs with any parameters
The layout bitmap provides the ability to add any custom image to the layout
The interface for all elements that can be added to the layout control
Creates an instance of the layout element
Fires when the background is modified
Returns true if the point in paper coordinants intersects with the rectangle of the element
Returns true if the rectangle in paper coordinants intersects with the rectangle of the the element
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
If true then we a actually printing not previewing so we should make it as high quality as possible
Draws the elements background behind everything else
Draws the elements outline on top of everything else
Causes the element to be refreshed
This returns the objects name as a string
Call this when it needs to updated
Fires when the size of the element changes
Fires when the thumbnail gets modified
Updates the thumbnail when needed
Fires when the layout element is invalidated
Fires when the preview thumbnail for this element has been updated
Fires when the size of this element has been adjusted by the user
Gets or sets the line symbolizer that draws the outline
Gets or sets the name of the element
Gets the thumbnail that appears in the LayoutListView
Disables updating redraw when resizing.
Indicates if this element can handle redraw events on resize
Gets or sets the location of the top left corner of the control in 1/100 of an inch paper coordinants
Gets or sets the location of the top left corner of the control in 1/100 of an inch paper coordinants
Gets or sets the size of the element in 1/100 of an inch paper coordinants
Gets or sets the rectangle of the element in 1/100th of an inch paper coordinants
Constructor
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
Boolean, true if this is being drawn to a print document
Preserves the aspect ratio if this boolean is true, otherwise it allows stretching of
the bitmap to occur
Modifies the brightness of the bitmap relative to its original brightness +/- 255 Doesn't modify original bitmap
Modifies the contrast of the bitmap relative to its original contrast +/- 255 Doesn't modify original bitmap
Gets or sets the string fileName of the bitmap to use
Gets or sets bitmap to use
A Brian Marchioni original toolstrip... preloaded with content.
Creates an instance of the toolstrip
The layout control associated with this toolstrip
An enumeration that defines the Mouses current behavior
The cursor is currently in default mode
The cursor is currently being used to create a new selection
The cursor is currently is move selection mode
The cursor is in resize mode because its over the edge of a selected item
When in this mode the user can click on the map select an area and an element is inserted at that spot
In this mode a cross hair is shown letting the user create a new Insert rectangle
Puts the mouse into a mode that allows map panning
The mouse is actually panning a map
Enumerates all the possible resize direction
Enumarates the different ways that a a LayoutElement can handle resize events
The resize style is determined automatically
The element is adjusted to fit the extents even if it is distorted
No scaling occurs whatsoever, and the element is drawn at its original size
An enumeration of the possible scale bar units
Kilometers
Meters
Centimeters
Millimeters
Miles
Yards
Feet
Inches
An enumeration of alignments used for aligning selected layout elements
Left
Right
Top
Bottom
Horizontal
Vertical
An enumeration of resizing options used for aligning selected layout elements
Width
Height
Layout Layer Editor allows the user to select which layers appear in the legend
Edits a value based on some user input which is collected from a character control.
Gets the UITypeEditorEditStyle, which in this case is drop down.
Ensures that we can widen the drop-down without having to close the drop down,
widen the control, and re-open it again.
Draws a legend for the layout
Updates the scale bar if the map is deleted
Constructor
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
A boolean value indicating if the Draw code is being called to print
Gets or sets the layoutmap to use to base the legend on
Gets or sets the layers to include in the legend
Gets or sets the font used to draw this text
Gets or sets the color of the text
Gets or sets the number of columns to use when rendering the legend
Gets or sets the hinting used to draw the text
Gets or sets a layout control
This is designed to automatically have add, subtract, up and down arrows for working with a simple collection of items.
Creates a new instance of the Collection Control
Required method for Designer support - do not modify
the contents of this method with the code editor.
Refreshes the items in the list to accuratly reflect the current collection
Gets or sets the layoutControl
A layout control that draws the content from a map control so that it can be printed
Constructor to build a new LayoutMap control with map control
Throws if mapControl is null.
Updates the size of the control
Zooms the map to the fullextent of all available layers
Zooms the map to the extent of the current view
Zooms the map element in by 10%
Zooms the map element out by 10%
Pans the map
The amount to pan the map in the X-axis in map coord
The amount to pan the map in the Y-axis in map coord
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
Boolean, true if the drawing is printing to an actual page
The geographic envelope to be shown by the layout
The map control that generates the printable content
A mathematical calculation using the map
Layout Map Editor is a UIType Editor that allows selecting a new map
Edits a value based on some user input which is collected from a character control.
Gets the UITypeEditorEditStyle, which in this case is drop down.
Ensures that we can widen the drop-down without having to close the drop down,
widen the control, and re-open it again.
A Brian Marchioni original toolstrip... preloaded with content.
Creates an instance of the toolstrip
The layout control associated with this toolstrip
Creates an instance of the toolstrip
Fires when the user clicks the close button on this menu strip
The layout control associated with this toolstrip
North Arrow control for the Layout
Constructor
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
boolean, true if printing to the actual paper/document, false if drawing as a control
Gets or sets the color of the text
Gets or sets the style of the north arrow to draw
Gets or sets the rotations of the north arrow
An enumeration listing the different built in styles for the north arrow
A four point triangle with a circle in the middle and the letter N
A black arrow pointing north
Compas Rose style north arrow
A triangle around the letter N
A triangle with a hat-like adornment
An arrow with the letter N
This is a control that allows users to easilly modify the various aspects of many different layout components
Creates a new instance of the Layout Property Grid
If the selection changes this event is called
Gets or sets the layout control associated with this property grid
A control that draws a standard colored rectangle to the print layout
Constructor
Doesn't need to do anything now because the drawing code is in the background property of the base class
A scale bar control that can be linked to a map and provide a dynamic scale bar for the print layout
Updates the scale bar if the map is deleted
Constructor
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
Boolean, true if printing to an actual print document
Returns the conversion factor between the map units and inches
A string represing the MapUnits
A double representing the conversion factor between MapUnits and inches. If something goes wrong we return 0
Gets or sets the Map control that the scale bar uses for measurement decisions
Gets or sets the font used to draw this text
Gets or sets the color of the text
Gets or sets the hinting used to draw the text
Gets or sets the number of breaks the scale bar should have
Gets or sets the unit to use for the scale bar
Gets or sets a property indicating is break should be present before the 0
Gets or sets the unit text to display after the scale bar
Gets or sets a layout control
Controls a rectangle
Constructor
This gets called to instruct the element to draw itself in the appropriate spot of the graphics object
The graphics object to draw to
Boolean, true if printing to the file
Gets or sets the text thats drawn in the graphics object
Gets or sets the content alignment
Gets or sets the font used to draw this text
Gets or sets the color of the text
Gets or sets the hinting used to draw the text
A Brian Marchioni original toolstrip... preloaded with content.
Creates an instance of the toolstrip
The layout control associated with this toolstrip
Creates a new instance of DrawLegendItemArgs
A Graphics surface to draw on
The legend item to draw
The bounds that drawing should occur within
The position of the top left corner where drawing should start.
Gets the interface for the legend item being drawn
Gets the rectangle that limits where drawing should occur
Gets or sets the point that is the top left position where this item should start drawing, counting indentation.
Gets the graphics object for drawing to
The easiest way to implement this is to inherit a UserControl, and then
implement the members specific to the legend.
Given the current list of Maps or 3DMaps, it
rebuilds the treeview nodes
Adds a map frame as a root node, and links an event handler to update
when the mapframe triggers an ItemChanged event.
Removes the specified map frame if it is a root node.
Boolean, if true, removing the map frame will not automatically force a refresh of the legend.
Occurs when the drag method is used to alter the order of layers or
groups in the legend.
Gets or sets the list of map frames being displayed by this legend.
The extended and complete set of events associated with the Legend.
Implementing this avoids having to manually add handlers for every event.
Occurs when a drag-and-drop operation is completed.
An instance of the calling object
A DragEventArgs with the drag parameters
Occurs when the control is clicked by the mouse.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the control is double clicked by the mouse.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is over the control and a mouse button is pressed.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is moved over the control.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the mouse pointer is over the control and a mouse button is released.
An instance of the calling object
A MouseEventArgs with any parameters
Occurs when the control is redrawn.
An instance of the calling object
A PaintEventArgs with any parameters
Occurs when one or more legend items is added to the list of LegendItems
An instance of the calling object
A PaintEventArgs with any parameters
Occurs when all the legend items are cleared.
An instance of the calling object
A PaintEventArgs with any parameters
Occurs when one of the legend items in the list of LegendItems is removed
An instance of the calling object
A PaintEventArgs with any parameters
Occurs when one of the legend items in the list of LegendItems is selected
An instance of the calling object
A PaintEventArgs with any parameters
Legend
Creates a new instance of Legend
Adds a map frame as a root node, and links an event handler to update
when the mapframe triggers an ItemChanged event.
Removes the specified map frame if it is a root node.
Boolean, if true, removing the map frame will not automatically force a refresh of the legend.
Given the current list of Maps or 3DMaps, it
rebuilds the treeview nodes
Un-selectes any selected items in the legend
Occurs when linking the map frame
Occurs when we need to no longer listen to the map frame events
Extends initialize to draw "non-selected" elements.
Overrides the drawing method to account for drawing lines
when an item is being dragged to a new position.
A PaintEventArgs
Also hides the edit box so that it doesn't seem displaced from the item
Also hides the edit box so that it doesn't seme displaced from the item
Handles the case where the mouse down occurs.
A MouseEventArgs
Checks the Mouse Up event to see if it occurs inside a legend item.
Checks for checkbox changes and fires the ItemMouseUp event.
Performs the default handling for mouse movememnt, and decides
whether or not to fire an ItemMouseMove event.
A MouseEventArgs
The coordinates are in legend coordinates, but a LegendBox is provided to define the
coordinates of the specified object.
An ItemMouseEventArgs
Fires the ItemMouseMove Event, which handles the mouse moving over one of the legend items.
An ItemMouseEventArgs
Fires the OrderChanged Event
Recursive add method to handle nesting of menu items.
This isn't the best way to catch this. only items in view should
trigger a refresh.
Occurs when the drag method is used to alter the order of layers or
groups in the legend.
Occurs when a mousedown is initiated within an existing legend item
Occurs when a mouse down is initiated within an expand box.
Occurs when a mouse up is initiated within a checkbox.
Occurs when a mouse up occurs insize of a specific item.
Occurs when the mouse is moving over an item.
Gets or sets the SharedEventHandler that is used for working with shared layer events.
Gets or sets an integer representing how far child nodes are indented when compared to the parent nodes.
This calculates a height for each item based on the height of the font.
Gets or sets the selection font color
Specifies the principal color that a selected text box is highlighted with.
Gets or sets the list of map frames being displayed by this legend.
Gets or sets the progress handler for any progress messages like re-drawing images for rasters
Retrieves the bottom box in the legend
ItemMouseEventArgs
Creates a new instance of an ItemMouseEventArgs
The Mouse Buttons
The number of clicks
The X coordinate
The Y coordinate
The delta of the mouse wheel
A LegendBox for comparision
Creates a new instance of ItemMouseEventArgs from an existing MouseEventArgs.
The existing arguments
A LegendBox for comparison
Gets the item that received the mouse down, plus the various rectangular extents encoded in the various boxes.
A Legend Box encapsulates the basic drawing information for an item.
This will not capture information about sub-items.
Gets or sets the bounds for this LegendBox
Gets or sets the actual item that this bounds is associated with
If this item is in checkbox mode, then this is the physical location of the checkbox
IF this item is a groupable item, this is the region for the expanding box for the item
Gets or sets the rectangle that corresponds with text.
gets or sets the symbol box
Gets or sets the integer number of indentations. This should be used
in coordination with whatever the indentation amount is for the specific legend.
DropDownDialog
Required designer variable.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Creates a new instance of DropDownDialog
Clears the items from the dialog box
Adds the array of objects to the dialog box
The items to add
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Gets the currently selected item in this list dialog box
ChunkEventArgs
Creates a new instance of ChunkEventArgs
Gets the current chunk for this event
Gets the number of chunks
Describe different behaviors that map functions can have when working with
respect to other map-functions.
Prompt the user to decide if Layers should be reprojected
Always reproject layers to match the MapFrame projection
Never reproject layers to match the MapFrame projection
Prompt once and accept that answer for all future layers added to the map frame.
Extension methods for accessing the layers (including nested layers) and groups (including nested groups) of the
map frame
Gets all layers of the map frame including layers which are nested
within groups. The group objects themselves are not included in this list,
but all FeatureLayers, RasterLayers, ImageLayers and other layers are included.
The list of the layers
Gets all feature layers of the map frame including feature layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the feature layers
Gets all point layers of the map frame including point layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the point layers
Gets all line layers of the map frame including line layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the line layers
Gets all polygon layers of the map frame including polygon layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the polygon layers
Gets all raster layers of the map frame including raster layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the raster layers
Gets all image layers of the map frame including image layers which are nested
within groups. The group objects themselves are not included in this list.
The list of the image layers
Gets all the layers of the given type.
Type of the layers that should be included.
mapFrame that contains the layers.
The list of the layers with the given type.
Recursively adds all the layers of the given type that are found in group to layerList.
Type of the layers that should be included.
Group that contains the layers.
The list the layers should be added to.
Gets all map groups in the map including the nested groups.
the list of the groups
Recursively adds all the groups to groupList.
Group to search through.
The list the groups should be added to.
This class contains methods for re-projecting
layers in the map frame
Reprojects all layers in the map frame so that they use the new
projection Esri string
The map frame that contains all layers that should be reprojected
The Esri WKT string of the new projection
Reprojects all layers in the map frame so that they use new projection
The map frame that contains all layers that should be reprojected
New projection
Callback when layer can't be reprojected. Maybe null.
A MapFunction that can zoom the map out based on mouse clicks.
Common implementation of IMapFunction interface.
Interface for map functions.
Forces activation
Forces deactivation.
This is the method that is called by the drawPanel. The graphics coordinates are
in pixels relative to the image being edited.
Forces this tool to execute whatever behavior should occur during a double click even on the panel
Instructs this tool to perform any actions that should occur on the MouseDown event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseUp event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseMove event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseWheel event
A MouseEventArgs relative to the drawing panel
Here, the entire plugin is unloading, so if there are any residual states
that are not taken care of, this should remove them.
When a key is pressed while the map has the focus, this occurs.
When a key returns to the up position, this occurs.
Organizes the map that this tool will work with.
Occurs when the function is activated
Occurs when the function is deactivated.
This controls the cursor that this tool uses, unless the action has been cancelled by attempting
to use the tool outside the bounds of the image.
If this is false, then the typical contents from the map's back buffer are drawn first,
followed by the contents of this tool.
Gets or sets a boolean that is true if this tool should be active. If it is false,
then this tool will not be sent mouse movement information.
Different Pathways that allow functions to deactivate if another function that uses
the specified UI domain activates. This allows a scrolling zoom function to stay
active while changing between pan and select functions which use the left mouse
button. The enumeration is flagged, and so can support multiple options.
Describes a button image
Gets or sets the basic map that this tool interacts with. This can alternately be set using
the Init method.
Gets or sets the name that attempts to identify this plugin uniquely. If the
name is already in the tools list, this will modify the name set here by
appending a number.
Creates a new instance of the map function.
Combines the constructor with an automatic call to the init method. If you use this constructor
overload, then it is not necessary to also call the init method. The init method is supported
because constructors cannot be specified through an interface.
Any valid IMap interface
Instructs this tool to
Forces this tool to execute whatever behavior should occur during a double click even on the panel
Instructs this tool to perform any actions that should occur on the MouseDown event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseMove event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseUp event
A MouseEventArgs relative to the drawing panel
Instructs this tool to perform any actions that should occur on the MouseWheel event
A MouseEventArgs relative to the drawing panel
This is the method that is called by the drawPanel. The graphics coordinates are
in pixels relative to the image being edited.
Organizes the map that this tool will work with.
Cancels whatever drawing was being done by the tool and resets the cursor to an arrow.
Gets an available name given the base name.
This allows sub-classes to customize the drawing that occurs. All drawing is done
in the image coordinate space, where 0, 0 is the upper left corner of the image.
A PaintEventArgs where the graphics object is already in image coordinates
Allows for inheriting tools to control KeyUp.
A KeyEventArgs parameter
Allows for inheriting tools to control OnMouseDoubleClick.
A GeoMouseArgs parameter
Allows for inheriting tools to control OnMouseDown.
A GeoMouseArgs parameter
Allows for inheriting tools to control OnMouseMove.
A GeoMouseArgs parameter
Allows for inheriting tools to control OnMouseUp.
A GeoMouseArgs parameter
Allows for inheriting tools to control OnMouseWheel.
A GeoMouseArgs parameter
Forces activation
Deactivate is like when someone clicks on a different button. It may not
involve the whole plugin being unloaded.
Here, the entire plugin is unloading, so if there are any residual states
that are not taken care of, this should remove them.
This is fired when enabled is set to true, and firing this will set enabled to true
this is fired when enabled is set to false, and firing this will set enabled to false.
Occurs when a key is pressed
This occurs when the entire plugin is being unloaded.
Occurs when the function is activated
Occurs when the function is deactivated.
Occurs during a mouse down event
Occurs during a mouse move event
Occurs during a mouse up event
Occurs during a mousewheel event
Occurs during a double click event
Occurs during a key up event
Describes a button image
This controls the cursor that this tool uses, unless the action has been cancelled by attempting
to use the tool outside the bounds of the image.
Gets or sets a boolean that is true if this tool should be handed drawing instructions
from the screen.
Gets or sets the basic map that this tool interacts with. This can alternately be set using
the Init method.
Gets or sets the name that attempts to identify this plugin uniquely. If the
name is already in the tools list, this will modify the name stored here.
If this is false, then the typical contents from the map's back buffer are drawn first,
followed by the contents of this tool.
Creates a new instance of SelectTool
Handles the Key Up situation
Handles the Key Down situation
Transforms an IMapLayer enumerator into an ILayer Enumerator
Creates a new instance of the MapLayerEnumerator
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to Add Layer....
Looks up a localized string similar to Home.
Looks up a localized string similar to Archive File.
Looks up a localized string similar to The argument %S cannot be negative..
Looks up a localized string similar to The argument %S1 could not be successfully cast into %S2..
Looks up a localized string similar to The argument %S was null. Try testing for the null case before calling this method..
Looks up a localized string similar to The argument %S1 was incorrect for %S2..
Looks up a localized string similar to The argument %S was outside the range of accepted values..
Looks up a localized string similar to The file type was supposedly bgd, but there was a problem with reading the data type..
Looks up a localized string similar to Binary rasters only support one band, which is the raster itself..
Looks up a localized string similar to The specified argument byteArray was too small to contain the requested information.
Looks up a localized string similar to Calculating Statistics.
Looks up a localized string similar to The fileName %S cannot be copied to itself..
Looks up a localized string similar to Start a new Project?.
Looks up a localized string similar to Enter the text you want to display in the legend..
Looks up a localized string similar to Left click after selecting to edit, or right click to assign a color range..
Looks up a localized string similar to Raster values should be numeric and be drawn with a range like [low] - [high].
Looks up a localized string similar to The value or range of values shown as [low] - [high].
Looks up a localized string similar to Confirm.
Looks up a localized string similar to The number of ordinates did not match between the dimensions, so the hyperdistance cannot be accurately calculated..
Looks up a localized string similar to Copying Values.
Looks up a localized string similar to Copying values from %S1 to %S2.
Looks up a localized string similar to Copying Values from %S.
Looks up a localized string similar to Copying Values from %S1 to %S2.
Looks up a localized string similar to Could not execute the query..
Looks up a localized string similar to Could not find or replace items..
Looks up a localized string similar to Could not open the specified map file: {0}.
Looks up a localized string similar to Creating Shaded Relief.
Looks up a localized string similar to Creating Texture.
Looks up a localized string similar to The current element was not defined. Before attempting to read the element, first assign the value of the current XML Element to read..
Looks up a localized string similar to In order to specify a custom filter expression, the custom mode must be selected first..
Looks up a localized string similar to Data Extensions.
Looks up a localized string similar to The parameter %S was not the correct datatype..
Looks up a localized string similar to The Number of digits to show after the decimal..
Looks up a localized string similar to This should be an integer from 0 to 15..
Looks up a localized string similar to There are no setting for the default Tool Provider. It scans the same folders the ToolManager scans for Tool Providers.
Looks up a localized string similar to Default Tool Provider Settings.
Looks up a localized string similar to Deselect All.
Looks up a localized string similar to Discard Changes?.
Looks up a localized string similar to The value entered could not be correctly parsed into a valid double precision floating point value..
Looks up a localized string similar to Enter a double precision floating point value..
Looks up a localized string similar to Cannot read past the end of the file..
Looks up a localized string similar to Enter Find String.
Looks up a localized string similar to Error.
Looks up a localized string similar to Error while activating {0}..
Looks up a localized string similar to Expression.
Looks up a localized string similar to Extensions.
Looks up a localized string similar to Factorial value should be grater than 0.
Looks up a localized string similar to Failed to read a portion of the specified map file: {0}.
Looks up a localized string similar to Failed to read the specified map file: {0}.
Looks up a localized string similar to Failed to write the specified map file: {0}.
Looks up a localized string similar to All Features.
Looks up a localized string similar to The feature set is invalid..
Looks up a localized string similar to No feature set is specified..
Looks up a localized string similar to The feature set is valid..
Looks up a localized string similar to All Features in View Extent.
Looks up a localized string similar to Selected features.
Looks up a localized string similar to The feature type cannot be changed here. Try creating a new feature of the appropriate type..
Looks up a localized string similar to The feature set selected was the incorrect type..
Looks up a localized string similar to The FeatureType of the feature you are trying to add does not match the feature type of this featureset..
Looks up a localized string similar to The FeatureType specified was not the line feature type..
Looks up a localized string similar to The FeatureType specified was not the point feature type. .
Looks up a localized string similar to The FeatureType specified was not the polygon feature type..
Looks up a localized string similar to The FeatureType was not specified. Please specify a featuretype before attempting to call this method..
Looks up a localized string similar to Could not import column fields..
Looks up a localized string similar to The specified field is not a numeric field and so the "EqualBreaks" option is not supported..
Looks up a localized string similar to File.
Looks up a localized string similar to Exit.
Looks up a localized string similar to New.
Looks up a localized string similar to Open....
Looks up a localized string similar to Options.
Looks up a localized string similar to Print Layout....
Looks up a localized string similar to Reset Window Layout.
Looks up a localized string similar to Save.
Looks up a localized string similar to Save As....
Looks up a localized string similar to The fileName %S already exists. Do you wish to overwrite it?.
Looks up a localized string similar to Clears the current map. The user is prompted to save any changes to the current map project..
Looks up a localized string similar to The fileName %S was not found..
Looks up a localized string similar to The fileName %S contains a feature type other than lines..
Looks up a localized string similar to The fileName %S contains a feature type other than points..
Looks up a localized string similar to Clears the current map and shows an ‘Open’ window that allows the user to navigate to a previously saved map..
Looks up a localized string similar to Allows the user to save the project..
Looks up a localized string similar to Allows the user to name the file and location where the map is to be saved on their computer..
Looks up a localized string similar to The file was too large to fit into memory all at once. Try using a DataSource instead..
Looks up a localized string similar to The specified file type is not supported..
Looks up a localized string similar to Find.
Looks up a localized string similar to Find Tool.
Looks up a localized string similar to Map.
Looks up a localized string similar to Identify.
Looks up a localized string similar to This property or method is overrided in a subclass and should not be used directly..
Looks up a localized string similar to The destination field data type is incompatible (double or string or integer).
Looks up a localized string similar to There was an error while attempting to index %S.
Looks up a localized string similar to Input.
Looks up a localized string similar to The number of dimensions in %S is insufficient for this calculation..
Looks up a localized string similar to The value is invalid, it must be a decimal between %min and %max.
Looks up a localized string similar to The value is invalid, it must be an integer between %min and %max.
Looks up a localized string similar to The value entered was not understood. Please use either numbers or syntax 'start - end', e.g. '1-5'.
Looks up a localized string similar to The specified key already exists in the tree..
Looks up a localized string similar to The specified key could not be found in the tree..
Looks up a localized string similar to The size of the key did not match the size of the tree..
Looks up a localized string similar to Layers.
Looks up a localized string similar to Align Bottom.
Looks up a localized string similar to Fit to Height.
Looks up a localized string similar to Align Horizontal.
Looks up a localized string similar to Align Left.
Looks up a localized string similar to Margin Alignment.
Looks up a localized string similar to Margin Fit.
Looks up a localized string similar to Align Right.
Looks up a localized string similar to Selection Alignment.
Looks up a localized string similar to Selection Fit.
Looks up a localized string similar to Align top.
Looks up a localized string similar to Align Vertical.
Looks up a localized string similar to Fit to Width.
Looks up a localized string similar to Error opening layout file: .
Looks up a localized string similar to Error saving layout file:.
Looks up a localized string similar to DotSpatial Print Layout.
Looks up a localized string similar to Insert legend.
Looks up a localized string similar to Insert scale bar.
Looks up a localized string similar to Insert bitmap.
Looks up a localized string similar to Insert map.
Looks up a localized string similar to Insert north arrow.
Looks up a localized string similar to Insert rectangle.
Looks up a localized string similar to Insert text.
Looks up a localized string similar to Load Print Layout.
Looks up a localized string similar to Zoom map to full extent of layers.
Looks up a localized string similar to Pan map.
Looks up a localized string similar to Zoom map to extent of data view.
Looks up a localized string similar to Zoom map in.
Looks up a localized string similar to Zoom map out.
Looks up a localized string similar to Page Setup....
Looks up a localized string similar to Close.
Looks up a localized string similar to Document.
Looks up a localized string similar to Edit.
Looks up a localized string similar to File.
Looks up a localized string similar to Insert.
Looks up a localized string similar to Map.
Looks up a localized string similar to New.
Looks up a localized string similar to Open....
Looks up a localized string similar to Print....
Looks up a localized string similar to Refresh.
Looks up a localized string similar to Save.
Looks up a localized string similar to Save as....
Looks up a localized string similar to Select.
Looks up a localized string similar to All.
Looks up a localized string similar to Convert to bitmap.
Looks up a localized string similar to Delete.
Looks up a localized string similar to Invert.
Looks up a localized string similar to Move down.
Looks up a localized string similar to Move up.
Looks up a localized string similar to None.
Looks up a localized string similar to Choose printer....
Looks up a localized string similar to Show Margin.
Looks up a localized string similar to Toolbars.
Looks up a localized string similar to View.
Looks up a localized string similar to Fit to screen.
Looks up a localized string similar to Zoom in.
Looks up a localized string similar to Zoom out.
Looks up a localized string similar to Zoom.
Looks up a localized string similar to Page Setup....
Looks up a localized string similar to Save Print Layout As.
Looks up a localized string similar to Do you want to save the current print layout?.
Looks up a localized string similar to Fit to screen.
Looks up a localized string similar to Zoom in.
Looks up a localized string similar to Zoom out.
Looks up a localized string similar to Margin Alignment.
Looks up a localized string similar to Legend.
Looks up a localized string similar to The wrong type of feature set was selected. Please select a line feature set..
Looks up a localized string similar to An incompatible feature type was supplied and was not of type Line..
Looks up a localized string similar to Failed to create link.
Looks up a localized string similar to Output data cannot be linked to tools that generate it..
Looks up a localized string similar to Links can only be made from data to tools..
Looks up a localized string similar to There are no free inputs for the this tool that take the data type attempting to be linked to it..
Looks up a localized string similar to The item specified was not found in this list..
Looks up a localized string similar to Loading Plugins.
Looks up a localized string similar to Loading Plugins - {0}, {1}% complete..
Looks up a localized string similar to One or more of the files was not a valid data type for the map..
Looks up a localized string similar to Map Tool.
Looks up a localized string similar to Projection Mismatch.
Looks up a localized string similar to Reproject map layer to match the map coordinate system? This will not affect the source file..
Looks up a localized string similar to Projection.
Looks up a localized string similar to No layers are currently selectable layers active in the legend. Select the layer or group in the legend for which selection should occur..
Looks up a localized string similar to There was no selected feature layer in the legend to clarify which features to delete. Please select a layer or group in the legend..
Looks up a localized string similar to Map Layers.
Looks up a localized string similar to Delete elements?.
Looks up a localized string similar to Deleting the selected model elements will also delete the model elements associated with them..
Looks up a localized string similar to Do you want to save the changes to %S?.
Looks up a localized string similar to Add data to the model.
Looks up a localized string similar to Delete selected model elements.
Looks up a localized string similar to Zoom full extent of model.
Looks up a localized string similar to Link data to tools.
Looks up a localized string similar to Load a model.
Looks up a localized string similar to Create a new empty model.
Looks up a localized string similar to Run Model.
Looks up a localized string similar to Save the current model.
Looks up a localized string similar to Zoom out.
Looks up a localized string similar to Zoom in.
Looks up a localized string similar to There are more than 100 unique values. Are you sure you want to continue?.
Looks up a localized string similar to MW4 Project.
Looks up a localized string similar to New Model.
Looks up a localized string similar to None of the rows contain a value that matches the specified value..
Looks up a localized string similar to The function name was not recognized as one of the standard function names..
Looks up a localized string similar to There is no row in the Table..
Looks up a localized string similar to This has not yet been implemented..
Looks up a localized string similar to The specified number of significant digits (%S) is too large for this field..
Looks up a localized string similar to The value %S was too large to encode with 18 ASCII characters..
Looks up a localized string similar to The value %S was too small to be encoded with 18 ASCII characters..
Looks up a localized string similar to Please only enter numeric values..
Looks up a localized string similar to For now, only the shapefile vector format is being supported..
Looks up a localized string similar to Opacity controls how transparent the item is. A 0 is fully transparent, while 1 is fully opaque..
Looks up a localized string similar to Opacity should be a floating decimal point between 0 and 1..
Looks up a localized string similar to Output.
Looks up a localized string similar to Painting Color Scheme To Bitmap.
Looks up a localized string similar to Painting Hillshade To Bitmap.
Looks up a localized string similar to Pan.
Looks up a localized string similar to The parameter is invalid.
Looks up a localized string similar to The parameter is valid.
Looks up a localized string similar to The value you entered could not be parsed into a %S. Make sure the value is in the valid range..
Looks up a localized string similar to Apps.
Looks up a localized string similar to The desired length of %S1 was too long. The total length was %S2 and the offset was %S3..
Looks up a localized string similar to The beginning eight bytes of the specified file did not match the png signature..
Looks up a localized string similar to Pointer.
Looks up a localized string similar to An incompatible feature type was supplied and was not of type Point..
Looks up a localized string similar to Holes must not contain null elements.
Looks up a localized string similar to Shell is empty but holes are not.
Looks up a localized string similar to An incompatible feature type was supplied and was not of type polygon..
Looks up a localized string similar to Project File.
Looks up a localized string similar to The number of bytes should be 4 * rows * cols since only ARGB format is supported..
Looks up a localized string similar to The header has not been defined for the image scale you are attempting to access..
Looks up a localized string similar to The rows or columns would extend beyond the specified number of columns or rows for the specified scale..
Looks up a localized string similar to To work with anything other than an in-memory raster window, you must first cast this raster to the correct data format..
Looks up a localized string similar to The specified rasters must have their cell sizes dimensioned..
Looks up a localized string similar to The rasters must have equally sized cells to use this method..
Looks up a localized string similar to The specified raster would be too large to store in memory..
Looks up a localized string similar to Reading values from %S.
Looks up a localized string similar to The list is currently set to read-only, and cannot be modified..
Looks up a localized string similar to Remove Layer.
Looks up a localized string similar to Are you sure you want to remove the fields?.
Looks up a localized string similar to The root n-th root is incorrect.
Looks up a localized string similar to Save Layer....
Looks up a localized string similar to Save Changes?.
Looks up a localized string similar to Save changes to current project [{0}] ?.
Looks up a localized string similar to Select.
Looks up a localized string similar to No feature layers were selected in the legend. Select the layer to use..
Looks up a localized string similar to The specified feature was not found in the feature list and could not be selected..
Looks up a localized string similar to Please specify an attribute field to use for classification before using this feature..
Looks up a localized string similar to The argument startIndex was too large to read the requested number of bytes from byteArray..
Looks up a localized string similar to Fields that are the string datatype cannot be converted to a raster. Do you wish to use the FID value instead?.
Looks up a localized string similar to Supported Files.
Looks up a localized string similar to The tool cannot be run because one or more of its parameters is not set..
Looks up a localized string similar to There were too many closing brackets in the string expression..
Looks up a localized string similar to There are too many Unique values..
Looks up a localized string similar to Assigned depths do not match.
Looks up a localized string similar to To save the calulated value press the Apply button.
Looks up a localized string similar to View.
Looks up a localized string similar to Writing values to %S.
Looks up a localized string similar to Zoom.
Looks up a localized string similar to In.
Looks up a localized string similar to Zoom In.
Looks up a localized string similar to Next.
Looks up a localized string similar to Zoom Next.
Looks up a localized string similar to Out.
Looks up a localized string similar to Zoom Out.
Looks up a localized string similar to Previous.
Looks up a localized string similar to Zoom Previous.
Looks up a localized string similar to Zoom To Coordinates.
Looks up a localized string similar to Full Extent.
Looks up a localized string similar to Zoom to Full Extent.
Looks up a localized string similar to Zoom To Layer.
IGeoImageLayer
Layer
This draws content from the specified geographic regions onto the specified graphics
object specified by MapArgs.
Creates a new default instance of a MapImageLayer
Creates a new instance of GeoImageLayer
Creates a new instance of a GeoImageLayer
The image to draw as a layer
The Layers collection that keeps track of the image layer
Creates a new instance of a GeoImageLayer
The image to draw as a layer
The color to make transparent when drawing the image.
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Fires the OnBufferChanged event
The Rectangle in pixels
This draws to the back buffer. If the Backbuffer doesn't exist, this will create one.
This will not flip the back buffer to the front.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets or sets whether the image layer is initialized
MapTiledImageLayer
Creates a new instance of MapTiledImageLayer
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
This draws to the back buffer. If the Backbuffer doesn't exist, this will create one.
This will not flip the back buffer to the front.
IMapFrame
IGeoGroup
Gets the GeoLayerCollection for members contained by this group.
Gets the map frame for this group.
Unlike PixelToProj, which works relative to the client control,
BufferToProj takes a pixel coordinate on the buffer and
converts it to geographic coordinates.
A Point describing the pixel position on the back buffer
An ICoordinate describing the geographic position
This projects a rectangle relative to the buffer into and IEnvelope in geographic coordinates.
A Rectangle
An IEnvelope interface
Using the standard independent paint method would potentially cause for dis-synchrony between
the parents state and the state of this control. This way, the drawing is all done at the
same time.
This will cause an invalidation for each layer. The actual rectangle to re-draw is not specified
here, but rather this simply indicates that some re-calculation is necessary.
Uses the current buffer and envelope to force each of the contained layers
to re-draw their content. This is useful after a zoom or size change.
Instructs the map frame to draw content from the specified regions to the buffer..
The regions to initialize.
Obtains a rectangle relative to the background image by comparing
the current View rectangle with the parent control's size.
When the control is being resized, the view needs to change in order to preserve the aspect ratio,
even though we want to use the exact same extents.
Converts a single geographic location into the equivalent point on the
screen relative to the top left corner of the map.
The geographic position to transform
A Point with the new location.
Converts a single geographic envelope into an equivalent Rectangle
as it would be drawn on the screen.
The geographic IEnvelope
A Rectangle
Pans the image for this map frame. Instead of drawing entirely new content, from all 5 zones,
just the slivers of newly revealed area need to be re-drawn.
A Point showing the amount to shift in pixels
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
Graphics device to print to
The target rectangle in the graphics units of the device
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
the extents to draw to the target rectangle
This is not called during a resize, but rather after panning or zooming where the
view is used as a guide to update the extents. This will also call ResetBuffer.
Re-creates the buffer based on the size of the control without changing
the geographic extents. This is used after a resize operation.
Zooms in one notch, so that the scale becomes larger and the features become larger.
Zooms out one notch so that the scale becomes smaller and the features become smaller.
Zooms to the next extent of the map frame
Zooms to the previous extent of the map frame
Occurs after changes have been made to the back buffer that affect the viewing area of the screen,
thereby requiring an invalidation.
Occurs after every one of the zones, chunks and stages has finished rendering to a stencil.
Occurs when the buffer content has been altered and any containing maps should quick-draw
from the buffer, followed by the tool drawing.
Occurs when View changed
Gets or sets the buffered image. Mess with this at your own risk.
Gets a rectangle indicating the size of the map frame image
Gets or sets the integer that specifies the chunk that is actively being drawn
Gets or sets whether this map frame should define its buffer
region to be the same size as the client, or three times larger.
Gets or sets whether this map frame is currently in the process of redrawing the
stencils after a pan operation. Drawing should not take place if this is true.
Gets or sets the parent control for this map frame.
Gets or sets the PromptMode that determines how to warn users when attempting to add a layer with
a coordinate system that is different from the current projection.
Gets or sets the PromptMode that determines how to warn users when attempting to add a layer without
a projection to a map that has a projection.
Gets or sets the layers
gets or sets the rectangle in pixel coordinates that will be drawn to the entire screen.
IGeoLayerCollection
Adds the specified fileName to the map as a new layer.
The string fileName to add as a layer.
An IMapLayer that is the layer handle for the specified file.
Adds the dataset specified to the file. Depending on whether this is a featureSet,
Raster, or ImageData, this will return the appropriate layer for the map.
A dataset
The IMapLayer to add
This overload automatically constructs a new MapLayer from the specified
feature layer with the default drawing characteristics and returns a valid
IMapLayer which can be further cast into a PointLayer, MapLineLayer or
a PolygonLayer, depending on the data that is passed in.
Any valid IFeatureSet that does not yet have drawing characteristics
A newly created valid implementation of FeatureLayer which at least gives a few more common
drawing related methods and can also be cast into the appropriate Point, Line or Polygon layer.
Adds the specified raster as a new layer
The raster to add as a layer
the MapRasterLayer interface
Adds the specified ImageData class to the map as a new layer and returns the newly created layer.
The image being created
An interface to the newly created MapImageLayer
Moves the given layer to the new position.
Layer that is moved.
Position the layer is moved to.
Given a base name, this increments a number for appending
if the name already exists in the collection.
The string base name to start with
The base name modified by a number making it unique in the collection
Occurs when a rectangular region of the buffer for any of the layers in this collection
should be updated.
Gets or sets the map frame that this belongs to. These are designed to only work with one map frame at a time.
Gets or sets the ParentGroup for this layer collection, even if that parent group
is not actually a map frame.
Gets or sets the progress handler to report progress for time consuming actions.
Gets or sets the currently active layer.
IGeoLabelLayer
Resolves ambiguity
Gets or sets the feature layer that this label layer is attached to.
GeoDrawTextArgs
Creates a new instance of GeoDrawTextArgs
Disposes the font brush, border pen and background brush
Gets the TextSymbolizer for this
Gets the GeoDrawArgs
Gets the brush for drawing the background.
Gets the border pen
Gets the brush used for drawing fonts.
GeoLabelLayer
The existing labels, accessed for all map label layers, not just this instance
Creates a new instance of GeoLabelLayer
Creates a new label layer based on the specified featureset
Creates a new label layer based on the specified feature layer
The feature layer to build layers from
Cleaer all existing labels for all layers
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
Draws the labels for the given features.
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
Draws the labels for the given features.
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
Draws the labels for the given features.
MapArgs to get Graphics object from.
Indizes of the features whose labels get drawn.
Draws the labels for the given features.
MapArgs to get Graphics object from.
Features, whose labels get drawn.
Checks whether the given rectangle collides with the drawnRectangles.
Rectangle that we want to draw next.
Rectangle that were already drawn.
True, if the rectangle collides with a rectancle that was already drawn.
Draws a label on a polygon with various different methods
Draws the given text if it is on screen. If PreventCollision is set only labels that don't collide with existingLables are drawn.
Text that should be drawn.
Graphics object that does the drawing.
Symbolizer to figure out the look of the label.
Feature, the label belongs to.
List with labels that were already drawn.
Angle in degree the label gets rotated by.
Calculates the position of the polygon label.
Draws a label on a point with various different methods.
Creates the RectangleF for the label.
Coordinate, where the label should be placed.
MapArgs for calculating the position of the label on the output medium.
Function that calculates the labelSize.
ILabelSymbolizer to calculate the orientation based adjustment.
Angle in degree used to rotate the label.
Empty Rectangle if Coordinate is outside of the drawn extent, otherwise Rectangle needed to draw the label.
Rotates the given point by angle around (0,0).
Point that gets rotated.
Angle in degree.
Draws a label on a line with various different methods.
Places the label according to the selected LabelPlacementMethode.
LineString, whose label gets drawn.
Function that calculates the size of the label.
Symbolizer to figure out the look of the label.
Angle in degree the label gets rotated by.
The RectangleF that is needed to draw the label.
Calculates the adjustment of the the label's position based on the symbolizers orientation.
ILabelSymbolizer whose orientation should be considered.
Size of the label.
New label-position based on label-size and symbolizer-orientation.
Draws labels in a specified rectangle
The graphics object to draw to
The label text to draw
The rectangle of the label
the Label Symbolizer to use when drawing the label
Feature to draw
Angle in degree the label gets rotated by.
Rotates the label for the given feature by the angle of the LabelSymbolizer.
LabelSymbolizer that indicates the angle to use.
Feature whose label gets rotated.
Resulting angle in degree.
Gets the segment of the LineString that is used to position and rotate the label.
LineString to get the segment from.
Symbolizer to get the LineLabelPlacement from.
Null on unnown LineLabelPlacementMethod else the calculated segment.
Converts the given value to single.
Value that gets converted to single.
0 on error else the resulting value.
Indicates that the drawing process has been finalized and swaps the back buffer
to the front buffer.
Copies any current content to the back buffer so that drawing should occur on the
back buffer (instead of the fore-buffer). Calling draw methods without
calling this may cause exceptions.
Boolean, true if the front buffer content should be copied to the back buffer
where drawing will be taking place.
Fires the OnBufferChanged event
The Rectangle in pixels
Indiciates that whatever drawing is going to occur has finished and the contents
are about to be flipped forward to the front buffer.
Occurs when a new drawing is started, but after the BackBuffer has been established.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets or sets the maximum number of labels that will be rendered before
refreshing the screen.
Gets or sets the MapFeatureLayer that this label layer is attached to.
Gets or sets whether or not this layer has been initialized.
Initializes a new instance of the class.
The buffer rectangle.
The buffer envelope.
Creates a new MapArgs, where the device is also specified, overriding the default buffering behavior.
An optional parameter that specifies a device to use instead of the normal buffers.
Gets the Dx
Gets the Dy
Gets the minimum X value
Gets the maximum Y value
Gets the rectangle dimensions of what the buffer should be in pixels
Gets the geographic bounds of the content of the buffer.
DrawArgs contains the parameters necessary for 2D drawing
Creates a new instance of DrawArgs
Creates a new instance of GeoDrawArgs
Gets a Graphics object that is useful for drawing in client coordinates. Coordinates
should be specified as though they were drawn to the client rectangle, even if
a clip rectangle is specified.
Gets a GeoGraphics wrapper that makes it easy to draw things in geographic coordinates.
Gets the clip rectangle that defines the area on the region in client coordinates where drawing is taking place.
A MapFrame accomplishes two things. Firstly, it organizes the layers to be drawn, and establishes the geographic
extents. Secondly, it hosts the back-buffer image that can be larger than the component that
this map frame would normally be drawn to. When it receives instructions to paint itself, the client rectangle
will automatically end up behaving like a clip rectangle.
Creates the default map frame, allowing the control that it belongs to to be set later.
Creates a new instance of a MapFrame without specifying the extents. The
geographic extents of the world will be used.
The parent control that should own this map frame.
Creates a new instance of MapFrame
This is not called during a resize, but rather after panning or zooming where the
view is used as a guide to update the extents. This will also call ResetBuffer.
Re-creates the buffer based on the size of the control without changing
the geographic extents. This is used after a resize operation.
Instructs the map frame to draw content from the specified regions to the buffer..
The regions to initialize.
Uses the current buffer and envelope to force each of the contained layers
to re-draw their content. This is useful after a zoom or size change.
Pans the image for this map frame. Instead of drawing entirely new content, from all 5 zones,
just the slivers of newly revealed area need to be re-drawn.
A Point showing the amount to shift in pixels
When content in a geographic region needs to be invalidated
Converts the internal list of layers into a list of ILayer interfaces
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
Instead of using the usual buffers, this bypasses any buffering and instructs the layers
to draw directly to the specified target rectangle on the graphics object. This is useful
for doing vector drawing on much larger pages. The result will be centered in the
specified target rectangle bounds.
the extents to draw to the target rectangle
Forces this MapFrame to copy the buffers for its layers to the back-buffer.
Overrides the group creation to make sure that the new group will cast its layers
to the appropriate Layer type.
Draw label content for a Map Layer
Obtains a rectangle relative to the background image by comparing
the current View rectangle with the parent control's size.
Zooms in one notch, so that the scale becomes larger and the features become larger.
Zooms out one notch so that the scale becomes smaller and the features become smaller.
Fires the ExtentsChanged event
Determines whether this instance [can zoom to next]. Should not be called inside of
MapFrame_ViewExtentsChanged event.
true if this instance [can zoom to next]; otherwise, false.
Determines whether this instance [can zoom to previous]. Should not be called inside of
MapFrame_ViewExtentsChanged event.
true if this instance [can zoom to previous]; otherwise, false.
Zooms to the next extent
Zooms to the previous extent
When the control is being resized, the view needs to change in order to preserve the aspect ratio,
even though we want to use the exact same extents.
If a BackBuffer.Extents exists, this will enlarge those extents to match the aspect ratio
of the pixel view. If one doesn't exist, the _mapFrame.Extents will be used instead.
The envelope to adjust
This will create a new layer from the featureset and add it.
Any valid IFeatureSet that does not yet have drawing characteristics
Draws from the buffer.
Unlike PixelToProj, which works relative to the client control,
BufferToProj takes a pixel coordinate on the buffer and
converts it to geographic coordinates.
A Point describing the pixel position on the back buffer
An ICoordinate describing the geographic position
This projects a rectangle relative to the buffer into and IEnvelope in geographic coordinates.
A Rectangle
An IEnvelope interface
Converts a single geographic location into the equivalent point on the
screen relative to the top left corner of the map.
The geographic position to transform
A Point with the new location.
Converts a single geographic envelope into an equivalent Rectangle
as it would be drawn on the screen.
The geographic IEnvelope
A Rectangle
This will cause an invalidation for each layer. The actual rectangle to re-draw is not specified
here, but rather this simply indicates that some re-calculation is necessary.
Fires the ScreenUpdated event
Fires the FinsihedRefresh event
Wires each of the layer events that the MapFrame should be listening to.
Modifies the ZoomToLayer behavior to account for the possibility of an expanded
MapFrame.
Prompts the user to define the projection of the given layer, if it doesn't not have one.
Layer whose projection gets checked.
True if the layer doesn't have a projection.
Unwires events from the layer collection
When any region for the stencil of any layers is changed, we should update the
image that we have in that region. This activity will be suspended in the
case of a large scale update for all the layers until they have all updated.
Fires the BufferChanged event. This is fired even if the new content is not currently
in the view rectangle.
When the Projection context menu is clicked
Occurs after changes have been made to the back buffer that affect the viewing area of the screen,
thereby requiring an invalidation.
Occurs after every one of the zones, chunks and stages has finished rendering to a stencil.
Occurs when the buffer content has been altered and any containing maps should quick-draw
from the buffer, followed by the tool drawing.
Occurs when View changed
This is a different view of the layers cast as legend items. This allows
easier cycling in recursive legend code.
This gets or sets the first clipRegion. If more than one region needs to be set,
the ClipRegions list should be used instead.
Gets or sets a set of rectangles that should be drawn during the next update
Gets or sets the geographic extents to be drawn to a buffer.
If "ExtendBuffer" is true, then these extents are larger
than the geographic extents of the parent client,
and care should be taken when using PixelToProj,
as it will work differently.
Gets or sets the height
Gets or sets the width in pixels for this map frame.
Gets or sets the integer that specifies the chunk that is actively being drawn
Gets the geographic extents
Gets or sets whether this map frame should define its buffer
region to be the same size as the client, or three times larger.
Gets or sets whether this map frame is currently in the process of redrawing the
stencils after a pan operation. Drawing should not take place if this is true.
Gets or sets the layers
gets or sets the ReprojectMode that determines if new layers are reprojected when added to the map.
Gets or sets the PromptMode that determines how to warn users when attempting to add a layer without
a projection to a map that has a projection.
gets or sets the rectangle in pixel coordinates that will be drawn to the entire screen.
The right in client rectangle coordinates
The bottom (or height) of this client rectangle
Gets or sets the buffered image. Mess with this at your own risk.
Gets or sets the client rectangle
Gets or sets the ImageRectangle for drawing the buffer
Gets or sets the progress handler to use. Setting this will set the progress handler for
each of the layers in this map frame.
Gets or sets the parent control for this map frame.
Overrides the base CreateGroup method to ensure that new groups are GeoGroups.
Creates a new instance of GeoGroup
Creates a new group for the specified map. This will place the group at the root level on the MapFrame.
The map to add this group to.
The name to appear in the legend text.
Creates a group that sits in a layer list and uses the specified progress handler
the layer list
the progress handler
This draws content from the specified geographic regions onto the specified graphics
object specified by MapArgs.
Gets the layers cast as ILayer without any information about the actual drawing methods.
This is useful for handling methods that my come from various types of maps.
An enumerable collection of ILayer
Gets the collection of Geographic drawing layers.
Gets or sets the layers
Gets the MapFrame that this group ultimately belongs to. This may not
be the immediate parent of this group.
This is a different view of the layers cast as legend items. This allows
easier cycling in recursive legend code.
Transforms an IMapLayer enumerator into an ILayer Enumerator
Creates a new instance of the MapLayerEnumerator
GeoLayerCollection
Creates a new blank instance of a MapLayer collection. This is especially useful
for tracking layers that can draw themselves. This does not concern itself with
view extents like a dataframe, but rather is a grouping of layers that is itself
also an IMapLayer.
Creates the Collection in the situation where the map frame is not the immediate parent,
but rather the group is the immediate parent, while frame is the ultimate map frame that
contains this geo layer collection.
Creates a new blank instance of a MapLayer collection. This is especially useful
for tracking layers that can draw themselves. This does not concern itself with
view extents like a dataframe, but rather is a grouping of layers that is itself
also an IMapLayer.
Creates a new layer collection that is free-floating. This will not be contained in a map frame.
This overload automatically constructs a new MapLayer from the specified
feature layer with the default drawing characteristics and returns a valid
IMapLayer which can be further cast into a PointLayer, MapLineLayer or
a PolygonLayer, depending on the data that is passed in.
A pre-existing FeatureLayer that has already been created from a featureSet
Adds the elements of the specified collection to the end of the System.Collections.Generic.List<T>
collection: The collection whose elements should be added to the end of the
System.Collections.Generic.List<T>. The collection itself cannot be null, but it can contain elements that are null,
if type T is a reference type.
Unable to add while the ReadOnly property is set to true.
Adds the specified fileName to the map as a new layer.
The string fileName to add as a layer.
An IMapLayer that is the layer handle for the specified file.
Adds the dataset specified to the file. Depending on whether this is a featureSet,
Raster, or ImageData, this will return the appropriate layer for the map.
A dataset
The IMapLayer to add
This overload automatically constructs a new MapLayer from the specified
feature layer with the default drawing characteristics and returns a valid
IMapLayer which can be further cast into a PointLayer, MapLineLayer or
a PolygonLayer, depending on the data that is passed in.
Any valid IFeatureSet that does not yet have drawing characteristics
A newly created valid implementation of FeatureLayer which at least gives a few more common
drawing related methods and can also be cast into the appropriate Point, Line or Polygon layer.
Adds the raster to layer collection
Adds the specified image data as a new layer to the map.
The image to add as a layer
the IMapImageLayer interface for the layer that was added to the map.
This copies the members of this collection to the specified array index, but
only if they match the IGeoLayer interface. (Other kinds of layers can be
added to this collection by casting it to a LayerCollection)
The array of IGeoLayer interfaces to copy values to
The zero-based integer index in the output array to start copying values to
Tests to see if the specified IGeoLayer exists in the current collection
Gets the zero-based integer index of the specified IGeoLayer in this collection
Inserts an element into the System.Collections.Generic.List<T> at the specified index.
The zero-based index at which item should be inserted.
The object to insert. The value can be null for reference types.
index is less than 0.-or-index is greater than System.Collections.Generic.List<T>.Count.
Unable to insert while the ReadOnly property is set to true.
Moves the given layer to the given position.
Layer that gets moved.
Position, the layer is moved to.
Removes the first occurrence of a specific object from the System.Collections.Generic.List<T>.
The object to remove from the System.Collections.Generic.List<T>. The value can be null for reference types.
true if item is successfully removed; otherwise, false. This method also returns false if item was not
found in the System.Collections.Generic.List<T>.
Unable to remove while the ReadOnly property is set to true.
Inserts the elements of a collection into the EventList<T> at the specified index.
The zero-based index at which the new elements should be inserted.
The collection whose elements should be inserted into the EventList<T>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.
index is less than 0.-or-index is greater than EventList<T>.Count.
collection is null.
Unable to insert while the ReadOnly property is set to true.
An IEnumerator
This simply forwards the call from a layer to the container
of this collection (like a MapFrame).
The layer that actually changed
Occurs when the stencil for one of the layers has been updated in a specific region.
Gets the map frame of this layer collection
The default, indexed value of type T
The numeric index
An object of type T corresponding to the index value specified
Gets or sets the progress handler to report progress for time consuming actions.
Creates a new instance of LayerEnumerator
Calls the Dispose method
Moves to the next member
boolean, true if the enumerator was able to advance
Resets to before the first member
Retrieves the current member as an ILegendItem
GeoImageLayer
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
Indicates that the drawing process has been finalized and swaps the back buffer
to the front buffer.
Copies any current content to the back buffer so that drawing should occur on the
back buffer (instead of the fore-buffer). Calling draw methods without
calling this may cause exceptions.
Boolean, true if the front buffer content should be copied to the back buffer
where drawing will be taking place.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets or sets whether the image layer is initialized
Creates a new raster layer from the specified fileName
Creates a new instance of a MapRasterLayer and the specified image data to use for rendering it.
Creates a new instance of a Raster layer, and will create a "FallLeaves" image based on the
raster values.
The raster to use
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Indicates that the drawing process has been finalized and swaps the back buffer
to the front buffer.
Copies any current content to the back buffer so that drawing should occur on the
back buffer (instead of the fore-buffer). Calling draw methods without
calling this may cause exceptions.
Boolean, true if the front buffer content should be copied to the back buffer
where drawing will be taking place.
Fires the OnBufferChanged event
The Rectangle in pixels
Indicates that whatever drawing is going to occur has finished and the contents
are about to be flipped forward to the front buffer.
Occurs when a new drawing is started, but after the BackBuffer has been established.
This draws to the back buffer. If the back buffer doesn't exist, this will create one.
This will not flip the back buffer to the front.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets or sets whether the image layer is initialized
The ProjectChangeTracker class is responsible for tracking changes in the current project.
A change occurs if layers are added or removed, map view extent is changed, symbology is changed,
if layers are selected or unselected or if layer visibility is changed.
Gets or sets the map where changes are tracked
This event fires if some visible properties of the map such as view extent or
map layer appearance is changed.
Used for opening and saving project files.
Initializes a new instance of the class.
The application manager.
Serializes portions of the map to file.
Name of the file.
Deserializes the map from a file.
Name of the file.
Gets the custom setting.
Name of the unique key.
The default value.
Sets the custom setting.
Name of the unique key.
The value.
Determines whether a uniqueName is already in use.
Key to test.
true if uniqueName is already in use; otherwise, false.
Creates a new project.
Starts tracking changes in the current project
This method re-sets the map projection and re-projects all map
layers to the projection that is specified in the project file
Triggers the Deserializing event.
Triggers the Serializing event.
Triggers the NewProjectCreated event.
Triggers the IsDirtyChanged event.
Filter text for an open project file dialog
Filter text for a save project as dialog
Gets the save dialog filter format.
Gets the open dialog filter format.
Gets or sets the current project directory.
The current project directory.
Gets or sets the current project file.
The current project file.
True if there are some unsaved changes in the current project,
False otherwise
Gets the save project file providers.
Gets the open project file providers.
Occurs when the appmanager is being serialized, allowing a plugin to view and modify custom settings that will be stored with the appmanager.
Occurs when the appmanager is being deserialized. allowing a plugin to deal with any custom settings that were deserialized.
Occurs when a new project is created using the New() method. allowing a plugin to perform initialization associated with the
creation of a new project
Occurs when the dirty (unsaved) state of the current project is changed. This occurs when layers are added or removed to the map,
when layer symbology is changed or when the map view extents are changed.
ShapefileLayerProvider
Not Implemented yet
Opens a shapefile, but returns it as a FeatureLayer
The string fileName
Boolean, if this is true it will attempt to open the entire layer in memory.
A container to hold this layer.
The progress handler that should receive status messages
An IFeatureLayer
Gets a dialog read filter that lists each of the file type descriptions and file extensions, delimeted
by the | symbol. Each will appear in DotSpatial's open file dialog filter, preceeded by the name provided
on this object.
Gets a dialog filter that lists each of the file type descriptions and extensions for a Save File Dialog.
Each will appear in DotSpatial's open file dialog filter, preceeded by the name provided on this object.
Gets a prefereably short name that identifies this data provider. Example might be GDAL.
This will be prepended to each of the DialogReadFilter members from this plugin.
This is a basic description that will fall next to your plugin in the Add Other Data dialog.
This will only be shown if your plugin does not supply a DialogReadFilter.
Creates a new instance of ClipArgs
Creates a ClipArg from a single rectangle instead of a list of rectangles
The clip rectangle
Gets the ClipRectangle for this event.
Contains methods to remove duplicates
Cycles through the PointF points, where necessary and removes duplicate points
that are found at the integer level.
Cleans the enumerable of points by removing duplicates
This is should not be instantiated because it cannot in itself perform the necessary functions.
Instead, most of the specified functionality must be implemented in the more specific classes.
This is also why there is no direct constructor for this class. You can use the static
"FromFile" or "FromFeatureLayer" to create FeatureLayers from a file.
Gets or sets the label layer that is associated with this feature layer.
IGeoLineLayer
IGeoPointLayer
IGeoPolygonLayer
Creates an empty line layer with a Line FeatureSet that has no members.
Constructor
Constructor that also shows progress
A featureset that contains lines
An IContainer that the line layer should be created in
Creates a GeoLineLayer constructor, but passes the boolean notFinished variable to indicate
whether or not this layer should fire the FinishedLoading event.
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
This is testing the idea of using an input parameter type that is marked as out
instead of a return type.
The result of the creation
Boolean, true if a layer can be created
This is the strong typed version of the same process that is specific to geo point layers.
The new GeoPointLayer to be created
Boolean, true if there were any values in the selection
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
Builds a linestring into the graphics path, using minX, maxY, dx and dy for the transformations.
Fires the OnBufferChanged event
The Rectangle in pixels
Indiciates that whatever drawing is going to occur has finished and the contents
are about to be flipped forward to the front buffer.
A default method to generate a label layer.
Occurs when a new drawing is started, but after the BackBuffer has been established.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets an integer number of chunks for this layer.
Gets or sets the label layer that is associated with this line layer.
This is a specialized FeatureLayer that specifically handles point drawing
This creates a blank MapPointLayer with the DataSet set to an empty new featureset of the Point featuretype.
Creates a new instance of a GeoPointLayer without sending any status messages
The IFeatureLayer of data values to turn into a graphical GeoPointLayer
Creates a new instance of the point layer where the container is specified
Creates a new instance of the point layer where the container is specified
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
This is testing the idea of using an input parameter type that is marked as out
instead of a return type.
The result of the creation
Boolean, true if a layer can be created
This is the strong typed version of the same process that is specific to geo point layers.
The new GeoPointLayer to be created
Boolean, true if there were any values in the selection
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
Indicates that the drawing process has been finalized and swaps the back buffer
to the front buffer.
Copies any current content to the back buffer so that drawing should occur on the
back buffer (instead of the fore-buffer). Calling draw methods without
calling this may cause exceptions.
Boolean, true if the front buffer content should be copied to the back buffer
where drawing will be taking place.
Fires the OnBufferChanged event
The Rectangle in pixels
A default method to generate a label layer.
Indiciates that whatever drawing is going to occur has finished and the contents
are about to be flipped forward to the front buffer.
Occurs when a new drawing is started, but after the BackBuffer has been established.
Draws a point at the given location.
X-Coordinate of the point, that should be drawn.
Y-Coordinate of the point, that should be drawn.
MapArgs for calculating the scaleSize.
PointSymbolizer with which the point gets drawn.
Graphics-Object that should be used by the PointSymbolizer.
The original transformation that is used to position the point.
Attempts to create a new GeoPointLayer using the specified file. If the filetype is not
does not generate a point layer, an exception will be thrown.
A string fileName to create a point layer for.
Any valid implementation of IProgressHandler for receiving progress messages
A GeoPointLayer created from the specified fileName.
Attempts to create a new GeoPointLayer using the specified file. If the filetype is not
does not generate a point layer, an exception will be thrown.
A string fileName to create a point layer for.
A GeoPointLayer created from the specified fileName.
Occurs when drawing content has changed on the buffer for this layer
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
Gets or sets the label layer that is associated with this point layer.
Creates a new empty MapPolygonLayer with an empty FeatureSet of FeatureType Polygon
Constructor
Constructor that also shows progress
A featureset that contains lines
An IContainer that the line layer should be created in
Constructor that also shows progress
A featureset that contains lines
An IContainer that the line layer should be created in
This will draw any features that intersect this region. To specify the features
directly, use OnDrawFeatures. This will not clear existing buffer content.
For that call Initialize instead.
A GeoArgs clarifying the transformation from geographic to image space
The geographic regions to draw
Call StartDrawing before using this.
The rectangular region in pixels to clear.
The color to use when clearing. Specifying transparent
will replace content with transparent pixels.
This is testing the idea of using an input parameter type that is marked as out
instead of a return type.
The result of the creation
Boolean, true if a layer can be created
This is the strong typed version of the same process that is specific to geo point layers.
The new GeoPointLayer to be created
Boolean, true if there were any values in the selection
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified,
this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
If useChunks is true, then this method
The GeoArgs that control how these features should be drawn.
The features that should be drawn.
If an entire chunk is drawn and an update is specified, this clarifies the changed rectangles.
Boolean, if true, this will refresh the buffer in chunks.
Indicates that the drawing process has been finalized and swaps the back buffer
to the front buffer.
Copies any current content to the back buffer so that drawing should occur on the
back buffer (instead of the fore-buffer). Calling draw methods without
calling this may cause exceptions.
Boolean, true if the front buffer content should be copied to the back buffer
where drawing will be taking place.
Fires the OnBufferChanged event
The Rectangle in pixels
A default method to generate a label layer.
Occurs when a new drawing is started, but after the BackBuffer has been established.
Draws the GraphicsPaths. Before we were effectively "re-creating" the same geometric
Appends the specified polygon to the graphics path.
Fires an event that indicates to the parent map-frame that it should first
redraw the specified clip
Gets or sets the back buffer that will be drawn to as part of the initialization process.
Gets the current buffer.
Gets or sets the geographic region represented by the buffer
Calling Initialize will set this automatically.
Gets or sets the rectangle in pixels to use as the back buffer.
Calling Initialize will set this automatically.
true if the layer component reports progress messages, false otherwise
Gets or sets the label layer that is associated with this polygon layer.
DoutherlandHodgmanClipper
Create SoutherlandHodgman polygon clipper with clipping rectangle
Create southerlandHodgman polygon clipper with default clipping rectangle
Calculates the Southerland-Hodgman clip using the actual drawing coordinates.
This hopefully will be much faster than NTS which seems unncessarilly slow to calculate.
http://www.codeguru.com/cpp/misc/misc/graphics/article.php/c8965
A modified list of points that has been clipped to the drawing bounds
Calculates the Southerland-Hodgman clip using the actual drawing coordinates.
This specific overload works with arrays of doubles instead of PointF structures.
This hopefully will be much faster than NTS which seems unncessarilly slow to calculate.
http://www.codeguru.com/cpp/misc/misc/graphics/article.php/c8965
The list of arrays of doubles where the X index is 0 and the Y index is 1.
A modified list of points that has been clipped to the drawing bounds
Get or set the clipping rectangle used in subsequent Clip calls.
A MapFunction that can zoom into the map using left mouse clicks or rectangle dragging. It zooms out on right mouse clicks.
Creates a new instance of SelectTool
Handles the MouseDown
Handles MouseMove
Handles the Mouse Up situation
DefaultTools
Mousewheel still zooms the map, but left clicking brings items into the view.
Zooms into the map with the left mouse button and zooms out with the right mouse button.
Zooms out by clicking the left mouse button.
Zooms by scrolling the mouse wheel and pans by pressing the mouse wheel and moving the mouse.
Pans the map with the left mouse button, context with the right and zooms with the mouse wheel
Selects shapes with the left mouse button, context with the right and zooms with the mouse wheel
Left button selects, moves or edits, right produces a context menu
Disables all the tools
Creates a new instance of MouseArgs
Gets the position of the Mouse Event in geographic coordinates
Gets a simple interface for the map where these events were generated
Gets or sets a handled. If this is set to true, then the mouse event is considered to
be handled and will not be passed to any other functions in the stack.
This is a glyph on the map that if you click on it, it will launch the PluginDialog.
This is the cursor that was the cursor before we did anything.
Creates a new instance of the GlyphFunction
Creates a new instance of a GLyphFunction with the specified Map
Draws the glyph on the map.
The drawing space is only the size of the GlyphBounds.
When the mouse moves over a glyph, it should light up or change to show it is clickable.
Occurs when the mouse clicks on the glyph
Occurs when the mouse leaves the glyph
Occurs when the mouse enters the glyph
Even though we don't take action here, we need to indicate that we handled the event so that the other
functions that my be active don't do anything for this part.
The cursor to use when the mouse is over this glyph.
This should be overridden by the specific glyph so they don't overlap and appear where they should.
Gets or sets a Boolean indicating whether or not this glyph currently holds the mouse
Unless the OnDrawGlyphLit method is overridden, this is drawn when the mouse is over the image.
Unless the OnDrawGlyph method is overridden, this is drawn. If no LitImage is specified,
then this image will be drawn also for the LitImage case.
Map Identify Function. Used to show information about map layers under map cursor.
Creates a new instance of IdentifyFunction
Overrides the OnMouseUp event to handle the situation where we are trying to
identify the vector features in the specified area.
A MapFunction that allows labels to be selected.
Initializes a new instance of the MapFunctionLabelSelect class.
Handles the MouseDown
Handles MouseMove
Handles the Mouse Up situation
Selection envelope
A MapFunction that can pan the map.
Initializes a new instance of the MapFunctionPan class.
Handles the actions that the tool controls during the OnMouseDown event
Handles the mouse move event, changing the viewing extents to match the movements
of the mouse if the left mouse button is down.
Mouse Up
This indicates that this tool is currently being used.
SelectTool
Creates a new instance of SelectTool
Handles the MouseDown
Handles pressing the delete key to remove features from the specified layer.
Handles MouseMove
Handles the Mouse Up situation
Simple dock manager implementation. It can be used in design time.
Add default tab controls to the dock manager
Gets or sets TabControl For Panel1. It used for storing Left and Top panels.
Gets or sets TabControl For Panel2. It used for storing Right and Bottom panels.
Gets or sets the application manager.
Gets or sets Toolbars container for header control buttons.
Gets or sets Menu strip for header control menus.
Preconfigured tool strip menu.
Creates a new instance of mwToolBar
Constructs and initializes this toolbar using the specified IBasicMap
The map for the toolbar to interact with
Gets or sets the basic map that this toolbar will interact with by default
Gets or sets the application manager.
The application manager.
Creates a container within which other controls can share horizontal or vertical space.
Describe different behaviors that map functions can have when working with
respect to other map-functions.
This is a null state for testing, and should not be used directly.
This function will deactivate if another LeftButton function activates.
This function will deactivate if another RightButton function activates.
This function will deactivate if another scroll function activates.
This function will deactivate if another keyboard function activates.
This function is like a glyph and never yields to other functions.
A MapFunction that zooms the map by scrolling the scroll wheel and pans the map by pressing the mouse wheel and moving the mouse.
Initializes a new instance of the MapFunctionZoom class.
Mouse Wheel
Handles the actions that the tool controls during the OnMouseDown event
Handles the mouse move event, changing the viewing extents to match the movements
of the mouse if the left mouse button is down.
Mouse Up
Gets or sets the wheel zoom sensitivity. Increasing makes it more sensitive. Maximum is 0.5, Minimum is 0.01
Controls the sense (direction) of zoom (in or out) as you roll the mouse wheel
Gets or sets the full refresh timeout value in milliseconds
A MapFunction that can zoom the map out based on left mouse clicks and in based on right mouse clicks.
Creates a new instance of SelectTool
Handles the Mouse Up situation
A modeler form which allows users to create models with visual representations of tools
Creates an instance of the spatial modeler Element
Translates between pixel location and virtual location
A point in pixel coordinantes. 0, 0 is the top left of the modeler
A point in the virtual model coordinantes
Translates between pixel location and virtual location
the X location in pixel coordinantes
the Y location in pixel coordinantes
A point in the virtual model coordinantes
Returns a rectangle in virtual coordinantes based on a pixel rectangle
Translates between virtual model coords and pixels
A point in the virtual model coordinantes
A point in pixel coordinantes. 0, 0 is the top left of the modeler
Translates between virtual model coords and pixels
the X location in virtual model coordinantes
the Y location in virtual model coordinantes
A point in pixel coordinantes. 0, 0 is the top left of the modeler
Adds a data element to the modeler based on a parameter descrition
The parameter to add to the modeler
A point representing the virtual location of the element
Adds a data element to the modeler
The data set to add to the modeler
A point representing the virtual location of the data element
The name to give the element
Adds an arrow element given a source and destination element
Adds a element to the model
The new model Element to add to the model form
A point representing the virtual location of the element
Clears all the elements in the _selectedElements list, removes their highlights and puts them back in the _modelElements list
Removes the specified element from the _selectedElements list
Adds an element to the _modelElementsSelected Array and highlights it
Removes a specific element from the model clearing any links it has to other elements
The element to remove
Adds a tool to the Modeler
the tool to add to the modeler
A point representing the virtual location of the tool
Adds a tool to the Modeler
the tool to add to the modeler
A point representing the virtual location of the tool
Saves the current project, prompting the user to save as if the project is new.
Saves the current project to disk.
True to prompt for overwrite if file exists
True show save as dialog
Saves a copy of the model to the selected file without renaming the current project
Prompts the user to load a model and asks them if they want to save the current model first
Loads a model from file closing the existing model without saving it
Creates a new model
if true prompts user to save current model if it is not saved
Deletes all of the selected elements if it is allowed
Zooms the model in 20%
Zooms the model out 20%
Centers the map on a given point
A Point in the modelers virtual coordinant system
Zooms to the extent of all elements in the model and centers the modeler on them
Creates a default output locations for tools.
Executes a model after verifying that it is ready
A string parameter which will contains a error string if one is generated
Returns true if it executed succesfully
On Key Up
When the users clicks the mouse this event fires
When the mouse is moved this event fires
When the user mouses up after a single click this event fires
Occurs when the mouse leaves.
When the user double clicks on the model this event fires
Adds a tool to the modeler
Allows a drag into the modeler
Paints the elements to the backbuffer
When the element is called on to be painted this method is called
When the form draws the background do nothing
Redraws the background when the form is resized
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Fires when the Filename of the project is changed
Occurs when the model fileName has changed
The maximum number of processes to execute at the same time
Turns linking by mouse on and off
Gets or Sets the drawing quality for the toolbox
Gets or sets the font that will be used to label the data in the modeler
Gets or sets the color that data should have in the modeler
Gets or sets the shape that data should be represented with in the modeler
Gets or sets the font that will be used to label the tools in the modeler
Gets or sets the color that tools should have in the modeler
Gets or sets the shape that tools should be represented with in the modeler
Turns the DotSpatial watermark in the lower right hand corner on or off. Defautl true.
Sets the toolManager used to create instances of all the tools.
Gets or Sets if the model drawing needs to be initialized
Gets or sets the zoom factor of the map values below 0 zoom out, values above 1 zoom in. 1 = no zoom
Gets or sets the fileName of the current model
Gets or sets the extension used by default for opening, saving and creating new models. ex "mwm"
Gets or sets the working path for the model
A form used in Brian's toolkit code
Creates a new instance of the modeler's form
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Gets modeler in the form
A Brian Marchioni original toolstrip... preloaded with content.
Creates an instance of the toolstrip
Gets or sets the modeler currently associated with the toolstrip
A dialog that allows users to modify the size of the layout paper and margins
Creates a new instance of the Page Setup Form
Takes a string and returns true if it can be converted to a double
Sets the printerSettings to the new settings and sets the result to OK
Disgards the settings and sets dialogresult to cancel
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Handles drawing by adding an icon to the mix.
Owner draw must be set to true for this to work.
Creates a new instance of the Icon Menu Item with the specified name
Creates a new instance of the Icon Menu Item with the specified name
Creates a new instance of the Icon Menu Item with the specified name
Gets or sets the icon to be drawn to the left of this menu item.
Gets or sets the image to be drawn to the left of this menu item
mwProgressBar
A pre-configured status strip with a thread safe Progress function
The Designer for the Spatial Status Strip
Creates a new instance of the StatusStrip which has a built in, thread safe Progress handler
This method is thread safe so that people calling this method don't cause a cross-thread violation
by updating the progress indicator from a different thread
A string message with just a description of what is happening, but no percent completion information
The integer percent from 0 to 100
A message
Raises the event.
A that contains the event data.
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Gets or sets the progress bar. By default, the first ToolStripProgressBar that is added to the tool strip.
The progress bar.
Gets or sets the progress label. By default, the first ToolStripStatusLabel that is added to the tool strip.
The progress label.
This class provides a ToolManager for loading tools from .dll's
Creates a new instance of the ToolManager, scans the executables root path\tools
Called when a part's imports have been satisfied and it is safe to use. Refreshes the tree of tools.
Returns true if the Tool Manager can create the tool specified by the Name
The unique name of a tool
true if the tool can be created otherwise false
Creates a new instance of a tool based on its Name
The unique name of the tool
Returns an new instance of the tool or NULL if the tools unique name doesn't exist in the manager
Highlights the next tool
Locates a tool by its name in the tree and highlights it
This clears the list of available tools and loads them from file again
Handles the NodeMouseDoubleClick event of the ToolManager control.
The source of the event.
The instance containing the event data.
Runs when and item gets dragged
Thie event fires when the mouse moves to change the ToolTip
Sets the data that are available by default to tools
Gets or Sets the legend object. This is needed to automatically populate the list of data layers in tool dialogs.
App is the current AppManager handle.
Gets the list tools available.
A Tool strip to use with the ToolManager when used as a graphical control
Creates an instance of the toolstrip
Gets or sets the ToolManager currently associated with the toolstrip
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.