SpatialViewEntityCollection

open class SpatialViewEntityCollection : Collection<Entity>

A SpatialView needs a SpatialViewEntityCollection to manage entities.

Usually these entities are in a common layer of an entity tree.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val size: Int

The current size of the SpatialViewEntityCollection.

Functions

Link copied to clipboard
open fun add(entity: Entity): Boolean

Binds an entity to the SpatialViewEntityCollection.

Link copied to clipboard
open fun addAll(elements: Collection<Entity>): Boolean

Adds all the entities of a Collection to the SpatialViewEntityCollection.

Link copied to clipboard
open fun clear()

Clears all entities in the SpatialViewEntityCollection.

Link copied to clipboard
open operator override fun contains(element: Entity): Boolean

Checks if the SpatialViewEntityCollection contains an entity.

Link copied to clipboard
open override fun containsAll(elements: Collection<Entity>): Boolean

Checks if the SpatialViewEntityCollection contains all the entities of a Collection.

Link copied to clipboard
open override fun isEmpty(): Boolean

Checks if a SpatialViewEntityCollection is empty.

Link copied to clipboard
open operator override fun iterator(): Iterator<Entity>

Gets an Iterator of the SpatialViewEntityCollection.

Link copied to clipboard
open fun remove(entity: Entity): Boolean

Removes an entity from the SpatialViewEntityCollection.

Link copied to clipboard
open fun removeAll(elements: Collection<Entity>): Boolean

Removes all the entities of a Collection from the SpatialViewEntityCollection.

Link copied to clipboard
open fun retainAll(elements: Collection<Entity>): Boolean

Retains all the entities of a Collection in the SpatialViewEntityCollection.

Link copied to clipboard
open override fun toString(): String