57 <<
',' << c.
alpha <<
')';
60 std::map<G4String, G4Colour>::const_reverse_iterator ri;
61 for (ri = colourMap.rbegin(); ri != colourMap.rend(); ++ri) {
62 if (c == ri->second) {
63 os <<
" (" << ri->first <<
')';
95 std::map<G4String, G4Colour>::iterator iter =
fColourMap->find(myKey);
100 ed <<
"G4Colour with key "<<myKey<<
" already exists."<<
G4endl;
102 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
104 "Colour key exists");
137 std::map<G4String, G4Colour>::iterator iter =
fColourMap->find(myKey);
142 result = iter->second;
std::ostringstream G4ExceptionDescription
CLHEP::Hep3Vector G4ThreeVector
static G4bool GetColour(const G4String &key, G4Colour &result)
static G4Colour Magenta()
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
static void InitialiseColourMap()
std::ostream & operator<<(std::ostream &os, const G4Colour &c)
static void AddToMap(const G4String &key, const G4Colour &colour)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ThreadLocal G4bool fInitColourMap
static const std::map< G4String, G4Colour > & GetMap()
static G4ThreadLocal std::map< G4String, G4Colour > * fColourMap
static const G4double alpha
G4bool operator!=(const G4Colour &c) const