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

__init__(name=None, type=None, id=None)None[source]

Initializes a SimpleCamera 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

camera

eventManager

Get the ECSSManager of the component.

id

Get the ID of the component.

name

Get the name of the component.

parent

Get the parent of the component.

type

Get the type of the component.

worldManager

Get Component’s ECSSManager