Procedure EntityAttributes

Parent Previous Next

Description: Changes attributes of an entity in TerrainView™. All fields are optional, except ID. Some attributes are specific to 3D object type entities and some to POI type entities.

Struct:

Field Name

O

Type

Description

ID


string

Entity identifier.

Name

X

string

Name of the entity. Will also be displayed in TerrainView™ as POI text (for POIs).

Group

X

string

Group name. Will be displayed in TerrainView™.

Description

X

string

Description of the entity (line feed -> new line).

Visible

X

boolean

If the entity is generally visible.

VisibleDistance

X

double

Distance from which the entity is still visible.

3D object type specific

Collidable

X

boolean

Sets the Collidable flag for the 3D object.

DoubleSided

X

boolean

Sets the DoubleSided flag for the 3D object.

POI type specific

POIType

X

int (i4)

0 = Text / 1 = Billboard vertical / 2 = Billboard camera faced

Hyperlink

X

string

URL or filename to open when clicked on the POI.

UseInfoBoard

X

boolean

Whether or not the Hyperlink should be opened in an integrated "InfoBoard" (instead of opening it in an external application).

BillboardScale

X

double

Scaling factor for the billboard. If the scale is 1.0, 1 pixel of the billboard will be 1x1 meters big.

ShowName

X

boolean

Whether or not the name of the POI should be visible for billboard POIs.

NameOffset

X

double

Vertical distance from POI center to the name.

Opacity

X

double

Opacity of the POI from 0.0 – 1.0

FontName

X

string

The name of the font to use for the POI name text. If the font is not available on the host computer, another font will be selected automatically.

FontStyle

X

int (i4)

0 = normal / 1 = bold / 2 = italic / 3 = bold+italic

FontColor

X

double[3]

The color of the name text in the order RGB, each component ranges from 0.0 to 1.0.

FontSize

X

double

The vertical size of the name text in distance units.

DecorationLineEnabled

X

boolean

Enables a vertical line below the POI.

DecorationLineColor

X

double[4]

The color of the vertical line in the order RGBA, each component ranges from 0.0 to 1.0.

POICameraPosition

X

double[3]

The position of the camera for this POI.

POICameraHPR

X

double[3]

The heading, pitch and roll of the camera for this POI.