#include <G4Colour.hh>
Definition at line 83 of file G4Colour.hh.
Definition at line 34 of file G4Colour.cc.
35 red (r), green (gr), blue (b),
alpha (a)
37 if( red > 1.0 ){red = 1.0;}
if( red < 0.0 ){red = 0.0;}
38 if( green > 1.0 ){green = 1.0;}
if( green < 0.0 ){green = 0.0;}
39 if( blue > 1.0 ){blue = 1.0;}
if( blue < 0.0 ){blue = 0.0;}
static const G4double alpha
Definition at line 43 of file G4Colour.cc.
44 red (v.
x()), green (v.
y()), blue (v.
z()),
alpha (1.)
46 if( red > 1.0 ){red = 1.0;}
if( red < 0.0 ){red = 0.0;}
47 if( green > 1.0 ){green = 1.0;}
if( green < 0.0 ){green = 0.0;}
48 if( blue > 1.0 ){blue = 1.0;}
if( blue < 0.0 ){blue = 0.0;}
static const G4double alpha
Definition at line 86 of file G4Colour.cc.
89 fColourMap =
new std::map<G4String, G4Colour>;
95 std::map<G4String, G4Colour>::iterator iter = fColourMap->find(myKey);
97 if (iter == fColourMap->end()) (*fColourMap)[myKey] = colour;
100 ed <<
"G4Colour with key "<<myKey<<
" already exists."<<
G4endl;
102 (
"G4Colour::AddToMap(const G4String& key, const G4Colour& colour)",
104 "Colour key exists");
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 146 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 150 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 147 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 151 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 142 of file G4Colour.hh.
static const G4double alpha
Definition at line 126 of file G4Colour.cc.
128 if (
false == fInitColourMap) {
129 fInitColourMap =
true;
131 InitialiseColourMap();
137 std::map<G4String, G4Colour>::iterator iter = fColourMap->find(myKey);
140 if (iter == fColourMap->end())
return false;
142 result = iter->second;
Definition at line 147 of file G4Colour.cc.
149 if (
false == fInitColourMap) {
150 fInitColourMap =
true;
152 InitialiseColourMap();
Definition at line 144 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 149 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 145 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 152 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 51 of file G4Colour.cc.
CLHEP::Hep3Vector G4ThreeVector
Definition at line 71 of file G4Colour.cc.
static const G4double alpha
Definition at line 100 of file G4Colour.hh.
G4bool operator!=(const G4Colour &c) const
Definition at line 148 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 143 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
Definition at line 153 of file G4Colour.hh.
G4Colour(G4double r=1., G4double g=1., G4double b=1., G4double a=1.)
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const G4Colour & |
c |
|
) |
| |
|
friend |
Definition at line 55 of file G4Colour.cc.
56 os <<
'(' << c.red <<
',' << c.green <<
',' << c.blue
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 <<
')';
static const std::map< G4String, G4Colour > & GetMap()
The documentation for this class was generated from the following files:
- geant4.10.03.p01/source/graphics_reps/include/G4Colour.hh
- geant4.10.03.p01/source/graphics_reps/src/G4Colour.cc