Public Member Functions | |
~BDSMagnetColours () | |
singleton pattern | |
G4Colour * | GetMagnetColour (G4String magnetTypeName) |
G4Colour * | GetMagnetColour (G4int magnetOrder) |
Static Public Member Functions | |
static BDSMagnetColours * | Instance () |
Private Member Functions | |
BDSMagnetColours () | |
Private Attributes | |
std::map< G4int, G4String > | magnetName |
std::map< G4String, G4Colour * > | colours |
Static Private Attributes | |
static BDSMagnetColours * | _instance = 0 |
Definition at line 9 of file BDSMagnetColours.hh.
std::map<G4String, G4Colour*> BDSMagnetColours::colours [private] |
A map of the colour for each type of magnet by name - one for each class that inherits the BDSMagnet class
Definition at line 29 of file BDSMagnetColours.hh.
Referenced by BDSMagnetColours(), and GetMagnetColour().
std::map<G4int, G4String> BDSMagnetColours::magnetName [private] |
A map of the magnet name for which order it is, which can be used to access the appropriate colour map
Definition at line 25 of file BDSMagnetColours.hh.
Referenced by BDSMagnetColours(), and GetMagnetColour().