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 members and methods are only available for specific object types. The following members and methods are available:
General (available to all objects):
§ parent
§ show
§ type
§ delete()
§ flyTo()
§ volume
§ pause()
§ play()
Members
static description : String
Gets and sets the object's name in TE4W's sidebar.
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.
static properties : PropertiesObject
Gets and sets a PropertiesObject with properties and methods for a feature layers' features.
static show : Boolean
Gets and sets a Boolean that indicates whether the object is visible in the 3D Window.
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.
static timestamp : Number
Gets the timestamp when the object or layer was created, in milliseconds elapsed since January 1, 1970 00:00:00 UTC. This property is only valid for objects and layers created in TerraExplorer for Web GUI.
static type : String
Gets a string that determines the object type, e.g., “FeaturePoint”, “FeatureLine”, “FeaturePolygon”, “videoOnTerrain”, “holeOnTerrain”, “modifyTerrain”, “viewshed”, “distance”, “area”, “volume”, “mesh”, “pointCloud”.
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()
Deletes the object.
flyTo()
Flies to the object.
pause()
Pauses the videoOnTerrain object. This method is only valid for the object returned by the videoOnTerrain.create method.
play()
Plays the videoOnTerrain object. This property is only valid for the object returned by the videoOnTerrain.create method.
refresh()
Refreshes all loaded or created layers and objects.
setDefaultPivot()
Sets the point cloud object's pivot point to the default pivot in the loaded point cloud layer. This property is only valid for the object returned by the pointCloud.create method.
setPivot(point)
Sets the point cloud pivot. This property is only valid for the object returned by the pointCloud.create method.
Parameters
Name |
Type |
Description |
point |
Cartesian position. The altitude (z component) is absolute, i.e., the pivot point is placed at the specified altitude above the terrain database vertical datum base ellipsoid. |