src.UI.Renderer3D module

class src.UI.Renderer3D.Renderer3D(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

downloadDataset(filePath)

Store the projetion on disk

getGrid(rotation, translation)

Get the grid GraphicsItem given color, sizes rotations etc.

Parameters
  • rotation (Tuple) – The x,y,z rotatinos for the grid

  • translation (Tuple) – The x,y,z translations for the grid

Returns

The grid Item

Return type

GLGridItem

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