Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
Loading...
Searching...
No Matches
plot_parameters.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5#include <vector>
6
7#include "tools/logger.h"
8
9namespace dnf_composer
10{
12 {
14
16 PlotDimensions(const double& x_min, const double& x_max,
17 const double& y_min, const double& y_max,
18 const double& x_step, const double& y_step);
19 explicit PlotDimensions(double x_step);
20 [[nodiscard]] bool isLegal() const;
21 [[nodiscard]] std::string toString() const;
22 bool operator==(const PlotDimensions& other) const;
23 };
24
26 {
27 std::string title, x_label, y_label;
28
30 explicit PlotAnnotations(std::string title, std::string x_label = "Spatial dimension",
31 std::string y_label = "Amplitude");
32 [[nodiscard]] std::string toString() const;
33 bool operator==(const PlotAnnotations& other) const;
34 };
35
36 enum class PlotType : int
37 {
38 LINE_PLOT = 0,
39 HEATMAP = 1
40 };
41
42 inline const std::map<PlotType, std::string> PlotTypeToString = {
43 {PlotType::LINE_PLOT, "line plot" },
44 {PlotType::HEATMAP, "heatmap" }
45 };
46
60
62 {
63 virtual ~PlotSpecificParameters() = default;
65 [[nodiscard]] virtual std::string toString() const = 0;
66 };
67}
Definition application.h:20
PlotType
Definition plot_parameters.h:37
const std::map< PlotType, std::string > PlotTypeToString
Definition plot_parameters.h:42
Definition plot_parameters.h:26
std::string y_label
Definition plot_parameters.h:27
PlotAnnotations()
Definition plot_parameters.cpp:78
std::string title
Definition plot_parameters.h:27
std::string x_label
Definition plot_parameters.h:27
bool operator==(const PlotAnnotations &other) const
Definition plot_parameters.cpp:93
std::string toString() const
Definition plot_parameters.cpp:86
Definition plot_parameters.h:48
PlotDimensions dimensions
Definition plot_parameters.h:50
std::string toString() const
Definition plot_parameters.cpp:114
PlotCommonParameters()
Definition plot_parameters.cpp:98
bool operator==(const PlotCommonParameters &other) const
Definition plot_parameters.cpp:122
PlotType type
Definition plot_parameters.h:49
PlotAnnotations annotations
Definition plot_parameters.h:51
Definition plot_parameters.h:12
std::string toString() const
Definition plot_parameters.cpp:58
double yMax
Definition plot_parameters.h:13
double xMax
Definition plot_parameters.h:13
bool isLegal() const
Definition plot_parameters.cpp:53
double xStep
Definition plot_parameters.h:13
double yStep
Definition plot_parameters.h:13
PlotDimensions()
Definition plot_parameters.cpp:6
double yMin
Definition plot_parameters.h:13
double xMin
Definition plot_parameters.h:13
bool operator==(const PlotDimensions &other) const
Definition plot_parameters.cpp:66
Definition plot_parameters.h:62
virtual std::string toString() const =0
virtual ~PlotSpecificParameters()=default