|
| void | refresh () |
| | Refresh the RenderArea display.
|
| void | paintEvent (QPaintEvent *) |
| | Handles the paint event for the RenderArea widget.
|
|
void | updatePainters () |
| | Update painter objects (brushes, pens, gradients) to match current WorldModel state.
|
|
void | updateGradientPainter () |
| | Updates the gradient painter for the arena background, based on arena size and center.
|
|
| int | getMostCentralNode (const igraph_t &graph) |
| | Returns the index of the most central node in a graph (by degree centrality).
|
◆ RenderArea()
Constructs a RenderArea widget for rendering graphical elements in the UI.
Initializes the RenderArea, setting up graphical assets, brushes, pens, and timers for periodic updates. Loads resources such as markers, logo, arena images, and custom brushes. Associates the provided WorldModel instance for access to rendering data. Also sets up gradients, pens, and event connections needed for UI drawing and updates.
- Parameters
-
| wm | Pointer to the WorldModel providing data and state for rendering. |
◆ getMostCentralNode()
| int RenderArea::getMostCentralNode |
( |
const igraph_t & | graph | ) |
|
|
protected |
Returns the index of the most central node in a graph (by degree centrality).
- Parameters
-
| graph | igraph_t object representing the network graph. |
- Returns
- Index of the node with highest degree centrality.
◆ paintEvent
| void RenderArea::paintEvent |
( |
QPaintEvent * | | ) |
|
|
slot |
Handles the paint event for the RenderArea widget.
Draws all relevant graphical elements including background, markers, images, robots, networks, and overlays. Uses current state of the WorldModel for data and configuration.
- Parameters
-
| event | Pointer to the paint event (unused). |
◆ refresh
| void RenderArea::refresh |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: