diff options
author | ccolin | 2021-01-03 20:22:16 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 20:22:16 +0100 |
commit | cbf29fc087179fbda1527d3c4cea82c2b8e9f695 (patch) | |
tree | 9a7ccb8010f69710af1aa74a018eabfedc780104 /src/drone_controller.hh | |
parent | 5326f294ceb95f1b535d145b5fdbdc221f560d53 (diff) |
add option to draw support lines
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r-- | src/drone_controller.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drone_controller.hh b/src/drone_controller.hh index 7ff087a..fb6dd4e 100644 --- a/src/drone_controller.hh +++ b/src/drone_controller.hh @@ -24,6 +24,7 @@ class DroneController : public QObject, public Painter { QTimer sphere_timer; QMap<int, QVector<QPair<int, int>>> collisions; bool draw_trajectories = false; + bool draw_support_lines = false; static OpenGLMesh *sphere; static const unsigned char sphere_neutral[]; @@ -31,6 +32,7 @@ class DroneController : public QObject, public Painter { static bool collides(const Drone &a, const Drone &b, double radius); void drawTrajectory(QOpenGLExtraFunctions *f, const Drone &d) const; + void drawSupportLine(QOpenGLExtraFunctions *f, const Drone &d) const; public: DroneController(const QJsonObject &json); @@ -55,6 +57,7 @@ public slots: void computeCollisions(double sphere_radius); void displaySpheres(double sphere_radius); void setDrawTrajectories(bool enable); + void setDrawSupportLines(bool enable); }; |