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

Method SetDefaultValue

source/intercoms/src/G4UIcmdWith3VectorAndUnit.cc:179–187  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

177
178// --------------------------------------------------------------------
179void G4UIcmdWith3VectorAndUnit::SetDefaultValue(const G4ThreeVector& vec)
180{
181 G4UIparameter* theParamX = GetParameter(0);
182 theParamX->SetDefaultValue(vec.x());
183 G4UIparameter* theParamY = GetParameter(1);
184 theParamY->SetDefaultValue(vec.y());
185 G4UIparameter* theParamZ = GetParameter(2);
186 theParamZ->SetDefaultValue(vec.z());
187}
188
189// --------------------------------------------------------------------
190void G4UIcmdWith3VectorAndUnit::SetUnitCategory(const char* unitCategory)

Callers 1

SetDefaultUnitMethod · 0.45

Calls 3

xMethod · 0.80
yMethod · 0.80
zMethod · 0.80

Tested by

no test coverage detected