Geant4  10.02.p03
G4HumanPhantomColour Class Reference

#include <G4HumanPhantomColour.hh>

Collaboration diagram for G4HumanPhantomColour:

Public Member Functions

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

Private Attributes

G4Colour white
 
G4Colour pink
 
G4Colour grey
 
G4Colour yellow
 
G4Colour blue
 
G4Colour lightBlue
 
G4Colour green
 
G4Colour brown
 
G4Colour purple
 
G4Colour red
 
G4Colour orange
 
G4Colour black
 

Detailed Description

Definition at line 42 of file G4HumanPhantomColour.hh.

Constructor & Destructor Documentation

◆ G4HumanPhantomColour()

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::~G4HumanPhantomColour ( )

Definition at line 54 of file G4HumanPhantomColour.cc.

55 {
56 
57 }

Member Function Documentation

◆ GetColour()

G4Colour G4HumanPhantomColour::GetColour ( const G4String colourName)

Definition at line 59 of file G4HumanPhantomColour.cc.

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

Member Data Documentation

◆ black

G4Colour G4HumanPhantomColour::black
private

Definition at line 64 of file G4HumanPhantomColour.hh.

◆ blue

G4Colour G4HumanPhantomColour::blue
private

Definition at line 57 of file G4HumanPhantomColour.hh.

◆ brown

G4Colour G4HumanPhantomColour::brown
private

Definition at line 60 of file G4HumanPhantomColour.hh.

◆ green

G4Colour G4HumanPhantomColour::green
private

Definition at line 59 of file G4HumanPhantomColour.hh.

◆ grey

G4Colour G4HumanPhantomColour::grey
private

Definition at line 55 of file G4HumanPhantomColour.hh.

◆ lightBlue

G4Colour G4HumanPhantomColour::lightBlue
private

Definition at line 58 of file G4HumanPhantomColour.hh.

◆ orange

G4Colour G4HumanPhantomColour::orange
private

Definition at line 63 of file G4HumanPhantomColour.hh.

◆ pink

G4Colour G4HumanPhantomColour::pink
private

Definition at line 54 of file G4HumanPhantomColour.hh.

◆ purple

G4Colour G4HumanPhantomColour::purple
private

Definition at line 61 of file G4HumanPhantomColour.hh.

◆ red

G4Colour G4HumanPhantomColour::red
private

Definition at line 62 of file G4HumanPhantomColour.hh.

◆ white

G4Colour G4HumanPhantomColour::white
private

Definition at line 53 of file G4HumanPhantomColour.hh.

◆ yellow

G4Colour G4HumanPhantomColour::yellow
private

Definition at line 56 of file G4HumanPhantomColour.hh.


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