Elements.pyECSS.ECSSManager.ECSSManager

class Elements.pyECSS.ECSSManager.ECSSManager[source]

Singleton Manager class to provide factory creation methods for all Entities, Components, Systems, as an alternative way and hide the scenegraph complexity.

__init__()[source]

Construct initial data structures for scenegraph elements

Methods

__init__()

Construct initial data structures for scenegraph elements

addComponent(entity, component)

Adds a component to an Entity in a scenegraph and in the ECSS data structures

addEntityChild(entity_parent, entity_child)

Adds a child Enity to a parent one and thus establishes a hierarchy in the underlying scenegraph.

createEntity(entity)

Creates an Entity in the underlying scenegraph and adds it in the ECSS data structures.

createIterator(entity[, dfs])

Creates and returns a scenegraph traversal node iterator

createSystem(system)

Creates a System and adds it in the ECSS data structures

print()

pretty print the contents of the ECSS

traverse_visit(system, entity[, dfs])

Traverse whole scenegraph by iterating every Entity/Component and calling a specific System on each different element.

traverse_visit_pre_camera(camUpdate, camera)

Specifically run a CameraSystem on a Camera Component attached in a scenecegraph, in order to calculate the MR2C root2camera matrix that is an essential part of the local2camera matrix.

Attributes

cameras

components

entities

entities_components

eventManager

Get ECSS’s EventManager

root

Get ECSS’s root node

systems