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

Method SetDefaultUnit

source/intercoms/src/G4UIcmdWith3VectorAndUnit.cc:204–210  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

202
203// --------------------------------------------------------------------
204void G4UIcmdWith3VectorAndUnit::SetDefaultUnit(const char* defUnit)
205{
206 G4UIparameter* untParam = GetParameter(3);
207 untParam->SetOmittable(true);
208 untParam->SetDefaultValue(defUnit);
209 SetUnitCategory(CategoryOf(defUnit));
210}

Callers

nothing calls this directly

Calls 2

SetOmittableMethod · 0.80
SetDefaultValueMethod · 0.45

Tested by

no test coverage detected