36 red (r), green (gr), blue (b),
alpha (a)
45 red (v.
x()), green (v.
y()), blue (v.
z()),
alpha (1.)
82 <<
',' << c.
alpha <<
')';
85 std::map<G4String, G4Colour>::const_reverse_iterator ri;
86 for (ri = colourMap.rbegin(); ri != colourMap.rend(); ++ri) {
87 if (c == ri->second) {
88 os <<
" (" << ri->first <<
')';
114 static G4bool first =
true;
118 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
120 "Attempt to add to colour map from non-master thread.");
129 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
134 ed <<
"G4Colour with key " << myKey <<
" already exists." <<
G4endl;
136 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
138 "Colour key exists");
170 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
175 result = iter->second;