17 #include <core_ui/sim/box2d_widget.h> 18 #include <domains/ballistics/world.h> 20 #include <QPainterPath> 28 SceneUi(ballistics::World* world) : world_(world) { trajectory_path_.moveTo(0, 0); }
31 void sigNewTarget(
double x,
double y);
34 void render(QPainter& painter,
const QRectF& viewport)
override;
35 void mousePressEvent(
const QPointF& pos, QMouseEvent* event)
override;
38 ballistics::World* world_ =
nullptr;
39 QPainterPath trajectory_path_;
Definition: ballistics_ui.cpp:24
Custom box2d scene rendering & input processing.
Definition: box2d_widget.h:27