7#ifndef SIMCORE_VISATTRIBUTESSTORE_H_
8#define SIMCORE_VISATTRIBUTESSTORE_H_
11#include "G4VisAttributes.hh"
42 delete nameAtt.second;
55 }
catch (
const std::out_of_range& oor) {
56 G4cout <<
"[ WARN ] : VisAttribute '" << name
57 <<
"' not recognized. Ignoring." << G4endl;
68 G4VisAttributes* visAttributes) {
Global store of G4VisAttributes created from GDML data.
std::map< std::string, G4VisAttributes * > VisAttributesMap
Map of name to vis attributes.
~VisAttributesStore()
Destructor.
G4VisAttributes * getVisAttributes(const std::string &name)
Get vis attributes by name.
void addVisAttributes(const std::string &name, G4VisAttributes *visAttributes)
Register a vis attributes by name.
VisAttributesMap visAttributesMap_
The map of names to vis attributes.
static VisAttributesStore * getInstance()
Get the global instance of the store.