12 layerdisk(layerdisk_in),
14 volumeName(volumeName_in)
29 for (
unsigned int i = 0;
i <
db->getTableSize(mapTable);
i++) {
30 int layerdisk =
db->getInt(mapTable,
"LAYERDISK",
i);
31 int typenum =
db->getInt(mapTable,
"TYPENUM",
i);
32 std::string volumeName =
db->getString(mapTable,
"VOLUMENAME",
i);
33 std::string material =
db->getString(mapTable,
"MATERIAL",
i);
34 addMaterial(layerdisk, typenum, volumeName, material);
42 mapType::const_iterator iter;
43 iter =
m_matmap.find(
Key(layerdisk, typenum, volumeName));
44 if (iter ==
m_matmap.end() && typenum) {
45 iter =
m_matmap.find(
Key(layerdisk, 0, volumeName));
47 if (iter ==
m_matmap.end() && layerdisk) {
50 if (iter ==
m_matmap.end() && typenum && layerdisk) {
56 std::cout <<
"ERROR: PixelMaterialMap::getMaterial Cannot find material for volumeName: " << volumeName << std::endl;
65 m_matmap[
Key(layerdisk, typenum, volumeName)] = materialName;