From 0d59b73de4e51a3a5b3c680f3dca97c2b942cc09 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Oct 2022 18:15:53 +0100 Subject: Builders manage a collection of candidate links rendered by the base builder --- ui/editNetwork.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui/editNetwork.h') diff --git a/ui/editNetwork.h b/ui/editNetwork.h index bd01eb8..df89cdc 100644 --- a/ui/editNetwork.h +++ b/ui/editNetwork.h @@ -6,6 +6,7 @@ #include "worldOverlay.h" #include #include +#include #include class Ray; @@ -26,11 +27,15 @@ public: class Builder { public: virtual ~Builder() = default; - virtual void render(const Shader & shader) const = 0; + virtual void render(const Shader & shader) const; virtual std::string hint() const = 0; virtual void click(Network *, const GeoData *, const SDL_MouseButtonEvent &, const Ray &) = 0; + virtual void move(Network *, const GeoData *, const SDL_MouseMotionEvent &, const Ray &) = 0; using Ptr = std::unique_ptr; + + protected: + Collection candidateLinks; }; private: @@ -38,6 +43,7 @@ private: Builder::Ptr builder; Mode mode {builder}; Toolbar builderToolbar; + Texture blue; }; template class EditNetworkOf : public EditNetwork { -- cgit v1.2.3