Allows defining the value of a specified parameter in the TerraExplorer options. Each parameter is accessed by a unique identification string. Changes are applied to the currently open FLY project, but are not saved when the project or TerraExplorer is closed. These changes reflect in the 3D Window, but not in the TerraExplorer’s options dialog box.
The following table describes the supported parameter string values and the respective parameter value options:
paramName |
Type |
paramVal/pVal |
General |
||
"TerrainCacheSize" |
[in, out] int |
The size of the terrain cache. |
"ModelsCacheSize " |
[in, out] int |
The size of the models’ cache. |
“DefaultTerrainDatabase” |
[in, out] BSTR |
The default terrain database to use when directly opening a KML or KMZ file. Only Fly, KML, KMZ, MPT, and TBP files can be used. |
“SGServicesURL” |
[in, out] BSTR |
The OSM Server path. The OSM server path is a JSON file that contain all OSM’s. The default path is : https://www.skylinesoft.com/Skylineglobe/layers/osm.json |
“PyramidImageFormat” |
[in, out] int |
Select the image pyramid format. Use any of the following values: § -1 = None § 1 = MPT JPEG v3 § 4 = MPT PNG 24 § 6 = Uncompressed |
“PyramidElevationFormat” |
[in, out] int |
Select the elevation pyramid format. Use any of the following values: § -1 = None § 101 = MPT JPEG v3 § 6 = Uncompressed MPU § 105 = MPT PNG 16.8 |
Graphics |
||
“SSAOEnable” |
[in, out] int |
Use either of the following values: § 0 = Disabled § 1 = Enabled |
"UseTerrainFadeIfAvailable" |
[in, out] bool |
A Boolean that determines whether terrain fade is activated. |
"TerrainModelQuality" |
[in, out] BSTR |
Select the resolution of the polygonal terrain model. Use any of the following values: § 0 = "Normal" § 1 = "High" § 2 = "Best" |
“EnhanceColorSaturation” |
[in, out] int |
Use either of the following values: § 0 = Disabled § 1 = Enabled |
“ColorSaturationValue” |
[in, out] int |
Enter a value from -100 to 100. |
"GlobalShadowColor" |
[in, out] long |
The color of the global shadow in hexadecimal form: 0xaabbggrr. |
“SelectionShadowColor” |
[in, out] long |
The color of the selection shadow in hexadecimal form: 0xaabbggrr. |
"OptimizeShadowAndViewshed" |
[in, out] bool |
A Boolean that determines whether shadow and viewshed display should be optimized. |
Navigation |
||
"TiltAffectsAltitude" |
[in, out] bool |
A Boolean that determines whether the plane tilt affects the altitude. |
View |
||
"Speed" |
[in, out] int |
Select the speed display units. Use any of the following values: o 0 = Km/h o 1 = Mph o 2 = Knots |
"AltitudeAndDistance" |
[in, out] int |
Select the altitude and distance display units. Use any of the following values: o 0 = Meters o 1 = Feet |
"AltitudeType" |
[in, out] int |
Select the Altitude Type display units. Use any of the following values: o 0 = Above Ground Level (AGL) o 1 = Absolute Values |
"LatLongCoordinates" |
[in, out] int |
Select the Lat-Long Coordinates display units. Use any of the following values: o 0 = Decimal Degrees o 1 = Degrees, Minutes, Seconds |
Screen Overlay |
||
“UseSimplifiedNavigationControl” |
[in, out] int |
Select the type of navigation controls to display: o 0 = Navigation Control with Level Indicator o 1 = Simplified Navigation Control |
"HeadUpDisplay"
|
[in, out] int |
Determines the Head Up Display. Use any combination of the following flags: § HUD_LAYER_NONE = 0 § HUD_LAYER_ACTIVE_ARROWS = 1 § HUD_LAYER_CENTER_SIGN = 2 § HUD_LAYER_TEXT_DATA = 4 § HUD_LAYER_COMPASS = 8 § HUD_LAYER_GRAPHIC_1 = 16 § HUD_LAYER_PAN_BARS = 32 § HUD_LAYER_DATE_TIME = 64 § HUD_LAYER_SCALE_BAR = 128 § HUD_LAYER_ZOOM_CONTROL = 256 |
"HudColor" |
[in, out] long |
The color of the HUD in the hexadecimal form: 0x00bbggrr. |
Note: Only some of the TerraExplorer Options parameters are exposed through this property. For other options, use the Settings dialog box. See: “Using TerraExplorer Options” chapter in the User Manual for additional information.
JavaScript |
|
SetOptionParam( paramName, paramVal) |
C# |
|
void SetOptionParam( string paramName, object paramVal) |
C++ |
|
HRESULT SetOptionParam( BSTR paramName, VARIANT paramVal) |
Parameters
paramName
The name of the parameter whose value is being set.
paramVal
The parameter value that should be set.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.