1#ifndef ONKO3D_3_0_PLUGINDIFFUSION_HPP
2#define ONKO3D_3_0_PLUGINDIFFUSION_HPP
26 template<
typename cell_t>
118 template<
typename world_t>
Manages a 2D grid for molecule diffusion.
Manages a grid of molecules for diffusion.
void initGrid(int w, int h)
Initializes the grid with dimensions.
void setToreX(bool b)
Sets the toroidal property on the x-axis.
void setToreY(bool b)
Sets the toroidal property on the y-axis.
void setTore(bool x, bool y)
Sets the toroidal properties on both axes.
void addMolecule(int id, Molecule m)
Adds a molecule to the grid.
void computeMolecules(world_t *w)
Computes the quantities of molecules in the grid.
Class for managing grid-based diffusion.
PluginDiffusion()
Default constructor.
DiffusionGrid * getDiffusionGrid()
Gets the diffusion grid.
void setToreY(bool b)
Sets the toroidal property on the y-axis.
void preBehaviorUpdate(world_t *w)
Pre-behavior update hook for MecaCell.
void setToreX(bool b)
Sets the toroidal property on the x-axis.
void initDiffusionGrid(int size)
Initializes the square diffusion grid.
void setTore(bool x, bool y)
Sets the toroidal properties on both axes.
void addMolecule(int id, Molecule m)
Adds a molecule to the grid.
void initDiffusionGrid(int w, int h)
Initializes the diffusion grid with dimensions.
PluginDiffusion(int size)
Constructor with grid size.
PluginDiffusion(int w, int h)
Constructor with grid dimensions.
Namespace for 2D diffusion-related classes and functions.
Represents a molecule with diffusion properties.