|
Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
|
Manages a collection of plots driven by a running Simulation. More...
#include <visualization.h>
Public Member Functions | |
| void | clearWindowIdSuffix () |
| std::unordered_map< std::shared_ptr< Plot >, std::vector< std::pair< std::string, std::string > > > | getPlots () |
| Return the full plots map (plot → data sources). | |
| std::shared_ptr< Simulation > | getSimulation () const |
| Return the underlying simulation. | |
| void | plot (const PlotCommonParameters ¶meters, const PlotSpecificParameters &specificParameters, const std::string &name, const std::string &component) |
| Add a fully configured plot with a single data source. | |
| void | plot (const PlotCommonParameters ¶meters, const PlotSpecificParameters &specificParameters, const std::vector< std::pair< std::string, std::string > > &data) |
| Add a fully configured plot. | |
| void | plot (const std::string &name, const std::string &component) |
| Add a new line plot with a single data source. | |
| void | plot (const std::vector< std::pair< std::string, std::string > > &data) |
| Add a new line plot with the given (element, component) data sources. | |
| void | plot (int plotId, const std::string &name, const std::string &component) |
| Add a single data source to an existing plot. | |
| void | plot (int plotId, const std::vector< std::pair< std::string, std::string > > &data) |
Add a data source to an existing plot identified by plotId. | |
| void | plot (PlotType type=PlotType::LINE_PLOT) |
| Add a blank plot of the given type. | |
| void | removeAllPlots () |
| Remove all registered plots. | |
| void | removePlot (int plotId) |
Remove the plot with the given plotId. | |
| void | removePlottingDataFromPlot (int plotId, const std::pair< std::string, std::string > &data) |
| Remove a specific data source from a plot. | |
| void | render () |
| Render all plots (creates ImGui windows or child regions as appropriate). | |
| void | renderTile (int plotId) |
| Render a single plot's content without creating an ImGui window (caller owns the region). | |
| void | setWindowIdSuffix (const std::string &s) |
| Set a suffix appended to all ImGui window IDs to avoid collisions. | |
| Visualization (const std::shared_ptr< Simulation > &simulation) | |
| Construct a Visualization backed by the given simulation. | |
Manages a collection of plots driven by a running Simulation.
Visualization owns a set of Plot instances. Each plot is associated with one or more (element-name, component-name) data sources. On every call to render() the visualization pulls current data from the simulation and forwards it to each plot's renderer.
|
explicit |
Construct a Visualization backed by the given simulation.
| simulation | The simulation whose data will be visualized. |
|
inline |
|
inline |
Return the full plots map (plot → data sources).
|
inline |
Return the underlying simulation.
| void dnf_composer::Visualization::plot | ( | const PlotCommonParameters & | parameters, |
| const PlotSpecificParameters & | specificParameters, | ||
| const std::string & | name, | ||
| const std::string & | component | ||
| ) |
Add a fully configured plot with a single data source.
| void dnf_composer::Visualization::plot | ( | const PlotCommonParameters & | parameters, |
| const PlotSpecificParameters & | specificParameters, | ||
| const std::vector< std::pair< std::string, std::string > > & | data | ||
| ) |
Add a fully configured plot.
| parameters | Common plot parameters (type, dimensions, annotations). |
| specificParameters | Type-specific parameters (e.g. LinePlotParameters). |
| data | List of {element-name, component-name} pairs. |
| void dnf_composer::Visualization::plot | ( | const std::string & | name, |
| const std::string & | component | ||
| ) |
Add a new line plot with a single data source.
| name | Element unique name. |
| component | Component name (e.g. "activation", "output"). |
| void dnf_composer::Visualization::plot | ( | const std::vector< std::pair< std::string, std::string > > & | data | ) |
Add a new line plot with the given (element, component) data sources.
| data | List of {element-name, component-name} pairs to plot. |
| void dnf_composer::Visualization::plot | ( | int | plotId, |
| const std::string & | name, | ||
| const std::string & | component | ||
| ) |
Add a single data source to an existing plot.
| void dnf_composer::Visualization::plot | ( | int | plotId, |
| const std::vector< std::pair< std::string, std::string > > & | data | ||
| ) |
Add a data source to an existing plot identified by plotId.
| plotId | Unique plot identifier. |
| data | List of {element-name, component-name} pairs to add. |
| void dnf_composer::Visualization::plot | ( | PlotType | type = PlotType::LINE_PLOT | ) |
Add a blank plot of the given type.
| type | Plot type (default LINE_PLOT). |
| void dnf_composer::Visualization::removeAllPlots | ( | ) |
Remove all registered plots.
| void dnf_composer::Visualization::removePlot | ( | int | plotId | ) |
Remove the plot with the given plotId.
| void dnf_composer::Visualization::removePlottingDataFromPlot | ( | int | plotId, |
| const std::pair< std::string, std::string > & | data | ||
| ) |
Remove a specific data source from a plot.
| plotId | Target plot. |
| data | The {element-name, component-name} pair to remove. |
| void dnf_composer::Visualization::render | ( | ) |
Render all plots (creates ImGui windows or child regions as appropriate).
| void dnf_composer::Visualization::renderTile | ( | int | plotId | ) |
Render a single plot's content without creating an ImGui window (caller owns the region).
| plotId | Unique plot identifier. |
|
inline |
Set a suffix appended to all ImGui window IDs to avoid collisions.