Elements.pyGLV.GUI.Viewer.RenderDecorator

class Elements.pyGLV.GUI.Viewer.RenderDecorator(wrapee: Elements.pyGLV.GUI.Viewer.RenderWindow)[source]

Main Decorator class that wraps a RenderWindow so that all other Decorator classes can dynamically be adding layered functionality on top of the wrapee (RenderWindow) e.g. ImGUI widgets etc.

Parameters

RenderWindow ([type]) – [description]

__init__(wrapee: Elements.pyGLV.GUI.Viewer.RenderWindow)[source]

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

Methods

__init__(wrapee)

Initialize self.

accept(system[, event])

Accepts a class object to operate on the RenderWindow, based on the Visitor pattern.

cameraHandling(x, y, height, width)

createViewMatrix(eye, lookAt, upVector)

display()

Main decorator display method

display_post()

Post diplay method after all other display calls have been issued

event_input_process()

process SDL2 basic events and input

getClassName()

init()

[summary]

init_post()

Post init method this should be ctypiically alled AFTER all other GL contexts have been created, e.g.

on_mouse_motion(event, x, y, dx, dy)

Called when the mouse is moved.

on_mouse_press(event, x, y, button, dclick)

Called when mouse buttons are pressed.

resetAll()

shutdown()

[summary]

traverseCamera()

updateCamera(moveX, moveY, moveZ, rotateX, …)

Attributes

eventManager

Get RenderWindow’s eventManager

scene

Get RenderWindow’s Scene reference

wrapeeWindow