#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetAuxPtsSize< M >:
Public Member Functions | |
G4ModelCmdSetAuxPtsSize (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsSize") | |
Protected Member Functions | |
void | Apply (const G4String &sizeString) |
Definition at line 399 of file G4ModelCommandsT.hh.
G4ModelCmdSetAuxPtsSize< M >::G4ModelCmdSetAuxPtsSize | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setAuxPtsSize" | |||
) | [inline] |
Definition at line 403 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), and G4UIcommand::SetGuidance().
00405 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00406 { 00407 G4ModelCmdApplyString<M>::Command()->SetGuidance("Set auxiliary points size command"); 00408 }
void G4ModelCmdSetAuxPtsSize< M >::Apply | ( | const G4String & | sizeString | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 412 of file G4ModelCommandsT.hh.
References G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4VModelCommand< T >::Model(), and G4VMarker::world.
00412 { 00413 std::istringstream iss(sizeString); 00414 G4double size; 00415 G4String unit; 00416 iss >> size >> unit; 00417 if (G4VModelCommand<M>::Model()->GetAuxPtsSizeType() == G4VMarker::world) 00418 { 00419 G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString); 00420 G4VModelCommand<M>::Model()->SetAuxPtsSize(myDouble); 00421 } 00422 else // none or screen 00423 { 00424 G4VModelCommand<M>::Model()->SetAuxPtsSize(size); 00425 } 00426 }