TerraExplorerObject

The TerraExplorerObject object gives access to the objects returned when any layer or object is created or loaded into the project, so that you can set/modify certain properties or perform basic methods on the object, such as fly to or delete. Some of its methods are only available for the object returned by the videoOnTerrain.create method. The following members and methods are available:

§  description

§  parent

§  show

§  showProjector

§  timestamp

§  type

§  volume

§  delete()

§  flyTo()

§  pause()

§  play()

§  refresh()

Members

description

static description :String

Gets and sets the object’s name in TE4W’s sidebar.

parent

static parent :Array.<   TerraExplorerObject >

Returns an array of TerraExplorerObject containing all the objects in the parent object.
E.g., "TerraExplorer.analysis.distance.items[0].parent" will return a list of all the objects in the distance object’s parent object, i.e., the analysis object.

show

static show : Boolean

Gets and sets a Boolean that indicates whether the object is visible in the 3D Window.

showProjector

static showProjector : Boolean

Gets and sets a Boolean that indicates whether the projector pyramid object is displayed in the 3D Window. This property is only valid for the object returned by the videoOnTerrain.create method.

timestamp

static timestamp :Number

Gets the time in milliseconds elapsed since January 1, 1970 00:00:00 UTC.  

type

static type :String

Gets a string that determines the object type, e.g. “FeaturePoint”, “FeatureLine”, “FeaturePolygon”, “videoOnTerrain”.

volume

static volume :Number

Gets and sets a number that determines the decibel level of a videoOnTerrain object. This property is only valid for the object returned by the videoOnTerrain.create method.

Methods

delete

delete()     

Deletes the object.

flyTo

flyTo()

Flies to the object.

pause

pause() 

Pauses the videoOnTerrain object. This method is only valid for the object returned by the videoOnTerrain.create method.

play

play()

Plays the videoOnTerrain object. This property is only valid for the object returned by the videoOnTerrain.create method.

refresh

refresh()

Refreshes all loaded or created layers and objects.