Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4HumanPhantomColour Class Reference

#include <G4HumanPhantomColour.hh>

Public Member Functions

 G4HumanPhantomColour ()
 
 ~G4HumanPhantomColour ()
 
G4Colour GetColour (const G4String &)
 

Detailed Description

Definition at line 42 of file G4HumanPhantomColour.hh.

Constructor & Destructor Documentation

G4HumanPhantomColour::G4HumanPhantomColour ( )

Definition at line 38 of file G4HumanPhantomColour.cc.

39 {
40  white = G4Colour(1.0, 1.0, 1.0);
41  pink = G4Colour(0.94, 0.5, 0.5);
42  grey = G4Colour(0.46, 0.53, 0.6);
43  yellow = G4Colour(1.0, 1.0, 0.);
44  blue = G4Colour(0.25,0.41, 0.88 );
45  lightBlue = G4Colour(0.28, 0.82, 0.8);
46  green = G4Colour(0., 1., 0.);
47  brown = G4Colour(0.5, 0.5, 0.);
48  purple = G4Colour(0.85,0.44,0.84);
49  red = G4Colour(1.0, 0.0, 0.0);
50  orange = G4Colour(1.,0.5,0.);
51  black = G4Colour(0.,0.,0.);
52 }
G4HumanPhantomColour::~G4HumanPhantomColour ( )

Definition at line 54 of file G4HumanPhantomColour.cc.

55 {
56 
57 }

Member Function Documentation

G4Colour G4HumanPhantomColour::GetColour ( const G4String colourName)

Definition at line 59 of file G4HumanPhantomColour.cc.

References G4cout, and G4endl.

60 {
61 
62  // Returns the colour
63  if (colourName == "pink") return pink;
64  else if(colourName == "white") return white;
65  else if (colourName == "grey") return grey;
66  else if (colourName == "yellow") return yellow;
67  else if (colourName == "blue") return blue;
68  else if (colourName == "lightBlue") return lightBlue;
69  else if (colourName == "green") return green;
70  else if (colourName == "brown") return brown;
71  else if (colourName == "purple") return purple;
72  else if (colourName == "red") return red;
73  else if (colourName == "orange") return orange;
74  else if (colourName == "black") return black;
75 else {G4cout<< colourName << "does not exist !!!"<< G4endl; return white;}
76 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

The documentation for this class was generated from the following files: