PolygonEditState Class |
Namespace: Telogis.GeoBase.ShapeUI.State
The PolygonEditState type exposes the following members.
Name | Description | |
---|---|---|
PolygonEditState |
Creates a state for editing a polygon.
|
Name | Description | |
---|---|---|
Apply |
Finishes editing the polygon, saves any edits and returns to a selection state.
(Overrides BaseStateApply.) | |
Begin |
Disables the map UI so that the map does not move following mouse events.
(Overrides BaseStateBegin.) | |
End |
Validates the edited shape and re-enables the map UI.
(Overrides BaseStateEnd.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
OnMouseClick |
On right click, deletes a highlighted vertex or applies any changes.
(Overrides BaseStateOnMouseClick(Object, MouseEventArgs).) | |
OnMouseDown |
Selects a vertex to move or, if none is highlighted, inserts a new vertex on a left
click.
(Overrides BaseStateOnMouseDown(Object, MouseEventArgs).) | |
OnMouseLeave |
Mouse-leave handler for this state.
(Inherited from BaseState.) | |
OnMouseMove |
Handles mouse movements by either checking whether a vertex or edge should be
highlighted or moving a selected vertex.
(Overrides BaseStateOnMouseMove(Object, MouseEventArgs).) | |
OnMouseUp |
Highlights the relevant edge or vertex if applicable
(Overrides BaseStateOnMouseUp(Object, MouseEventArgs).) | |
Project |
Projects a LatLon into a point on the layer's map.
(Inherited from BaseState.) | |
Render |
Renders all relevant shapes to the render context in the following order: (Overrides BaseStateRender(Graphics, RenderContext).)- All shapes apart from the entity being editing - The selected entity - The selected entity's edges (if highlighted) - The selected entity's vertices (if highlighted) - The selected entity's moving vertex (if a vertex is being moved). | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unproject |
Unprojects a point on the layer's map into a LatLon.
(Inherited from BaseState.) |
Name | Description | |
---|---|---|
HighlightFill |
Brush for highlighting a polygon.
| |
HighlightOutline |
Pen for drawing the outline of a highlighted polygon.
|