src.UI.Renderer2D module

class src.UI.Renderer2D.Renderer2D(pointRange)

Bases: src.UI.Renderer.Renderer

The visualiser which renderes all the points

Parameters

Renderer (Renderer) – The visualier interface

addPoints(points)

Add a list of points to the visualier

Parameters

points ([points]) – List of points

getWidget()

So that the provee object (main) can pass the widget to the UI

Returns

The visualiser widget

Return type

QWidget

removeAllPoints()

Remove all points (TODO We can probably use openGLWidget.clear())

setupGrids()

Creates the 3 grid axis for x,y,z

setupWidget()

Create the widget so that the UI can place it

update()

Every QTimer tick, update the new points, if there are any