Class: ARCHline.Entities
Overview
This class serves as a container for the entities.
Instance Property Summary # collapse
-
#empty ⇒ { get; }
Whether the entity container is empty.
-
#size ⇒ { get; }
The size of the the entity container.
↑ #empty ⇒ { get; }
Whether the entity container is empty.
↑ #size ⇒ { get; }
The size of the the entity container.
Instance Method Summary # collapse
-
#Entity()
-
#add(entity)
Adds an entity to the entity container.
-
#add_circle(center, radius) ⇒ ARCHline.Entity
Creates a circle.
-
#add_observer(observer) ⇒ Boolean
Adds an entity observer to the observer manager.
-
#clear()
Clears the the entity container.
-
#foreach(function)
Executes a function for each entity.
-
#get(index) ⇒ ARCHline.Entity
Gets the entity at the specified index from the entity container.
-
#redraw()
Redraws the entities of this container.
-
#remove_observer(observer) ⇒ Boolean
Removes an entity observer from the observer manager.
↑ #Entity()
↑ #add(entity)
Adds an entity to the entity container.
↑ #add_circle(center, radius) ⇒ ARCHline.Entity
Creates a circle.
↑ #add_observer(observer) ⇒ Boolean
Adds an entity observer to the observer manager.
↑ #clear()
Clears the the entity container.
↑ #foreach(function)
Executes a function for each entity.
The execution can be interrupted by throwing an error.
↑ #get(index) ⇒ ARCHline.Entity
Gets the entity at the specified index from the entity container.
Throws an error if the specified entity is not found.
↑ #redraw()
Redraws the entities of this container.
↑ #remove_observer(observer) ⇒ Boolean
Removes an entity observer from the observer manager.
Comments
0 comments
Please sign in to leave a comment.