@JsType(isNative=true, namespace="Cesium", name="Entity") public class Entity extends Object
Modifier and Type | Field and Description |
---|---|
TimeIntervalCollection |
availability
The availability, if any, associated with this object.
|
BillboardGraphics |
billboard
A billboard to associate with this entity.
|
BoxGraphics |
box
A box to associate with this entity.
|
CorridorGraphics |
corridor
A corridor to associate with this entity.
|
CylinderGraphics |
cylinder
A cylinder to associate with this entity.
|
Property |
description
A string Property specifying an HTML description for this entity.
|
EllipseGraphics |
ellipse
A ellipse to associate with this entity.
|
EllipsoidGraphics |
ellipsoid
A ellipsoid to associate with this entity.
|
EntityCollection |
entityCollection
Gets or sets the entity collection that this entity belongs to.
|
String |
id
A unique identifier for this object.
|
boolean |
isShowing
Gets whether this entity is being displayed, taking into account the visibility of any ancestor entities.
|
LabelGraphics |
label
A options.label to associate with this entity.
|
ModelGraphics |
model
A model to associate with this entity.
|
String |
name
A human readable name to display to users.
|
Property |
orientation
A Property specifying the entity orientation.
|
Entity |
parent
A parent entity to associate with this entity.
|
PathGraphics |
path
A path to associate with this entity.
|
PlaneGraphics |
plane
Gets or sets the plane.
|
PointGraphics |
point
A point to associate with this entity.
|
PolygonGraphics |
polygon
A polygon to associate with this entity.
|
PolylineGraphics |
polyline
A polyline to associate with this entity.
|
PolylineVolumeGraphics |
polylineVolume
A polylineVolume to associate with this entity.
|
PositionProperty |
position
A Property specifying the entity position.
|
String[] |
propertyNames
Gets the names of all properties registered on this instance.
|
RectangleGraphics |
rectangle
A rectangle to associate with this entity.
|
boolean |
show
A boolean value indicating if the entity and its children are displayed.
|
Property |
viewFrom
A suggested initial offset for viewing this object.
|
WallGraphics |
wall
A wall to associate with this entity.
|
Constructor and Description |
---|
Entity()
Entity instances aggregate multiple forms of visualization into a single high-level object.
|
Entity(EntityOptions options)
Entity instances aggregate multiple forms of visualization into a single high-level object.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String propertyName)
Adds a property to this object.
|
Matrix4 |
computeModelMatrix(JulianDate time)
Computes the model matrix for the entity's transform at specified time.
|
Matrix4 |
computeModelMatrix(JulianDate time,
Matrix4 result)
Computes the model matrix for the entity's transform at specified time.
|
Event |
definitionChanged()
Gets the event that is raised whenever a property or sub-property is changed or modified.
|
boolean |
isAvailable(JulianDate time)
Given a time, returns true if this object should have data during that time.
|
void |
merge(Entity source)
Assigns each unassigned property on this object to the value of the same property on the provided source object.
|
void |
removeProperty(String propertyName)
Removed a property previously added with addProperty.
|
static boolean |
supportsMaterialsforEntitiesOnTerrain(Scene scene)
Checks if the given Scene supports materials besides Color on Entities draped on terrain.
|
static boolean |
supportsPolylinesOnTerrain(Scene scene)
Checks if the given Scene supports polylines clamped to the ground..
|
@JsProperty public EntityCollection entityCollection
@JsProperty public boolean isShowing
@JsProperty public String id
@JsProperty public String name
@JsProperty public TimeIntervalCollection availability
@JsProperty public boolean show
@JsProperty public Property description
@JsProperty public PositionProperty position
@JsProperty public String[] propertyNames
@JsProperty public Property orientation
@JsProperty public Property viewFrom
@JsProperty public Entity parent
@JsProperty public BillboardGraphics billboard
@JsProperty public BoxGraphics box
@JsProperty public CorridorGraphics corridor
@JsProperty public CylinderGraphics cylinder
@JsProperty public EllipseGraphics ellipse
@JsProperty public EllipsoidGraphics ellipsoid
@JsProperty public LabelGraphics label
@JsProperty public ModelGraphics model
@JsProperty public PathGraphics path
@JsProperty public PlaneGraphics plane
@JsProperty public PointGraphics point
@JsProperty public PolygonGraphics polygon
@JsProperty public PolylineGraphics polyline
@JsProperty public PolylineVolumeGraphics polylineVolume
@JsProperty public RectangleGraphics rectangle
@JsProperty public WallGraphics wall
@JsConstructor public Entity()
@JsConstructor public Entity(EntityOptions options)
options
- EntityOptions
@JsProperty(name="definitionChanged") public Event definitionChanged()
@JsMethod public static boolean supportsMaterialsforEntitiesOnTerrain(Scene scene)
scene
- The current scene.@JsMethod public static boolean supportsPolylinesOnTerrain(Scene scene)
scene
- The current scene.@JsMethod public void addProperty(String propertyName)
definitionChanged()
and
composited with CompositeEntityCollection
propertyName
- The name of the property to add.@JsMethod public Matrix4 computeModelMatrix(JulianDate time)
time
- The time to retrieve model matrix for.@JsMethod public Matrix4 computeModelMatrix(JulianDate time, Matrix4 result)
time
- The time to retrieve model matrix for.result
- The object onto which to store the result.@JsMethod public boolean isAvailable(JulianDate time)
time
- The time to check availability for.@JsMethod public void merge(Entity source)
source
- The object to be merged into this object.@JsMethod public void removeProperty(String propertyName)
propertyName
- The name of the property to remove.Copyright © 2019. All rights reserved.