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
Public Member Functions | List of all members
dnf_composer::LinePlot Class Referencefinal

#include <lineplot.h>

Inheritance diagram for dnf_composer::LinePlot:
Collaboration diagram for dnf_composer::LinePlot:

Public Member Functions

double getAutoFit () const
 
double getLineThickness () const
 
 LinePlot (const PlotCommonParameters &parameters={ PlotType::LINE_PLOT, {0.0, 100.0, -20.0, 20.0, 1.0, 1.0}, PlotAnnotations{"Line plot", "Spatial dimension", "Amplitude"} }, const LinePlotParameters &linePlotParameters=LinePlotParameters())
 
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.
 
void setAutoFit (bool autoFit)
 
void setLineThickness (double lineThickness)
 
std::string toString () const override
 
- Public Member Functions inherited from dnf_composer::Plot
PlotAnnotations getAnnotations () const
 
PlotDimensions getDimensions () const
 
PlotType getType () const
 
int getUniqueIdentifier () const
 
 Plot (PlotCommonParameters parameters=PlotCommonParameters())
 Construct a plot with the given common parameters.
 
void setAnnotations (const PlotAnnotations &annotations)
 
void setDimensions (const PlotDimensions &dimensions)
 
virtual ~Plot ()=default
 

Additional Inherited Members

- Protected Attributes inherited from dnf_composer::Plot
PlotCommonParameters commonParameters
 Type, axes ranges, and annotation strings.
 
int uniqueIdentifier
 Auto-assigned unique ID.
 
- Static Protected Attributes inherited from dnf_composer::Plot
static int uniqueIdentifierCounter = 0
 Global counter for plot ID assignment.
 

Constructor & Destructor Documentation

◆ LinePlot()

dnf_composer::LinePlot::LinePlot ( const PlotCommonParameters parameters = PlotType::LINE_PLOT, {0.0, 100.0, -20.0, 20.0, 1.0, 1.0}, PlotAnnotations{"Line plot", "Spatial dimension", "Amplitude"} },
const LinePlotParameters linePlotParameters = LinePlotParameters() 
)
explicit

Member Function Documentation

◆ getAutoFit()

double dnf_composer::LinePlot::getAutoFit ( ) const

◆ getLineThickness()

double dnf_composer::LinePlot::getLineThickness ( ) const

◆ render()

void dnf_composer::LinePlot::render ( const std::vector< std::vector< double > * > &  data,
const std::vector< std::string > &  legends 
)
overridevirtual

Render the plot using the provided data and legends.

Parameters
dataPointers to the component vectors to display.
legendsLegend label for each data series.

Implements dnf_composer::Plot.

◆ setAutoFit()

void dnf_composer::LinePlot::setAutoFit ( bool  autoFit)

◆ setLineThickness()

void dnf_composer::LinePlot::setLineThickness ( double  lineThickness)

◆ toString()

std::string dnf_composer::LinePlot::toString ( ) const
overridevirtual

Implements dnf_composer::Plot.

Here is the call graph for this function:

The documentation for this class was generated from the following files: