ITerrainBuilding81 

This interface gives the client access to the building object.

 

 

Properties

 

Action

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

Attachment

An IAttachment81 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 ITerraExplorerObject81)

Message

An IMessageObject81 representing the message object assigned to the building.

ObjectType

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

Position

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

Roof

An IRoofFace81 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 ITerraExplorerObject81)

Sides

An IBuildingSides81 representing the sides of the building.

Style

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

Terrain

An ITerrainObject81 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 ITimeSpan81 representing the timespan in which the object is visible on the terrain.

Tooltip

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

TreeItem

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

Visibility

An IVisibility81 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 ITerraExplorerObject81)

GetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject81)

SetClientData

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

SetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject81)

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)