Restore layer names.

This commit is contained in:
2018-04-23 15:39:21 +02:00
parent 03cac53d05
commit 8eb19cdb6d
5 changed files with 32 additions and 18 deletions

View File

@@ -3,6 +3,7 @@
#include <vector>
#include "utils.hpp"
#include "Drawable.hpp"
#include "LayerInfo.hpp"
namespace fmri
{
@@ -20,14 +21,15 @@ namespace fmri
virtual ~LayerVisualisation() = default;
virtual const std::vector<float>& nodePositions() const;
protected:
float getAlpha() override;
void drawLayerName() const;
void setupLayerName(std::string_view name, LayerInfo::Type type);
protected:
std::vector<float> nodePositions_;
std::string displayName;
template<Ordering Order>
void initNodePositions(size_t n, float spacing);
float getAlpha() override;
};
}