17 #include <core/sim/drone.h> 18 #include <core_ui/sim/box2d_widget.h> 19 #include <domains/drone_track/scene.h> 21 #include <QPainterPath> 28 SceneUi(drone_track::Scene* scene);
30 void render(QPainter& painter,
const QRectF& viewport)
override;
34 void renderCamera(QPainter& painter,
const sim::Camera* camera)
const;
35 void renderDrone(QPainter& painter,
const sim::Drone* drone)
const;
36 void renderPath(QPainter& painter)
const;
37 void renderTrack(QPainter& painter)
const;
38 void renderCurrentSegment(QPainter& painter)
const;
41 drone_track::Scene* scene_ =
nullptr;
42 QPainterPath drone_path_;
43 const QPixmap drone_pixmap_{
":/resources/drone.png" };
Custom box2d scene rendering & input processing.
Definition: box2d_widget.h:27
Definition: domain_ui.cpp:24
Raytraced rendering of a 2d world.
Definition: camera.h:39