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

Method SetParameterName

source/intercoms/src/G4UIcmdWith3VectorAndUnit.cc:160–176  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

158
159// --------------------------------------------------------------------
160void G4UIcmdWith3VectorAndUnit::SetParameterName(const char* theNameX, const char* theNameY,
161 const char* theNameZ, G4bool omittable,
162 G4bool currentAsDefault)
163{
164 G4UIparameter* theParamX = GetParameter(0);
165 theParamX->SetParameterName(theNameX);
166 theParamX->SetOmittable(omittable);
167 theParamX->SetCurrentAsDefault(currentAsDefault);
168 G4UIparameter* theParamY = GetParameter(1);
169 theParamY->SetParameterName(theNameY);
170 theParamY->SetOmittable(omittable);
171 theParamY->SetCurrentAsDefault(currentAsDefault);
172 G4UIparameter* theParamZ = GetParameter(2);
173 theParamZ->SetParameterName(theNameZ);
174 theParamZ->SetOmittable(omittable);
175 theParamZ->SetCurrentAsDefault(currentAsDefault);
176}
177
178// --------------------------------------------------------------------
179void G4UIcmdWith3VectorAndUnit::SetDefaultValue(const G4ThreeVector& vec)

Callers 1

Calls 2

SetOmittableMethod · 0.80
SetCurrentAsDefaultMethod · 0.80

Tested by

no test coverage detected