Implement an option to choose path color. Refs #1.

This commit is contained in:
2018-04-03 16:43:23 +02:00
parent 62153d9c6d
commit f62c2859e3
7 changed files with 33 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
#include "LayerData.hpp"
#include "LayerVisualisation.hpp"
#include "Animation.hpp"
#include "Options.hpp"
namespace fmri
{
@@ -39,11 +40,18 @@ namespace fmri
void render(float time) const;
void loadSimulationData(const std::map<string, LayerInfo> &info, std::vector<std::vector<LayerData>> &&data);
/**
* Load rendering-specific options from the given options object.
*
* @param options
*/
void loadOptions(const Options& options);
/**
* @return Whether the network should only render activated nodes, rather than all of them.
*/
bool renderActivatedOnly() const;
bool renderInteractionPaths() const;
const Color& pathColor() const;
static RenderingState& instance();
@@ -55,6 +63,7 @@ namespace fmri
bool renderInteractions = true;
bool activatedOnly = false;
bool renderInteractionPaths = false;
Color pathColor;
} options;
std::array<float, 3> pos;
std::array<float, 2> angle;