A renderable layer which contains user-defined drawings. Also exposes an OnRender event to allow user-level drawing operations to take place midway through rendering of layers (by placing this DrawingLayer object at the desired position in the layer stack). Drawing may be done directly to the resource, or by calling drawing functions. Drawings may be screen-referenced (always in place) or world-referenced (moves with the map data on pans, etc).


The following tables list the members exposed by RenderableDrawingLayer.

Public Constructors

  Name Description
Public method RenderableDrawingLayer Initializes a new instance of the RenderableDrawingLayer class.
Top

Public Fields

  Name Description
Public field m_MapViewReference May be used by an object implementing this interface to do things like zoom to a shape by setting extents directly on the view control. (inherited from RenderableLayer)
Top

Private Fields

  Name Description
Private field m_DrawListScreenReferenced A list of drawings to be screen referenced.
Private field m_DrawListSpatiallyReferenced A list of drawings to be spatially referenced.
Top

Public Properties

  Name Description
Public property LayerHandle Returns the handle of the layer (used to refer to it in the view or legend). (inherited from RenderableLayer)
Public property Visible Indicates or sets whether this layer should be drawn. (inherited from RenderableLayer)
Top

Public Methods

  Name Description
Public method AddShape Overloaded.

M:MapWinView.RenderableDrawingLayer.AddShape(MapWinView.RenderableDrawingLayer.dlIcon,MapWinView.RenderableDrawingLayer.Referencing)

Adds a shape to this layer with the specified referencing type.

Public method CanCustomize Overridden. Returns whether this layer has customizable properties; e.g. fill color.
Public method CanRender Overridden. Tells the map control whether this layer can render presently.
Public method ClearDrawings Clears any drawings that were added to this drawing layer in the past.
Public method CoversUnderlyingAreaCompletely Overridden. Requests the layer to identify whether it completely covers underlying features within the given bounds.
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method FullExtents Overridden. Returns the full extents that the layer includes data for.
Public method GetCustomizeObject Overridden. Returns a reference to a class with properties representing customizable options, which may be loaded into a PropertyGrid or analyzed and set using reflection.
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetLayerStateXML Overridden. Returns an XML fragment represending the state (e.g., raster coloring scheme, vector fill color) of the rendered layer, for use in reconstructing maps from saved projects.
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method Render Overridden. Handles rendering of the layer.
Public method SetLayerHandle Sets the handle of the layer. Called only by AddLayer functions. (inherited from RenderableLayer)
Public method SetLayerStateXML Overridden. Accepts an XML fragment represending the state (e.g., raster coloring scheme, vector fill color) of the rendered layer, for use in reconstructing maps from saved projects.
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Public method UnderlyingObject Overridden. Returns the underlying object implementing IRenderableLayer.
Public method UnderlyingObjectType Overridden. Returns the underlying System.Type of the object implementing IRenderableLayer.
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

Public Events

  Name Description
Public event OnRender This event is raised when the layer is rendered.
Top

See Also