MCPcopy Create free account
hub / github.com/Geant4/geant4 / Set

Method Set

source/visualization/modeling/include/G4ModelColourMap.hh:76–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75template <typename T>
76void
77G4ModelColourMap<T>::Set(const T& quantity, const G4String& colour)
78{
79 G4Colour myColour;
80
81 // Will not setup the map if colour key does not exist
82 if (!G4Colour::GetColour(colour, myColour)) {
83 G4ExceptionDescription ed;
84 ed << "G4Colour with key "<<colour<<" does not exist ";
85 G4Exception
86 ("G4ColourMap::Set(Charge charge, const G4String& colour)",
87 "modeling0108", JustWarning, ed);
88 return;
89 }
90
91
92 // Will not modify myColour if colour key does not exist
93 Set(quantity, myColour);
94}
95
96template <typename T>
97void

Callers 4

ApplyMethod · 0.45
ApplyMethod · 0.45
RequestUpdateExtentMethod · 0.45

Calls 2

G4ExceptionFunction · 0.85
SetFunction · 0.85

Tested by

no test coverage detected