An entity instance class that aggregates multiple visualization objects into a single high-level object.
Entities can be manually created and added to
Viewer#entities
in, or by the data sourceļ¼Such as CzmlDataSource
andGeoJsonDataSource
)generate.
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Objects have the following properties:
|
Members
-
availability : TimeIntervalCollection
-
object availability. If availability is undefined, it is assumed that the object's other properties will return valid data at any time. Other properties of the object will only provide valid data for the interval given by the query if there is availability.
-
billboard : BillboardGraphics
-
Gets or sets the billboard object.
-
box : BoxGraphics
-
Gets or sets the cuboid object.
-
corridor : CorridorGraphics
-
Gets or sets the corridor object.
-
cylinder : CylinderGraphics
-
Gets or sets the cylinder object.
-
readonlydefinitionChanged : Event
-
Gets the event triggered when a property or sub-property is changed or modified.
-
description : Property
-
Get or set the entity description.
-
ellipse : EllipseGraphics
-
Gets or sets the ellipse object.
-
ellipsoid : EllipsoidGraphics
-
Gets or sets the ellipsoid object.
-
entityCollection : EntityCollection
-
Gets or sets the entity collection to which the current entity belongs.
-
Get the unique identifier for the entity.
-
Gets the visibility of this entity, taking into account the entity collection it belongs to as well as the visibility of the parent entity.
-
label : LabelGraphics
-
Get or set the label.
-
model : ModelGraphics
-
Get or set the model object.
-
Gets or sets the name of the object. The name is for end user use and does not need to be unique.
-
orientation : Property
-
Gets or sets the orientation of the entity.
-
parent : Entity
-
Gets or sets the entity's parent object.
-
path : PathGraphics
-
Gets or sets the path object.
-
point : PointGraphics
-
Gets or sets the point graphics object.
-
polygon : PolygonGraphics
-
Gets or sets the polygon object.
-
polyline : PolylineGraphics
-
Gets or sets the polyline object.
-
polylineVolume : PolylineVolumeGraphics
-
Gets or sets the polyline cylinder object.
-
position : PositionProperty
-
Gets or sets the position of the entity.
-
properties : PropertyBag
-
Get or set any property bag associated with the entity object.
-
Get all attribute names of the instance object.
-
rectangle : RectangleGraphics
-
Gets or sets the rectangle object.
-
Get or set the visibility of the entity object. If set to true, this entity will only be displayed if its parent entity's show property is also set to true.
-
viewFrom : Property
-
Gets or sets the suggested initial offset for viewing this object with the camera. Offsets are defined in the "East-North-Up" coordinate system.
-
wall : WallGraphics
-
Get or set the fence object.
Methods
-
Add a property to the entity.
Name Type Description propertyName
String The name of the property to be added. Throws:
-
DeveloperError : "propertyName" is reserved.
-
DeveloperError : "propertyName" is already registered.
-
-
The specified time, returns true if the object contains data within the specified time.
Name Type Description time
JulianDate Time to check availability. Returns:
Returns true if the object contains data for the specified time, false otherwise. -
Assigns each unassigned property of the object the same property value as the source object.
Name Type Description source
Entity The object to be merged into the target object. -
Removes the property name previously added by the addProperty function.
Name Type Description propertyName
String The name of the property to remove. Throws:
-
DeveloperError : "propertyName" is reserved.
-
DeveloperError : "propertyName" is already registered.
-
-
Set the Entity polygon offset (currently only supports faces).
Name Type Description polyOffsetFactor
Number Offset constant for polygons. When the value is positive, it means that the polygon is offset towards the outside of the screen, and when it is negative, it means that it is offset towards the inside of the screen polyOffsetUnits
Number Polygon scaling factor. The polygon scaling factor and the offset constant jointly determine the offset of the polygon object in the depth direction of the screen, which can be used to solve the problem of flickering when polygons overlap.