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
lineplot.h
Go to the documentation of this file.
1#pragma once
2
3#include "plot.h"
4
5namespace dnf_composer
6{
8 {
10 bool autoFit;
11
14 std::string toString() const override;
15 bool operator==(const LinePlotParameters& other) const;
16 };
17
18
19 class LinePlot final : public Plot
20 {
21 LinePlotParameters linePlotParameters;
22 public:
23 explicit LinePlot(const PlotCommonParameters& parameters =
25 {0.0, 100.0, -20.0, 20.0, 1.0, 1.0},
26 PlotAnnotations{"Line plot", "Spatial dimension", "Amplitude"} },
27 const LinePlotParameters& linePlotParameters = LinePlotParameters());
28
29 void setLineThickness(double lineThickness);
30 void setAutoFit(bool autoFit);
31 double getLineThickness() const;
32 double getAutoFit() const;
33 std::string toString() const override;
34 void render(const std::vector<std::vector<double>*>& data, const std::vector<std::string>& legends) override;
35 };
36}
Definition lineplot.h:20
void setAutoFit(bool autoFit)
Definition lineplot.cpp:50
double getLineThickness() const
Definition lineplot.cpp:55
std::string toString() const override
Definition lineplot.cpp:65
void render(const std::vector< std::vector< double > * > &data, const std::vector< std::string > &legends) override
Render the plot using the provided data and legends.
Definition lineplot.cpp:75
void setLineThickness(double lineThickness)
Definition lineplot.cpp:45
double getAutoFit() const
Definition lineplot.cpp:60
Abstract base class for all renderable plots.
Definition plot.h:15
Definition application.h:20
Definition lineplot.h:8
std::string toString() const override
Definition lineplot.cpp:16
double lineThickness
Definition lineplot.h:9
bool operator==(const LinePlotParameters &other) const
Definition lineplot.cpp:25
bool autoFit
Definition lineplot.h:10
LinePlotParameters()
Definition lineplot.cpp:8
Definition plot_parameters.h:26
Definition plot_parameters.h:48
Definition plot_parameters.h:62