ISlopeMap80 

This interface gives the client access to the slope map object. A slope map shows degree (steepness) and/or aspect (direction) of the terrain by coloring the terrain according to degree of slope, and displaying arrows indicating the direction of the slope.

 

 

Properties

 

Action

An IAction80 representing the operation that takes place when the object is clicked in the Project Tree.

ArrowColor

An IColor80 representing the color of the slope arrows.

Attachment

An IAttachment80 representing the attachment behavior of the slope map.

Bottom

Gets and sets the y-coordinate of the bottom-right corner of the coverage rectangle.

CoverageArea

Gets and sets an enum that determines the coverage area of the slope map.

Depth

The slope map depth (length), in the units set by ISGWorld.SetOptionParam.

DisplayStyle

Gets and sets an enum that determines how the slope map is displayed.

ID

The ID of the slope map object. (Inherited from ITerraExplorerObject80)

Left

Gets and sets the x-coordinate of the top-left corner of the rectangle that defines the coverage area.

Message

An IMessageObject80 representing the message object assigned to the slope map.

ObjectType

Gets an enum that identifies the type of the object. (Inherited from ITerraExplorerObject80)

Opacity

Gets and sets the opacity value of the slope map.

PaletteID

Gets and sets the GUID for the slope map’s palette.

Position

An IPosition80 representing the position and orientation of the slope map on the terrain.

Right

Gets and sets the x-coordinate of the bottom-right corner of the rectangle that defines the coverage area.

SaveInFlyFile

Gets and sets a Boolean that determines whether the slope map is saved in the Fly file. (Inherited from ITerraExplorerObject80)

Terrain

An ITerrainObject80 representing terrain properties including draw order and ground object status.

Timespan

An ITimeSpan80 representing the timespan in which the slope map is visible on the terrain.

Tooltip

An ITooltip80 representing the tooltip that displays when a mouse cursor is placed over the slope map in the 3D Window.

Top

Gets and sets the y-coordinate of the top-left corner of the coverage area rectangle.

TreeItem

An ITreeItem80 representing details about the representation of the slope map in the Project Tree.

Visibility

An IVisibility80 representing the visibility of the slope map at different distances.

Width

Gets and sets the width of the CoverageArea rectangle, in the units set by ISGWorld.SetOptionParam.

 

Methods

 

GetClientData

Gets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject80)

GetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject80)

SetClientData

Sets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject80)

SetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject80)

 

Bottom

Gets and sets the y-coordinate of the bottom-right corner of the rectangle that defines the coverage area of the slope map. This property only applies when CoverageArea is set to CA_RECTANGLE.

 

JavaScript

 

 

 

Bottom

 

C#

 

 

 

double Bottom { get; set; }

 

C++

 

 

 

HRESULT Bottom([out, retval] double* pVal)

HRESULT Bottom([in] double pVal)

 

CoverageArea

Gets and sets an enum that determines the coverage area of the slope map. The following are the possible values:

§   CA_RECTANGLE =  0
Applies the slope map to a rectangular area based on the Top, Bottom, Left, and Right properties.

§   CA_ENTIRE_TERRAIN = 1
Applies the slope map to the entire terrain.

 

JavaScript

 

 

 

CoverageArea

 

C#

 

 

 

CoverageArea CoverageArea { get; set; }

 

C++

 

 

 

HRESULT CoverageArea([out, retval] CoverageArea* pVal)

HRESULT CoverageArea([in] CoverageArea pVal)

 

Depth

Gets and sets the slope map depth (length), in the units set by ISGWorld.SetOptionParam. This property only applies when CoverageArea is set to CA_RECTANGLE.

 

JavaScript

 

 

 

Depth

 

C#

 

 

 

double Depth { get; set; }

 

C++

 

 

 

HRESULT Depth([out, retval] double* pVal)

HRESULT Depth([in] double pVal)

DisplayStyle

Gets and sets an enum that determines how the slope map is displayed. The following are the possible values:

§   CDS_SLOPE_STYLE_DEFAULT = -1
Default

§   CDS_SLOPE_STYLE_DIRECTION = 0
Display arrows on the terrain indicating the direction of the slope.

§   CDS_SLOPE_STYLE_COLORS = 1
Displays palette colors on the terrain according to degree of slope.

§   CDS_SLOPE_STYLE_DIRECTION_AND_COLORS = 2
Display both slope colors and arrows indicating slope direction.

 

JavaScript

 

 

 

DisplayStyle

 

C#

 

 

 

ContourDisplayStyle DisplayStyle { get; set; }

 

C++

 

 

 

HRESULT DisplayStyle([out, retval] SlopeDisplayStyle* pVal);

HRESULT DisplayStyle([in] SlopeDisplayStyle pVal);

 

Left

Gets and sets the x-coordinate of the top-left corner of the rectangle that defines the coverage area of the slope map. This property only applies when CoverageArea is set to CA_RECTANGLE.

 

JavaScript

 

 

 

Left

 

C#

 

 

 

double Left { get; set; }

 

C++

 

 

 

HRESULT Left([out, retval] double* pVal)

HRESULT Left([in] double pVal)

Opacity

Gets and sets the opacity value of the slope map. The opacity can be any value between 0, for transparent, and 1 for opaque.  

 

JavaScript

 

 

 

Opacity

 

C#

 

 

 

double Opacity { get; set; }

 

C++

 

 

 

HRESULT Opacity([out, retval] double* Opacity)

HRESULT Opacity([in] double Opacity)

 

PaletteID

Gets and sets the GUID for the palette. GUIDs are listed in the palette XMLs found in the Pseudo directory, which is located under the [TerraExplorer installation]\Lang\1033 folder and under %APPDATA%\Skyline\TerraExplorer.

Note:    1033 is the English language directory. If you are running TerraExplorer in a different language, the Pseudo folder will be located under your language directory.

This property is applied only when the DisplayStyle property is set to CDS_SLOPE_STYLE_COLORS or CDS_SLOPE_STYLE_DIRECTION_AND_COLORS.

 

JavaScript

 

 

 

PaletteID

 

C#

 

 

 

string PaletteID { get; set; }

 

C++

 

 

 

HRESULT PaletteID([out, retval] BSTR* pVal)

HRESULT PaletteID([in] BSTR pVal)

 

Right

Gets and sets the x-coordinate of the bottom-right corner of the rectangle that defines the coverage area of the slope map. This property only applies when CoverageArea is set to CA_RECTANGLE.

 

JavaScript

 

 

 

Right

 

C#

 

 

 

double Right { get; set; }

 

C++

 

 

 

HRESULT Right([out, retval] double* pVal)

HRESULT Right([in] double pVal)

Top

Gets and sets the y-coordinate of the top-left corner of the rectangle that defines the coverage area of the slope map. This property only applies when CoverageArea is set to CA_RECTANGLE.

 

JavaScript

 

 

 

Top

 

C#

 

 

 

double Top { get; set; }

 

C++

 

 

 

HRESULT Top([out, retval] double* pVal)

HRESULT Top([in] double pVal)

 

Width

Gets and sets the rectangle width, in the units set by ISGWorld.SetOptionParam. This property only applies when CoverageArea is set to “Rectangle.”

 

JavaScript

 

 

 

Width

 

C#

 

 

 

double Width { get; set; }

 

C++

 

 

 

 

HRESULT Width([out, retval] double* pVal)

HRESULT Width([in] double pVal)