Click or drag to resize

ShapeLayer Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A layer that holds ShapeEntity objects that may be selected, edited, and rendered on a map.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.ShapeUIShapeLayer

Namespace:  Telogis.GeoBase.ShapeUI
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class ShapeLayer : IMapRenderer, IDisposable

The ShapeLayer type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleShapeLayer
Creates a base shapelayer that renders shapes on a map.
Top
Properties
  NameDescription
Public propertyCurrentMode
Determines the current layer's mode.
Public propertyInvalidShape
Whether the current shape is invalid and needs to be removed (set when changing states).
Public propertyMap
Gets the map that the shaper layer is being rendered on.
Public propertyRequiredRendermodes
Determines when the entities will be rendered on the map.
Public propertySelection
Gets and sets the current selected entity.
Public propertyCode exampleState
Used to change the state, and fire any necessary events.
Top
Methods
  NameDescription
Public methodCode exampleAddShape
Adds a new shape entity to the layer.
Public methodCode exampleClear
Removes all entities from the layer.
Public methodDispose
Disposes of any state and disconnects from the rtree.
Public methodEdit
Edits a specific entity and changes the state to a edit state.
Public methodEnterSelectMode
Changes the state to selection mode without any currently selected entity.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFinishEditing
Selects the previously edited entity and changes the state to a selection state
Public methodGetDefaultState
Returns an IState used to perform default operations.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSelectState
Returns an ISelectState used to perform selection related operations.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOnMouseClick
Calls mouse click on the layer's current state.
Public methodOnMouseDown
Calls mouse down on the layer's current state.
Public methodOnMouseLeave
Calls mouse leave (when the mouse leaves the current map space) on the layer's current state.
Public methodOnMouseMove
Calls mouse move on the layer's current state.
Public methodOnMouseUp
Calls mouse up on the layer's current state.
Public methodQueryShapes
Gets all of the shape entities within the layer.
Public methodQueryShapes(BoundingBox)
Gets all of the shape entities that exist within a specific bounding box.
Public methodQueryShapes(IMap)
Gets all of the shape entities within a map view.
Public methodQueryShapes(RTreeRect)
Gets all of the shape entities that exist within a specific rectangle.
Public methodCode exampleRemoveShape
Removes a specific shape from the layer if it exists.
Public methodRender
Renders all of the shape entities according to the layer's current mode.
Public methodSelect
Selects a specific entity and changes the state to a selection state.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventModeChanged
Event that is fired when there is a change to the layer's mode.
Public eventRedrawRequired
Event that is fired when the layer needs to be redrawn.
Public eventSelectionChanged
Event that is fired when which shape is selected changes.
Public eventShapeAdded
Event that is fired when a shape is added to the layer.
Public eventShapeRemoved
Event that is fired when a shape is removed from the layer.
Top
See Also