BioDynaMo
v1.05.120-25dc9790
|
The class that bridges the simulation code with ParaView. More...
#include <adaptor.h>
Classes | |
struct | ParaviewImpl |
Public Member Functions | |
ParaviewAdaptor () | |
~ParaviewAdaptor () override | |
void | Visualize () override |
Visualize one timestep based on the configuration in Param More... | |
Private Member Functions | |
void | Initialize () |
void | InsituVisualization () |
Execute the insitu pipelines that were defined in Initialize More... | |
void | ExportVisualization () |
void | CreateVtkObjects () |
Creates the VTK objects that represent the agents in ParaView. More... | |
void | BuildAgentsVTKStructures () |
Create the required vtk objects to visualize agents. More... | |
void | BuildDiffusionGridVTKStructures () |
Create the required vtk objects to visualize diffusion grids. More... | |
void | WriteSimulationInfoJsonFile () |
ClassDefNV (ParaviewAdaptor, 1) | |
Private Member Functions inherited from bdm::VisualizationAdaptor | |
VisualizationAdaptor ()=default | |
virtual | ~VisualizationAdaptor ()=default |
Static Private Member Functions | |
static void | GenerateParaviewState () |
static std::string | BuildPythonScriptString (const std::string &python_script) |
Static Private Member Functions inherited from bdm::VisualizationAdaptor | |
static VisualizationAdaptor * | Create (const std::string &adaptor) |
Private Attributes | |
std::unique_ptr< ParaviewImpl > | impl_ |
bool | initialized_ = false |
only needed for insitu visualization More... | |
bool | simulation_info_json_generated_ = false |
Static Private Attributes | |
static std::atomic< uint64_t > | counter_ |
bdm::ParaviewAdaptor::ParaviewAdaptor | ( | ) |
Initializes Catalyst with the predefined pipeline and allocates memory for the VTK grid structures
Definition at line 61 of file adaptor.cc.
|
override |
Definition at line 68 of file adaptor.cc.
|
private |
Create the required vtk objects to visualize agents.
Definition at line 214 of file adaptor.cc.
|
private |
Create the required vtk objects to visualize diffusion grids.
Definition at line 223 of file adaptor.cc.
|
staticprivate |
Combine user-defined python script with biodynamo default python insitu pipeline.
Definition at line 269 of file adaptor.cc.
|
private |
|
private |
Creates the VTK objects that represent the agents in ParaView.
Definition at line 199 of file adaptor.cc.
|
private |
Exports the visualized objects to file, so that they can be imported and visualized in ParaView at a later point in time
Definition at line 184 of file adaptor.cc.
|
staticprivate |
This function generates the Paraview state based on the exported files Therefore, the user can load the visualization simply by opening the pvsm file and does not have to perform a lot of manual steps.
Definition at line 251 of file adaptor.cc.
|
private |
Parameters might be set after the constructor has been called. Therefore, we defer initialization to the first invocation of Visualize
.
Definition at line 125 of file adaptor.cc.
|
private |
Execute the insitu pipelines that were defined in Initialize
Definition at line 173 of file adaptor.cc.
|
overridevirtual |
Visualize one timestep based on the configuration in Param
Implements bdm::VisualizationAdaptor.
Definition at line 98 of file adaptor.cc.
|
private |
Definition at line 235 of file adaptor.cc.
|
friend |
|
friend |
|
friend |
|
friend |
|
staticprivate |
|
private |
|
private |
|
private |