[in, out] VARIANT – Allows defining the value of a specified parameter in the FLY file Project Settings.
Each parameter is accessed by a unique identification string. To set or get the value of a certain parameter, assign values to or from ITerraExplorer51.ProjectParam(“ParameterString”),
e.g., ITerraExplorer51.ProjectParam(“MaxSpeed”) = 300
The following table describes the supported parameter string values and the respective parameter value options:
paramName |
[In/Out] Type |
pVal |
Atmospheric Effects |
||
"FogColor" |
[in, out] long |
The color of the fog that covers the terrain in hexadecimal form: 0x00bbggrr. |
"SkyColor" |
[in, out] long |
The color of the sky in the hexadecimal form: 0x00bbggrr. |
"VisualRange" |
[in, out] double |
Distance to the horizon, in meters |
"FogStart" |
[in, out] double |
Distance, in meters, at which the fog starts |
"UseSunAsLightSource" |
[in, out] bool |
A Boolean that determines whether to use the sun as a light source. |
"DisplaySun" |
[in, out] bool |
A Boolean that determines whether the sun is displayed. |
"DisplaySunFlare" |
[in, out] bool |
A Boolean that determines whether the sun's flare is displayed. |
"SunAndMoonUseFixedLocalTime " |
[in, out] bool |
A Boolean that determines whether the currently used date and time value is defined in local time (TRUE) or global date and time (FALSE). |
"SunAndMoonFixedLocalTime " |
[in, out] VT_DATE |
Date (Javascript) or DateTime (C#) object that represents the currently used local time . |
"SunAndMoonTime" |
[in, out] VT_DATE |
Date (Javascript) or DateTime (C#) object that represents the currently used global date and time . |
"TimeZoneListXML" |
[out] BSTR |
An XML string that defines the available time zones in the operating system. For example: <SELECT ID="TimeZoneList" SIZE="XX"> <OPTION VALUE ="Alaska Standart Time">(GMT-09:00) Alaska<OPTION> . . . <SELECT> |
"SunAndMoonTimeZoneDisplayName" |
[out] BSTR |
A string description of the currently used time zone, e.g., "(GMT-09:00) Alaska". The string corresponds to the value of the OPTION node in the XML returned from "TimeZoneListXML” |
"SunAndMoonTimeZoneKey" |
[in, out] BSTR |
A string key of the used time zone, e.g., "Alaska Standart Time". The key can be one of the VALUE attributes of an OPTION node in the XML returned from "TimeZoneListXML" |
Flight Model |
||
"MaxSpeed" |
[in, out] long |
Maximum speed in meters per second |
Note: Only some of the Project Settings parameters are exposed through this property. For other settings displayed in the Project Settings dialog box, use TerraExplorer Pro and save a .FLY file with the parameters.
See: “Setting the Project” chapter in the User Manual for additional information;
not supported by TerraExplorer Viewer.