C# Class MapAround.Mapping.DefaultFeatureRenderer

Implements the MapAround.Mapping.IFeatureRenderer interface.
Inheritance: IFeatureRenderer
Datei anzeigen Open project: gkrsu/maparound.core

Protected Properties

Property Type Description
_selectedPoints List
_selectedPolygons List
_selectedPolylines List
_titleBuffer List
_titleCount int

Public Methods

Method Description
DefaultFeatureRenderer ( ) : System

Protected Methods

Method Description
DrawPoint ( Feature feature, Graphics g, PointStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void

Draw a point.

DrawPolygon ( Feature feature, Graphics g, PolygonStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void

Draw a polygon.

DrawPolyline ( Feature feature, Graphics g, PolylineStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void

Drawing the line.

FlushSelectedFeatures ( Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void

Rendering selected objects.

FlushTitles ( Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void

Drawing object names.

Private Methods

Method Description
IFeatureRenderer ( Feature feature, Graphics g, PointStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
IFeatureRenderer ( Feature feature, Graphics g, PolygonStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
IFeatureRenderer ( Feature feature, Graphics g, PolylineStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
IFeatureRenderer ( Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void
addCrossPointToList ( Segment s1, Segment s2, List list ) : void
addTitleBufferElement ( Graphics g, Feature feature, TitleStyle titleStyle, BoundingRectangle viewBox, double scaleFactor ) : void
addTitleBufferElement ( TitleStyle titleStyle, ICoordinate targetPoint, SizeF size, double scaleFactor, Feature feature ) : void
createSelectionTexture ( ) : void
drawLinePathSelectionAndOutline ( Graphics g, bool selected, PointF pathPoints, PolylineStyle style ) : void
drawPolylineSimple ( Graphics g, Feature feature, PolylineStyle style, BoundingRectangle viewBox, double scaleFactor ) : void
drawPolylineWithIntersectCalculation ( Graphics g, Feature feature, PolylineStyle style, BoundingRectangle viewBox, double scaleFactor ) : void
drawPrismPolygon ( Feature feature, Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void
drawTitle ( Graphics g, TitleBufferElement title, double scaleFactor, BoundingRectangle viewBox ) : void
drawVisiblePolylinePart ( Graphics g, List path, Pen pen, BoundingRectangle viewBox, double scaleFactor ) : void
drawVisiblePolylinePartWithStyleDetection ( Graphics g, List path, PolylineStyle style, Pen defaultPen, Pen annexPen, bool selected, BoundingRectangle viewBox, double scaleFactor, double lengthFromBegining ) : void
getAngle ( ICoordinate p1, ICoordinate p2, ICoordinate p3, bool counterClockwise ) : double
getCrossPoint ( Segment s1, Segment s2, ICoordinate &crossPoint ) : bool
getCrossPoints ( ICoordinate vertex1, ICoordinate vertex2, BoundingRectangle viewBox ) : List
getDistantPoint ( IList points, double targetDistance, int &vertexNumber ) : ICoordinate
getFollowingTitle ( Graphics g, LinePath part, double length, string label, TitleStyle titleStyle, BoundingRectangle viewBox, double scaleFactor ) : FollowingTitle
getLeftPoints ( IList points, ICoordinate firstPoint, double targetDistance, int vertexNumber, double halfFontHeight, List rotationDeltas ) : IList
getPathLength ( List path ) : double
getRelativeDashSize ( Pen pen ) : float
getRightPoints ( IList points, ICoordinate firstPoint, double targetDistance, int vertexNumber, double halfFontHeight, List rotationDeltas ) : IList
pointQuadrantNumber ( ICoordinate p ) : int
translateAngleQuadrant ( double angle, int quadrantNumber ) : double

Method Details

DefaultFeatureRenderer() public method

public DefaultFeatureRenderer ( ) : System
return System

DrawPoint() protected method

Draw a point.
protected DrawPoint ( Feature feature, Graphics g, PointStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
feature Feature
g System.Drawing.Graphics
style PointStyle
titleStyle TitleStyle
viewBox BoundingRectangle
titleVisible bool
scaleFactor double
return void

DrawPolygon() protected method

Draw a polygon.
protected DrawPolygon ( Feature feature, Graphics g, PolygonStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
feature Feature
g System.Drawing.Graphics
style PolygonStyle
titleStyle TitleStyle
viewBox BoundingRectangle
titleVisible bool
scaleFactor double
return void

DrawPolyline() protected method

Drawing the line.
protected DrawPolyline ( Feature feature, Graphics g, PolylineStyle style, TitleStyle titleStyle, BoundingRectangle viewBox, bool titleVisible, double scaleFactor ) : void
feature Feature
g System.Drawing.Graphics
style PolylineStyle
titleStyle TitleStyle
viewBox BoundingRectangle
titleVisible bool
scaleFactor double
return void

FlushSelectedFeatures() protected method

Rendering selected objects.
protected FlushSelectedFeatures ( Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void
g System.Drawing.Graphics
viewBox BoundingRectangle
scaleFactor double
return void

FlushTitles() protected method

Drawing object names.
protected FlushTitles ( Graphics g, BoundingRectangle viewBox, double scaleFactor ) : void
g System.Drawing.Graphics
viewBox BoundingRectangle
scaleFactor double
return void

Property Details

_selectedPoints protected_oe property

protected List _selectedPoints
return List

_selectedPolygons protected_oe property

protected List _selectedPolygons
return List

_selectedPolylines protected_oe property

protected List _selectedPolylines
return List

_titleBuffer protected_oe property

protected List _titleBuffer
return List

_titleCount protected_oe property

protected int _titleCount
return int