Class HorizonData
Namespace: Scripting
Syntax
public class HorizonData
Constructors
HorizonData()
Creates an instance of the HorizonData class.
Declaration
public HorizonData()
Properties
AzimuthVsAltitude
Declaration
public IList<AzimuthVsAltitude> AzimuthVsAltitude { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<AzimuthVsAltitude> |
DisplayName
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HorizonFilePath
Declaration
public string HorizonFilePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(HorizonData)
Tests a HorizonData against this current HorizonData for equality.
Declaration
public bool Equals(HorizonData val)
Parameters
Type | Name | Description |
---|---|---|
HorizonData | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current HorizonData for equality.
Declaration
public override bool Equals(object toCompare)
Parameters
Type | Name | Description |
---|---|---|
System.Object | toCompare |
Returns
Type | Description |
---|---|
System.Boolean | True if object is equal otherwise false is returned. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this object. |
Overrides
System.Object.GetHashCode()
ReadPVsystHorizonFile(String, Boolean)
Loads horizon data from a PVsyst horizon file.
Declaration
public static HorizonData ReadPVsystHorizonFile(string filePath, bool isNorthernHemisphere)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The file path of the file to load. |
System.Boolean | isNorthernHemisphere |
Returns
Type | Description |
---|---|
HorizonData |
Operators
Equality(HorizonData, HorizonData)
Tests a HorizonData against this current HorizonData for equality.
Declaration
public static bool operator ==(HorizonData a, HorizonData b)
Parameters
Type | Name | Description |
---|---|---|
HorizonData | a | |
HorizonData | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(HorizonData, HorizonData)
Tests a HorizonData against this current HorizonData for inequality.
Declaration
public static bool operator !=(HorizonData a, HorizonData b)
Parameters
Type | Name | Description |
---|---|---|
HorizonData | a | |
HorizonData | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |