Class MagneticDeclinationAdornmentLayer
public class MagneticDeclinationAdornmentLayer : AdornmentLayer
- Inheritance
-
MagneticDeclinationAdornmentLayer
- Inherited Members
Constructors
MagneticDeclinationAdornmentLayer()
public MagneticDeclinationAdornmentLayer()
MagneticDeclinationAdornmentLayer(string, AdornmentLocation)
public MagneticDeclinationAdornmentLayer(string magneticFieldPathFilename, AdornmentLocation adornmentLocation)
Parameters
magneticFieldPathFilename
stringadornmentLocation
AdornmentLocation
MagneticDeclinationAdornmentLayer(AdornmentLocation)
public MagneticDeclinationAdornmentLayer(AdornmentLocation adornmentLocation)
Parameters
adornmentLocation
AdornmentLocation
MagneticDeclinationAdornmentLayer(ScreenPointF)
public MagneticDeclinationAdornmentLayer(ScreenPointF startPoint)
Parameters
startPoint
ScreenPointF
Properties
Elevation
public double Elevation { get; set; }
Property Value
ElevationUnit
public DistanceUnit ElevationUnit { get; set; }
Property Value
GridNorthLineStyle
public LineStyle GridNorthLineStyle { get; set; }
Property Value
MagneticFieldPathFilename
International Geomagnetic Reference Field (IGRF)
public string MagneticFieldPathFilename { get; }
Property Value
MagneticNorthLineStyle
public LineStyle MagneticNorthLineStyle { get; set; }
Property Value
SampleDateTime
public DateTime SampleDateTime { get; set; }
Property Value
TextStyle
public TextStyle TextStyle { get; set; }
Property Value
TrueNorthLineStyle
public LineStyle TrueNorthLineStyle { get; set; }
Property Value
TrueNorthPointStyle
public PointStyle TrueNorthPointStyle { get; set; }
Property Value
Methods
CloseCore()
protected override void CloseCore()
DrawCore(GeoCanvas, Collection<SimpleCandidate>)
protected override void DrawCore(GeoCanvas canvas, Collection<SimpleCandidate> labelsInAllLayers)
Parameters
canvas
GeoCanvaslabelsInAllLayers
Collection<SimpleCandidate>
GetDrawingLocation(GeoCanvas, float, float)
public override ScreenPointF GetDrawingLocation(GeoCanvas canvas, float adornmentWidth, float adornmentHeight)
Parameters
Returns
GetMagneticDeclination(double, double, double, DistanceUnit, DateTime)
public static MagneticDeclination GetMagneticDeclination(double x, double y, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime)
Parameters
x
doubley
doubleelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTime
Returns
GetMagneticDeclination(double, double, double, DistanceUnit, DateTime, Stream)
public static MagneticDeclination GetMagneticDeclination(double x, double y, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, Stream magneticFieldStream)
Parameters
x
doubley
doubleelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldStream
Stream
Returns
GetMagneticDeclination(double, double, double, DistanceUnit, DateTime, string)
public static MagneticDeclination GetMagneticDeclination(double x, double y, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, string magneticFieldPathFilename)
Parameters
x
doubley
doubleelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldPathFilename
string
Returns
GetMagneticDeclination(Feature, double, DistanceUnit, DateTime)
public static MagneticDeclination GetMagneticDeclination(Feature pointFeature, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime)
Parameters
pointFeature
Featureelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTime
Returns
GetMagneticDeclination(Feature, double, DistanceUnit, DateTime, Stream)
public static MagneticDeclination GetMagneticDeclination(Feature pointFeature, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, Stream magneticFieldStream)
Parameters
pointFeature
Featureelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldStream
Stream
Returns
GetMagneticDeclination(Feature, double, DistanceUnit, DateTime, string)
public static MagneticDeclination GetMagneticDeclination(Feature pointFeature, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, string magneticFieldPathFilename)
Parameters
pointFeature
Featureelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldPathFilename
string
Returns
GetMagneticDeclination(PointShape, double, DistanceUnit, DateTime)
public static MagneticDeclination GetMagneticDeclination(PointShape point, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime)
Parameters
point
PointShapeelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTime
Returns
GetMagneticDeclination(PointShape, double, DistanceUnit, DateTime, Stream)
public static MagneticDeclination GetMagneticDeclination(PointShape point, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, Stream magneticFieldStream)
Parameters
point
PointShapeelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldStream
Stream
Returns
GetMagneticDeclination(PointShape, double, DistanceUnit, DateTime, string)
public static MagneticDeclination GetMagneticDeclination(PointShape point, double elevation, DistanceUnit elevationUnit, DateTime sampleDateTime, string magneticFieldPathFilename)
Parameters
point
PointShapeelevation
doubleelevationUnit
DistanceUnitsampleDateTime
DateTimemagneticFieldPathFilename
string
Returns
OnStreamLoading(StreamLoadingEventArgs)
This method allows you to raise the StreamLoading event.
protected virtual void OnStreamLoading(StreamLoadingEventArgs e)
Parameters
e
StreamLoadingEventArgsThis parameter represents the event arguments you want to raise the StreamLoading event with.
Remarks
This method allows you to raise the StreamLoading event. Normally events are not accessible to derived classes, so we exposed a way to raise the event as necessary through this protected method.
OpenCore()
protected override void OpenCore()
Events
StreamLoading
This event allows you to pass in your own stream to represent the image.
public event EventHandler<StreamLoadingEventArgs> StreamLoading