83 <<
',' << c.
alpha <<
')';
86 std::map<G4String, G4Colour>::const_reverse_iterator ri;
87 for (ri = colourMap.rbegin(); ri != colourMap.rend(); ++ri) {
88 if (c == ri->second) {
89 os <<
" (" << ri->first <<
')';
119 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
121 "Attempt to add to colour map from non-master thread.");
130 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
135 ed <<
"G4Colour with key " << myKey <<
" already exists." <<
G4endl;
137 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
139 "Colour key exists");
171 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
176 result = iter->second;
CLHEP::Hep3Vector G4ThreeVector
std::ostringstream G4ExceptionDescription
static std::map< G4String, G4Colour > fColourMap
std::vector< ExP01TrackerHit * > a
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
static G4bool fInitColourMap
static void AddToMap(const G4String &key, const G4Colour &colour)
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
static void InitialiseColourMap()
static const G4double alpha
G4double G4ParticleHPJENDLHEData::G4double result
static G4Colour Magenta()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static const std::map< G4String, G4Colour > & GetMap()
G4bool operator!=(const G4Colour &c) const
static G4bool GetColour(const G4String &key, G4Colour &result)