SpaceEntity

new Cesium.SpaceEntity(options, cat)

Creates a new SpaceEntity instance using an OMM object (and optionally a CAT object).
Name Type Default Description
options Entity.ConstructorOptions Object describing initialization options
cat any null optional An optional instance of the Catalog (CATT) containing additional metadata.

Extends

Members

The availability, if any, associated with this object. If availability is undefined, it is assumed that this object's other properties will return valid data for any provided time. If availability exists, the objects other properties will only provide valid data if queried within the given interval.
Inherited From:
Gets or sets the billboard.
Inherited From:
Gets or sets the box.
Inherited From:
Gets or sets the corridor.
Inherited From:
Gets the current state of the coverage visibility.
Gets or sets the cylinder.
Inherited From:

readonly definitionChanged : Event

Gets the event that is raised whenever a property or sub-property is changed or modified.
Inherited From:
Gets or sets the description.
Inherited From:
Gets or sets the ellipse.
Inherited From:
Gets or sets the ellipsoid.
Inherited From:
Gets or sets the entity collection that this entity belongs to.
Inherited From:
Gets the unique ID associated with this object.
Inherited From:
Gets whether this entity is being displayed, taking into account the visibility of any ancestor entities.
Inherited From:
Gets or sets the label.
Inherited From:
Gets or sets the model.
Inherited From:

name : string|undefined

Gets or sets the name of the object. The name is intended for end-user consumption and does not need to be unique.
Inherited From:
Gets the current state of the orbit visibility.
Gets or sets the orientation in respect to Earth-fixed-Earth-centered (ECEF). Defaults to east-north-up at entity position.
Inherited From:
Gets or sets the parent object.
Inherited From:
Gets or sets the path.
Inherited From:
Gets or sets the plane.
Inherited From:
Gets or sets the point graphic.
Inherited From:
Gets or sets the polygon.
Inherited From:
Gets or sets the polyline.
Inherited From:
Gets or sets the polyline volume.
Inherited From:
Gets or sets the bag of arbitrary properties associated with this entity.
Inherited From:

propertyNames : Array.<string>

Gets the names of all properties registered on this instance.
Inherited From:
Gets or sets the rectangle.
Inherited From:
Gets or sets whether this entity should be displayed. When set to true, the entity is only displayed if the parent entity's show property is also true.
Inherited From:
Gets or sets the tileset.
Inherited From:
Gets or sets the entity's tracking reference frame.
Inherited From:
Demo:
Gets or sets the velocity of the space entity. The velocity is computed using the WasmPositionManager and can be retrieved in either the Fixed (FIXED) or Inertial (INERTIAL) reference frames. This property is read-only.
Properties:
Name Type Description
getValue function Gets the velocity in the fixed frame.
getValueInReferenceFrame function Gets the velocity in the specified reference frame.
Example:
// Get velocity in fixed frame
const velocityFixed = entity.velocity.getValue(time);

// Get velocity in inertial frame
const velocityInertial = entity.velocity.getValueInReferenceFrame(time, Cesium.ReferenceFrame.INERTIAL);
Gets or sets the suggested initial offset when tracking this object. The offset is typically defined in the east-north-up reference frame, but may be another frame depending on the object's velocity.
Inherited From:
Gets or sets the wall.
Inherited From:

Methods

static Cesium.SpaceEntity.getEntitiesByOrbitType(orbitType)Array

Retrieves an array of SpaceEntity objects that belong to a specific orbit type.
Name Type Description
orbitType OrbitType
Returns:
An array of SpaceEntity objects.
Example:
// Assuming instance of SpaceEntity class is spaceEntity
const leoEntities = spaceEntity.getEntitiesByOrbitType(OrbitType.LEO);

addProperty(propertyName)

Adds a property to this object. Once a property is added, it can be observed with Entity#definitionChanged and composited with CompositeEntityCollection
Name Type Description
propertyName string The name of the property to add.
Throws:
Inherited From:

computeModelMatrix(time, result, useOrientation)Matrix4

Computes the model matrix for the entity's transform at the specified time. Returns undefined if the position is undefined.
Name Type Default Description
time JulianDate The time to retrieve the model matrix for.
result Matrix4 optional The object onto which to store the result.
useOrientation boolean true optional Whether to include the entity's orientation in the model matrix calculation. If set to 'false', the calculation skips the entity orientation.
Returns:
The modified result parameter or a new Matrix4 instance if one was not provided. The result is undefined if the position is undefined.
Inherited From:

isAvailable(time)boolean

Given a time, returns true if this object should have data during that time.
Name Type Description
time JulianDate The time to check availability for.
Returns:
true if the object should have data during the provided time, false otherwise.
Inherited From:

async loadOMM(jsonOMM)Promise.<void>

Name Type Description
jsonOMM Object The OMM JSON object containing orbit data.
Returns:
A promise that resolves when the OMM data has been loaded.

async loadOMMs(ommArray)Promise.<void>

Name Type Description
ommArray Array.<Object> An array of OMM JSON objects containing orbit data.
Returns:
A promise that resolves when all OMM data has been loaded.
Assigns each unassigned property on this object to the value of the same property on the provided source object.
Name Type Description
source Entity The object to be merged into this object.
Inherited From:

removeProperty(propertyName)

Removed a property previously added with addProperty.
Name Type Description
propertyName string The name of the property to remove.
Throws:
Inherited From:
Updates the visibility and properties of the space entity's coverage graphics.
Name Type Description
options Object options for the coverage appearance.
Name Type Description
show boolean If true, makes the orbit visible.
Updates the visibility and properties of the space entity's orbit graphics.
Name Type Description
options Object options for the orbit's appearance.
Name Type Description
show boolean If true, makes the orbit visible.
material Material optional The material to use for the orbit path. Optional.
width number optional The width of the orbit path. Optional.
leadTime number optional The time ahead to show the orbit. Optional.
trailTime number optional The time behind to show the orbit. Optional.
resolution number optional The resolution of the orbit path. Optional.
referenceEntity Entity optional The reference entity used to define the VVLH frame for the orbit. Optional.

updateAdditiveOrientation(hprObj, timestamp)

Updates the orientation of the entity in an additive manner. The applied rotation is relative to the current orientation of the entity, treating the current axes as the zero state.
Name Type Description
hprObj HeadingPitchRoll The rotation to apply as a HeadingPitchRoll.
timestamp JulianDate optional Optional timestamp for which to update the orientation. If not provided, updates the first available orientation.
Throws:
  • DeveloperError : If the entity's orientation is of an unsupported type.
Inherited From:
Need help? [email protected]