Elements.pyECSS.System.CameraSystem

class Elements.pyECSS.System.CameraSystem(name=None, type=None, id=None, cameraComponent=None)[source]

System that operates on both BasicTransform Components as well as Camera Components For the BasicTransform ones, it calculates the Local2camera matrix. For the Camera Component it calculates the Root2camera matrix, which is a necessary component for the Local2camera, hence it needs to be calculated first: Ml2c = Mr2c * Ml2w * V Like that we can be having many camera and re-calculating all Ml2c transformations accordingly

Parameters

System ([type]) – [description]

Returns

[description]

Return type

[type]

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

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([name, type, id, cameraComponent])

Initialize self.

apply(Entity[, event])

method to be subclassed for behavioral or logic computation when visits Entities.

apply2BasicTransform(basicTransform[, event])

method to be subclassed for behavioral or logic computation when visits Components.

apply2Camera(cam)

method to be subclassed for behavioral or logic computation when visits Camera Components.

apply2GATransform(basicTransform[, event])

method to be subclassed for behavioral or logic computation when visits Components.

apply2ImGUIDecorator(imGUIDecorator[, event])

apply2RenderDecorator(renderDecorator[, event])

apply2RenderMesh(renderMesh[, event])

method to be subclassed for behavioral or logic computation when visits Components.

apply2RenderWindow(renderWindow[, event])

apply2SDLWindow(sdlWindow[, event])

apply2Shader(shader[, event])

apply2ShaderGLDecorator(shaderGLDecorator[, …])

apply2VertexArray(vertexArray[, event])

applyCamera2BasicTransform(basicTransform)

method to be subclassed for behavioral or logic computation when visits Components.

applyGravity(gravityComponent[, event])

applyRotation2BasicTransform(…[, event])

getClassName()

getRoot2Camera(camComp[, topComp])

Calculate the root to camera matrix

init()

method to be subclassed for behavioral or logic computation when visits Components of an EntityNode.

update()

method to be subclassed for behavioral or logic computation when visits Components of an EntityNode.

Attributes

id

Get Systems’s id

name

Get Systems’s name

priority

Get Systems’s priority

type

Get Systems’s type