Entities¶
Entities and their graphics types.
_base
¶
Base entity classes for cesiumkit.
EntityGraphics
¶
Bases: CesiumBase
Base class for all entity graphics types (PointGraphics, PolygonGraphics, etc.).
Subclasses define the specific properties for each graphics type. Serializes as a plain JS object literal (not a constructor call) because CesiumJS Entity.add() accepts plain option objects for graphics.
Entity
¶
EntityCollection
¶
A collection of Entity objects, similar to CesiumJS EntityCollection.
add(entity=None, **kwargs)
¶
Add an entity to the collection.
Can pass an Entity instance or keyword arguments to construct one.
remove(entity)
¶
Remove an entity from the collection. Returns True if found.
remove_all()
¶
Remove all entities from the collection.
get_by_id(id)
¶
Find an entity by its id.
polygon
¶
Polygon graphics for cesiumkit.
PolygonHierarchy
¶
Bases: CesiumBase
A polygon defined by an outer boundary and optional holes.
PolygonGraphics
¶
Bases: EntityGraphics
A polygon shape on or above the surface.
to_js()
¶
Serialize with special handling for list-based hierarchy.
plane
¶
Plane graphics for cesiumkit — flat surfaces in 3D space.
Plane
¶
Bases: CesiumBase
A plane represented by a normal vector and signed distance.
PlaneGraphics
¶
Bases: EntityGraphics
A plane (flat surface) positioned in 3D space.
Useful for flight paths, range rings, radar coverage, and UI panels rendered in the 3D scene.
particle
¶
Scene-level Cesium particle systems.
ParticleSystem
¶
Bases: CesiumBase
A particle primitive for smoke, fire, weather, and similar effects.
Cesium particle systems are scene primitives rather than entity graphics.
Add one with :meth:cesiumkit.Viewer.add_particle_system.
Planes¶
PlaneGraphics is a normal entity graphic. Construct its geometric plane from
a normal vector and signed distance:
plane = cesiumkit.Plane(normal=cesiumkit.Cartesian3(x=0, y=0, z=1), distance=0)
entity = cesiumkit.Entity(
plane=cesiumkit.PlaneGraphics(
plane=plane,
dimensions=cesiumkit.Cartesian2(x=100, y=100),
material=cesiumkit.Color.RED,
)
)
Particle systems¶
Cesium particle systems are scene primitives, not entity graphics: