Restore layer names.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#include <GL/gl.h>
|
||||
#include "LayerVisualisation.hpp"
|
||||
#include "Range.hpp"
|
||||
#include "utils.hpp"
|
||||
#include "RenderingState.hpp"
|
||||
#include "glutils.hpp"
|
||||
|
||||
const std::vector<float> &fmri::LayerVisualisation::nodePositions() const
|
||||
{
|
||||
@@ -31,6 +33,21 @@ float fmri::LayerVisualisation::getAlpha()
|
||||
return RenderingState::instance().layerAlpha();
|
||||
}
|
||||
|
||||
void fmri::LayerVisualisation::setupLayerName(std::string_view name, fmri::LayerInfo::Type type)
|
||||
{
|
||||
displayName = name;
|
||||
displayName += ": ";
|
||||
displayName += LayerInfo::nameByType(type);
|
||||
}
|
||||
|
||||
void fmri::LayerVisualisation::drawLayerName() const
|
||||
{
|
||||
glColor3f(0.5, 0.5, 0.5);
|
||||
renderText(displayName);
|
||||
|
||||
glTranslatef(0, 0, -10);
|
||||
}
|
||||
|
||||
template<>
|
||||
void fmri::LayerVisualisation::initNodePositions<fmri::LayerVisualisation::Ordering::SQUARE>(size_t n, float spacing)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user