41 G4bool normaliseTo255 =
true);
49 G4bool normaliseTo255 =
true);
Colour class that holds all colours used in BDSIM.
static BDSColours * Instance()
singleton pattern
G4Colour * GetColour(const G4String &type, G4bool normaliseTo255=true)
Get colour from name.
void DefineColour(const G4String &name, G4double red, G4double green, G4double blue, G4double alpha=1, G4bool normaliseTo255=true)
Define a new colour.
BDSColours()
Private constructor as singleton.
std::map< G4int, G4String > magnetName
std::map< G4String, G4Colour * > colours
A map of the colour for each type or component by name.