ITerrainBuilding80

This interface gives the client access to the building object.

 

 

Properties

 

Action

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

Attachment

An IAttachment80 representing the attachment behavior of the building.

EnableDraw

Gets and sets a Boolean that determines whether changes to the building can be redrawn in the 3D Window.

Geometry

An IGeometry representing geometric properties and behavior of the building.

Height

Gets and sets the height of the building.

ID

Gets the ID of the object. (Inherited from ITerraExplorerObject80)

Message

An IMessageObject80 representing the message object assigned to the building.

ObjectType

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

Position

An IPosition80 representing the position and orientation of the object on the terrain.

Roof

An IRoofFace80 representing the building’s roof face.

SaveInFlyFile

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

Sides

An IBuildingSides80 representing the sides of the building.

Style

Gets and sets the building type (stretch terrain or polygon).

Terrain

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

TerrainTextureOffsetX

Gets and sets the offset on the x-axis between the physical location of the building and the outline of the roof as it appears in the terrain image

TerrainTextureOffsetY

Gets and sets the offset on the y-axis between the physical location of the building and the outline of the roof as it appears in the terrain image

TimeSpan

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

Tooltip

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

TreeItem

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

Visibility

An IVisibility80 representing the visibility of the object at different distances.

 

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)

EnableDraw

Gets and sets a Boolean that determines whether changes to the building can be redrawn in the 3D Window.

 

JavaScript

 

 

 

EnableDraw

 

C#

 

 

 

bool EnableDraw { get; set; }

 

C++

 

 

 

HRESULT EnableDraw([out, retval] VARIANT_BOOL* pVal)

HRESULT EnableDraw([in] VARIANT_BOOL pVal)

Height

Gets and sets the height of the building.

 

JavaScript

 

 

 

Height

 

C#

 

 

 

double Height { get; set; }

 

C++

 

 

 

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

HRESULT Height([in] double pVal)

Style

Gets and sets an enum that determines the building type. The following are the possible values:

§   BS_STRETCH_TERRAIN = 0
The building’s roof has the same texture and coloring as the terrain. The building appears essentially as if the terrain were stretched upwards and outwards in the shape of a building.

§   BS_POLYGONS = 1
The building is created using 3D polygons. Its building faces can be assigned fill color and texture.

 

JavaScript

 

 

 

Style

 

C#

 

 

 

BuildingStyleCode Style { get; set; }

 

C++

 

 

 

HRESULT Style([out, retval] BuildingStyleCode* pVal)

HRESULT Style([in] BuildingStyleCode pVal)

TerrainTextureOffsetX

Gets and sets the offset on the x-axis between the physical location of the building and the outline of the roof as it appears in the terrain image.

This offset is used to apply terrain texture for the roof and the walls.

Note:    Pictures of buildings that are taken from the same angle have the same TerrainTextureOffset to Height ratio.

 

JavaScript

 

 

 

TerrainTextureOffsetX

 

C#

 

 

 

double TerrainTextureOffsetX { get; set; }

 

C++

 

 

 

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

HRESULT TerrainTextureOffsetX([in] double pVal)

TerrainTextureOffsetY

Gets and sets the offset on the y-axis between the physical location of the building and the outline of the roof as it appears in the terrain image.

This offset is used to apply terrain texture for the roof and the walls.

Note: Pictures of buildings that are taken from the same angle have the same TerrainTextureOffset to Height ratio.

 

JavaScript

 

 

 

TerrainTextureOffsetY

 

C#

 

 

 

double TerrainTextureOffsetY { get; set; }

 

C++

 

 

 

 

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

HRESULT TerrainTextureOffsetY([in] double pVal)