BioDynaMo  v1.03.58-27764645
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bdm::RootAdaptor Class Reference

The class that bridges the simulation code with ROOT Visualization. More...

#include <adaptor.h>

Collaboration diagram for bdm::RootAdaptor:
[legend]

Public Member Functions

 RootAdaptor ()
 
void Visualize (uint64_t total_steps)
 Visualize one timestep. More...
 
void DrawInCanvas (size_t w=300, size_t h=300, std::string opt="")
 

Private Member Functions

void Initialize ()
 
void AddBranch (const Agent *agent, TGeoVolume *container)
 Recursively adds sphere and its daughters to the container. More...
 
void AddSphere (const Agent *agent, TGeoVolume *container)
 Adds a sphere object to the volume. More...
 
void AddCylinder (const Agent *agent, TGeoVolume *container)
 Adds a cylinder object to the volume. More...
 

Private Attributes

std::string outfile_
 
TCanvas * canvas_ = nullptr
 
TGeoVolume * top_
 Top volumes for TGeo and TEve (world) More...
 
TGeoMaterial * mat_empty_space_
 Eve materials and medium. More...
 
TGeoMaterial * mat_solid_
 
TGeoMedium * med_empty_space_
 
TGeoMedium * med_solid_
 
bool initialized_
 
int max_viz_nodes_
 Max visualized shapes per volume. More...
 

Detailed Description

The class that bridges the simulation code with ROOT Visualization.

Definition at line 43 of file adaptor.h.

Constructor & Destructor Documentation

◆ RootAdaptor()

bdm::RootAdaptor::RootAdaptor ( )
inline

Definition at line 45 of file adaptor.h.

Member Function Documentation

◆ AddBranch()

void bdm::RootAdaptor::AddBranch ( const Agent agent,
TGeoVolume *  container 
)
inlineprivate

Recursively adds sphere and its daughters to the container.

Definition at line 123 of file adaptor.h.

◆ AddCylinder()

void bdm::RootAdaptor::AddCylinder ( const Agent agent,
TGeoVolume *  container 
)
inlineprivate

Adds a cylinder object to the volume.

Definition at line 155 of file adaptor.h.

◆ AddSphere()

void bdm::RootAdaptor::AddSphere ( const Agent agent,
TGeoVolume *  container 
)
inlineprivate

Adds a sphere object to the volume.

Definition at line 141 of file adaptor.h.

◆ DrawInCanvas()

void bdm::RootAdaptor::DrawInCanvas ( size_t  w = 300,
size_t  h = 300,
std::string  opt = "" 
)
inline

Definition at line 73 of file adaptor.h.

◆ Initialize()

void bdm::RootAdaptor::Initialize ( )
inlineprivate

Definition at line 88 of file adaptor.h.

◆ Visualize()

void bdm::RootAdaptor::Visualize ( uint64_t  total_steps)
inline

Visualize one timestep.

Definition at line 48 of file adaptor.h.

Member Data Documentation

◆ canvas_

TCanvas* bdm::RootAdaptor::canvas_ = nullptr
private

Definition at line 199 of file adaptor.h.

◆ initialized_

bool bdm::RootAdaptor::initialized_
private

Definition at line 210 of file adaptor.h.

◆ mat_empty_space_

TGeoMaterial* bdm::RootAdaptor::mat_empty_space_
private

Eve materials and medium.

Definition at line 205 of file adaptor.h.

◆ mat_solid_

TGeoMaterial* bdm::RootAdaptor::mat_solid_
private

Definition at line 206 of file adaptor.h.

◆ max_viz_nodes_

int bdm::RootAdaptor::max_viz_nodes_
private

Max visualized shapes per volume.

Definition at line 213 of file adaptor.h.

◆ med_empty_space_

TGeoMedium* bdm::RootAdaptor::med_empty_space_
private

Definition at line 207 of file adaptor.h.

◆ med_solid_

TGeoMedium* bdm::RootAdaptor::med_solid_
private

Definition at line 208 of file adaptor.h.

◆ outfile_

std::string bdm::RootAdaptor::outfile_
private

Definition at line 197 of file adaptor.h.

◆ top_

TGeoVolume* bdm::RootAdaptor::top_
private

Top volumes for TGeo and TEve (world)

Definition at line 202 of file adaptor.h.


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