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

Method G4UIcmdWith3VectorAndUnit

source/intercoms/src/G4UIcmdWith3VectorAndUnit.cc:40–54  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39// --------------------------------------------------------------------
40G4UIcmdWith3VectorAndUnit::G4UIcmdWith3VectorAndUnit(const char* theCommandPath,
41 G4UImessenger* theMessenger)
42 : G4UIcommand(theCommandPath, theMessenger)
43{
44 auto* dblParamX = new G4UIparameter('d');
45 SetParameter(dblParamX);
46 auto* dblParamY = new G4UIparameter('d');
47 SetParameter(dblParamY);
48 auto* dblParamZ = new G4UIparameter('d');
49 SetParameter(dblParamZ);
50 auto* untParam = new G4UIparameter('s');
51 untParam->SetParameterName("Unit");
52 SetParameter(untParam);
53 SetCommandType(With3VectorAndUnitCmd);
54}
55
56// --------------------------------------------------------------------
57G4int G4UIcmdWith3VectorAndUnit::DoIt(const G4String& parameterList)

Callers

nothing calls this directly

Calls 1

SetParameterNameMethod · 0.45

Tested by

no test coverage detected