User Tools

Site Tools


thinkgeo.mapsuite.routing.routinglayer

This is an old revision of the document!


ThinkGeo.MapSuite.Routing.RoutingLayer

This layer can show start coordinates, end coordinates, a collection of in-between stops and the resulting paths with specified styles.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Layer
      • ThinkGeo.MapSuite.Routing.RoutingLayer

Members Summary

Public Constructors

RoutingLayer()

This is a constructor for the class.

Remarks

This is the default constructor. If you use this constructor, then you should set the Routes property manually.

Parameters

RoutingLayer(PointShape,PointShape,IEnumerable<PointShape>)

This is a constructor for the class.

Remarks

This constructor gets the points ready to use.

Parameters
  • startPoint
    • Description:This parameter represents the startPoint that you want to use in this class.
  • endPoint
    • Description:This parameter represents the endPoint that you want to use in this class.
  • stopPoints
    • Type:IEnumerable<PointShape>
    • Description:This parameter represents the stopPoints that you want to use in this class.

RoutingLayer(IEnumerable<LineShape>)

This is a constructor for the class.

Remarks

This constructor gets the route ready to use.

Parameters
  • routes
    • Type:IEnumerable<LineShape>
    • Description:This parameter represents the routes that you want to use in this class.

RoutingLayer(PointShape,PointShape,IEnumerable<PointShape>,IEnumerable<LineShape>)

This is a constructor for the class.

Remarks

This constructor gets the points ready to use.

Parameters
  • startPoint
    • Description:This parameter represents the startPoint that you want to use in this class.
  • endPoint
    • Description:This parameter represents the endPoint that you want to use in this class.
  • stopPoints
    • Type:IEnumerable<PointShape>
    • Description:This parameter represents the stopPoints that you want to use in this class.
  • routes
    • Type:IEnumerable<LineShape>
    • Description:This parameter represents the routes that you want to use in this class.

Protected Constructors

Public Methods

RequestDrawing()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

RequestDrawing(RectangleShape)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

RequestDrawing(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

RequestDrawing(TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

RequestDrawing(RectangleShape,TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

GetThreadSafetyLevel()

N/A

Remarks

N/A

Return Value
Parameters

CloneDeep()

N/A

Remarks

N/A

Return Value
  • Type:Layer
  • Description:N/A
Parameters

Open()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

Close()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

GetBoundingBox()

N/A

Remarks

N/A

Return Value
Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

This method will draw the routing result based on the specified styles.

Remarks

This abstract method is called from the concrete public method Draw. This method draws the representation of the layer based on the extent you provided. When implementing this abstract method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.

Return Value
  • Type:Void
  • Description:None
Parameters
  • canvas
    • Type:GeoCanvas
    • Description:This parameter is the canvas object or a GeoImage to draw on.
  • labelsInAllLayers
    • Type:Collection<SimpleCandidate>
    • Description:This parameter represents the labels used for collision detection and duplication checking.

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

GetThreadSafetyLevelCore()

N/A

Remarks

N/A

Return Value
Parameters

CloneDeepCore()

N/A

Remarks

N/A

Return Value
  • Type:Layer
  • Description:N/A
Parameters

OpenCore()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

CloseCore()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

GetBoundingBoxCore()

N/A

Remarks

N/A

Return Value
Parameters

DrawException(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • e
    • Type:Exception
    • Description:N/A

DrawExceptionCore(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • e
    • Type:Exception
    • Description:N/A

OnDrawingException(DrawingExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawnException(DrawnExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

DrawAttributionCore(GeoCanvas,String)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • attribution
    • Type:String
    • Description:N/A

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

XOffsetInPixelOfStopOrder

Gets or sets the x offset (in pixels) of the stop order.

Remarks

N/A

Return Value
  • Type:Single

YOffsetInPixelOfStopOrder

Gets or sets the y offset (in pixels) of the stop order.

Remarks

N/A

Return Value
  • Type:Single

Routes

Gets the result path information for routing.

Remarks

N/A

Return Value

StartPoint

Gets and sets the start coordinates for routing.

Remarks

N/A

Return Value

EndPoint

Gets and sets the end coordinates for routing.

Remarks

N/A

Return Value

StopPoints

Gets a collection that holds the stop coordinates between StartPoint and EndPoint for routing.

Remarks

N/A

Return Value

StartPointStyle

Gets and sets the style of StartPoint.

Remarks

If this property is not set, the default style is a small green marker representing the route start point.

Return Value

EndPointStyle

Gets and sets the style of EndPoint.

Remarks

If this property is not set, the default style is a small red marker representing the route end point.

Return Value

StopPointStyle

Gets and sets the style of StopPoints.

Remarks

If this property is not set, the default style is a small yellow marker representing a stop.

Return Value

StopTextStyle

N/A

Remarks

N/A

Return Value

RouteStyle

Gets and sets the style of Routes.

Remarks

If this property is not set, the default style is a purple pen with semitransparent color.

Return Value

ShowStopOrder

Gets and sets the value that represents whether to show the ordinal number of each of the StopPoints when drawing layer. The default value is true.

Remarks

If this property is set to false, the text representing the sequence number of each stop will not be shown. This is ensured in the Draw method.

Return Value
  • Type:Boolean

RequestDrawingInterval

N/A

Remarks

N/A

Return Value
  • Type:TimeSpan

IsOpen

N/A

Remarks

N/A

Return Value
  • Type:Boolean

HasBoundingBox

N/A

Remarks

N/A

Return Value
  • Type:Boolean

DrawingTime

N/A

Remarks

N/A

Return Value
  • Type:TimeSpan

Name

N/A

Remarks

N/A

Return Value
  • Type:String

Attribution

N/A

Remarks

N/A

Return Value
  • Type:String

IsVisible

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Transparency

N/A

Remarks

N/A

Return Value
  • Type:Single

BlueTranslation

N/A

Remarks

N/A

Return Value
  • Type:Single

RedTranslation

N/A

Remarks

N/A

Return Value
  • Type:Single

GreenTranslation

N/A

Remarks

N/A

Return Value
  • Type:Single

KeyColors

N/A

Remarks

N/A

Return Value

IsNegative

N/A

Remarks

N/A

Return Value
  • Type:Boolean

IsGrayscale

N/A

Remarks

N/A

Return Value
  • Type:Boolean

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Protected Properties

IsOpenCore

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Public Events

RequestedDrawing N/A

Remarks

N/A

Event Arguments:RequestedDrawingLayerEventArgs

RequestingDrawing N/A

Remarks

N/A

Event Arguments:RequestingDrawingLayerEventArgs

DrawingProgressChanged N/A

Remarks

N/A

Event Arguments:DrawingProgressChangedEventArgs

DrawingException N/A

Remarks

N/A

Event Arguments:DrawingExceptionLayerEventArgs

DrawnException N/A

Remarks

N/A

Event Arguments:DrawnExceptionLayerEventArgs

DrawingAttribution N/A

Remarks

N/A

Event Arguments:DrawingAttributionLayerEventArgs

DrawnAttribution N/A

Remarks

N/A

Event Arguments:DrawnAttributionLayerEventArgs

thinkgeo.mapsuite.routing.routinglayer.1442545600.txt.gz · Last modified: 2015/09/18 03:06 by admin