36red (r), green (gr), blue (b),
alpha (a)
45red (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.");
128 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
133 ed <<
"G4Colour with key " << myKey <<
" already exists." <<
G4endl;
135 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
137 "Colour key exists");
168 std::map<G4String, G4Colour>::iterator iter =
fColourMap.find(myKey);
173 result = iter->second;
188 if (
red < rhs.
red)
return true;
189 else if (
red == rhs.
red) {
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static const G4double alpha
CLHEP::Hep3Vector G4ThreeVector
static G4bool GetColour(const G4String &key, G4Colour &result)
static void AddToMap(const G4String &key, const G4Colour &colour)
static void InitialiseColourMap()
static G4bool fInitColourMap
static const std::map< G4String, G4Colour > & GetMap()
G4bool operator!=(const G4Colour &c) const
static G4Colour Magenta()
G4Colour(G4double r_=1., G4double g_=1., G4double b_=1., G4double a_=1.)
G4bool operator<(const G4Colour &rhs) const
static std::map< G4String, G4Colour > fColourMap
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
G4String to_lower_copy(G4String str)
Return lowercased copy of string.