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

#include <vtk_agents.h>

Collaboration diagram for bdm::VtkAgents:
[legend]

Public Member Functions

 VtkAgents (const char *type_name, vtkCPDataDescription *data_description)
 
 ~VtkAgents ()
 
vtkUnstructuredGrid * GetData (uint64_t idx)
 
Shape GetShape () const
 
TClass * GetTClass ()
 
void Update (const std::vector< Agent * > *agents)
 
void WriteToFile (uint64_t step) const
 

Private Member Functions

TClass * FindTClass ()
 
void InitializeDataMembers (Agent *agent, std::vector< std::string > *data_members)
 
void UpdateMappedDataArrays (uint64_t tid, const std::vector< Agent * > *agents, uint64_t start, uint64_t end)
 

Private Attributes

std::string name_
 
TClass * tclass_
 
std::vector< vtkUnstructuredGrid * > data_
 
Shape shape_
 

Friends

class ParaviewAdaptorTest_GenerateSimulationInfoJson_Test
 

Detailed Description

Adds additional data members to the vtkUnstructuredGrid required by ParaviewAdaptor to visualize agents.

Definition at line 36 of file vtk_agents.h.

Constructor & Destructor Documentation

◆ VtkAgents()

bdm::VtkAgents::VtkAgents ( const char *  type_name,
vtkCPDataDescription *  data_description 
)

Definition at line 44 of file vtk_agents.cc.

◆ ~VtkAgents()

bdm::VtkAgents::~VtkAgents ( )

Definition at line 105 of file vtk_agents.cc.

Member Function Documentation

◆ FindTClass()

TClass * bdm::VtkAgents::FindTClass ( )
private

Definition at line 170 of file vtk_agents.cc.

◆ GetData()

vtkUnstructuredGrid * bdm::VtkAgents::GetData ( uint64_t  idx)

Definition at line 114 of file vtk_agents.cc.

◆ GetShape()

Shape bdm::VtkAgents::GetShape ( ) const

Definition at line 117 of file vtk_agents.cc.

◆ GetTClass()

TClass * bdm::VtkAgents::GetTClass ( )

Definition at line 120 of file vtk_agents.cc.

◆ InitializeDataMembers()

void bdm::VtkAgents::InitializeDataMembers ( Agent agent,
std::vector< std::string > *  data_members 
)
private

Definition at line 191 of file vtk_agents.cc.

◆ Update()

void bdm::VtkAgents::Update ( const std::vector< Agent * > *  agents)

Definition at line 123 of file vtk_agents.cc.

◆ UpdateMappedDataArrays()

void bdm::VtkAgents::UpdateMappedDataArrays ( uint64_t  tid,
const std::vector< Agent * > *  agents,
uint64_t  start,
uint64_t  end 
)
private

Definition at line 155 of file vtk_agents.cc.

◆ WriteToFile()

void bdm::VtkAgents::WriteToFile ( uint64_t  step) const

Definition at line 146 of file vtk_agents.cc.

Friends And Related Function Documentation

◆ ParaviewAdaptorTest_GenerateSimulationInfoJson_Test

friend class ParaviewAdaptorTest_GenerateSimulationInfoJson_Test
friend

Definition at line 60 of file vtk_agents.h.

Member Data Documentation

◆ data_

std::vector<vtkUnstructuredGrid*> bdm::VtkAgents::data_
private

Definition at line 51 of file vtk_agents.h.

◆ name_

std::string bdm::VtkAgents::name_
private

Definition at line 49 of file vtk_agents.h.

◆ shape_

Shape bdm::VtkAgents::shape_
private

Definition at line 52 of file vtk_agents.h.

◆ tclass_

TClass* bdm::VtkAgents::tclass_
private

Definition at line 50 of file vtk_agents.h.


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