LARS
LARS (Light Augmented Reality System) is an open-source framework for light-based interaction and real-time tracking in multi-robot experiments. Inspired by ARK, LARS extends the augmented reality paradigm to robotic collectives by projecting dynamic visual cues and environments onto the arena, enabling new experimental possibilities for collective robotics research, education, and outreach. LARS features integrated tracking, light projection, and modular experiment control with a user-friendly Qt GUI.
Loading...
Searching...
No Matches
renderarea.cpp File Reference

Implementation of the RenderArea class for rendering graphical elements in the UI. More...

#include "renderarea.h"
#include <QDebug>

Detailed Description

Implementation of the RenderArea class for rendering graphical elements in the UI.

This file contains the implementation of the RenderArea class, which is responsible for rendering various graphical elements such as markers, gradients, images, and shapes on the UI. It utilizes the Qt framework for rendering and painting operations.

The RenderArea class is initialized with a WorldModel object, which provides the necessary data for rendering. The class handles the following functionalities:

  • Loading and setting up various graphical assets such as markers, images, and brushes.
  • Handling paint events to draw different elements on the UI.
  • Updating painters and gradients based on the WorldModel data.
  • Managing timers for periodic updates and refreshes.

The class supports rendering of various elements including:

  • Background field
  • Markers
  • SCIoI Logo
  • Initial points
  • Heat maps
  • Centroids
  • Balls
  • Robot circles
  • Collective circles
  • Voronoi diagrams
  • Network connections
  • Traces

The class also provides methods for updating painters and gradient painters based on the current state of the WorldModel.

Note
The class contains several commented-out sections of code that can be enabled for additional functionalities or debugging purposes.
See also
renderarea.h