Elements.pyGLV.GL.SimpleCamera.SimpleCamera¶
- class Elements.pyGLV.GL.SimpleCamera.SimpleCamera(name=None, type=None, id=None)[source]¶
This is a Simple Camera Class, used to store a Camera Entity
Methods
__init__([name, type, id])Initializes a SimpleCamera Entity
accept(system)Accepts a class object to operate on the Component, based on the Visitor pattern.
add(object)Add a Component object to the children of this Component.
drawSelfGui(imgui)Describes how the simple camera is drawn in the imgui ECCS Tree
getChild(index)Get the child Component object at the given index.
getChildByType(type)getClassName()Get the name of this Component class.
getNumberOfChildren()Get the number of child Component objects for this Component.
getParent()init()abstract method to be subclassed for extra initialisation
isEntity()print()Print out contents of Entity for Debug purposes only
remove(object)Removes a Component object to the children of this Component.
transform()Sample transform() only for subclassing here and debug purposes
update(**kwargs)method to be subclassed for debuging purposes only, in case we need some behavioral or logic computation within the Component.
Attributes
cameraeventManagerGet the ECSSManager of the component.
idGet the ID of the component.
nameGet the name of the component.
parentGet the parent of the component.
typeGet the type of the component.
worldManagerGet Component’s ECSSManager