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

Method RemoveStyle

source/visualization/management/src/G4PlotterManager.cc:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void G4PlotterManager::RemoveStyle(const G4String& a_name) {
88 for (auto it = fStyles.begin(); it != fStyles.end(); ++it) {
89 if (it->first == a_name) {
90 fStyles.erase(it);
91 if (fCurrentStyle == a_name) fCurrentStyle.clear();
92 return;
93 }
94 }
95}
96
97void G4PlotterManager::PrintStyle(const G4String& a_name) const {
98 for(const auto& style : fStyles) {

Callers 1

SetNewValueMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected