Factory to create material maps using GearDistanceProperties. More...
#include <MaterialMapFactory.h>
Public Member Functions | |
MaterialMapFactory (const MaterialMapFactory &)=delete | |
MaterialMapFactory & | operator= (const MaterialMapFactory &)=delete |
MaterialMapFactory (GearMgr *gearMgr) | |
virtual | ~MaterialMapFactory () |
Destructor. | |
MaterialMap * | createMaterialMap (double xmin, double xmax, int nxsteps, double ymin, double ymax, int nysteps, double zmin, double zmax, int nzsteps, int coord) |
Creating a material map in memory. More... | |
Protected Attributes | |
GearMgr * | _gearMgr = nullptr |
std::map< std::vector< double > , MaterialMap * > | _managerMap {} |
Factory to create material maps using GearDistanceProperties.
Definition at line 30 of file MaterialMapFactory.h.
MaterialMap * gear::MaterialMapFactory::createMaterialMap | ( | double | xmin, |
double | xmax, | ||
int | nxsteps, | ||
double | ymin, | ||
double | ymax, | ||
int | nysteps, | ||
double | zmin, | ||
double | zmax, | ||
int | nzsteps, | ||
int | coord | ||
) |
Creating a material map in memory.
Three coordinate systems are supported: coord=0 : CARTESIAN (x,y,z) coord=1 : CYLINDRICAL (r,phi,z) with r>0, 0<phi<2Pi coord=2 : SPERICAL (r,theta,phi) with r>0, 0<theta<Pi 0<phi<2Pi With min and max the beginning and the end are defined and step is the number of steps that defines the granularity of the map.
Definition at line 14 of file MaterialMapFactory.cc.