9#include "ui/worldmodel.h"
11#include "geom/voronoiGenerator.h"
13#define Pi 3.141592653589793238
16#define DOUBLE_CENTER_X 476
17#define DOUBLE_CENTER_Y 319
18#define SINGLE_CENTER_X 370
19#define SINGLE_CENTER_Y 270
27#define ANGLE_TO_CHORD(a) 16*((a)*180/Pi+40), 16*280
41 QBrush *brush_field, *brush_insideRect, *brush_yrobot, *brush_yrobot_MT, *brush_brobot, *brush_test;
42 QBrush *brush_initPoints, *brush_initPoints2;
46 QPen *pen_insideRect, *pen_RobCust1, *pen_pnts2Draw, *pen_circ2Draw, *pen_network, *pen_voronoii, *pen_tracePnts;
48 QPixmap marker0, marker1, marker2, marker3;
49 QPixmap arenaImg, SCIoIImg, webPage, centroidImage, ballImage;
50 QRadialGradient *radGradient, *radGradientRob;
58 QPolygon bigFieldPoly;
62 bool refreshNoiseBool =
false;
65 boost::polygon::voronoi_diagram<double> vd;
67 int centroid_width = 30;
69 int index_node_to_light_net = -1;
72 igraph_vector_int_t edges;
void updatePainters()
Update painter objects (brushes, pens, gradients) to match current WorldModel state.
Definition renderarea.cpp:650
void paintEvent(QPaintEvent *)
Handles the paint event for the RenderArea widget.
Definition renderarea.cpp:199
RenderArea(WorldModel *wm)
Constructs a RenderArea widget for rendering graphical elements in the UI.
Definition renderarea.cpp:53
int getMostCentralNode(const igraph_t &graph)
Returns the index of the most central node in a graph (by degree centrality).
Definition renderarea.cpp:175
void updateGradientPainter()
Updates the gradient painter for the arena background, based on arena size and center.
Definition renderarea.cpp:673
void refresh()
Refresh the RenderArea display.
Definition renderarea.cpp:163
Definition worldmodel.h:41
Definition voronoiGenerator.h:21