#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetStepPtsSize< M >:
Public Member Functions | |
G4ModelCmdSetStepPtsSize (M *model, const G4String &placement, const G4String &cmdName="setStepPtsSize") | |
Protected Member Functions | |
void | Apply (const G4String &sizeString) |
Definition at line 433 of file G4ModelCommandsT.hh.
G4ModelCmdSetStepPtsSize< M >::G4ModelCmdSetStepPtsSize | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setStepPtsSize" | |||
) | [inline] |
Definition at line 437 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), and G4UIcommand::SetGuidance().
00439 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00440 { 00441 G4ModelCmdApplyString<M>::Command()->SetGuidance("Set step points size command"); 00442 }
void G4ModelCmdSetStepPtsSize< M >::Apply | ( | const G4String & | sizeString | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 446 of file G4ModelCommandsT.hh.
References G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4VModelCommand< T >::Model(), and G4VMarker::world.
00446 { 00447 std::istringstream iss(sizeString); 00448 G4double size; 00449 G4String unit; 00450 iss >> size >> unit; 00451 if (G4VModelCommand<M>::Model()->GetStepPtsSizeType() == G4VMarker::world) 00452 { 00453 G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString); 00454 G4VModelCommand<M>::Model()->SetStepPtsSize(myDouble); 00455 } 00456 else // none or screen 00457 { 00458 G4VModelCommand<M>::Model()->SetStepPtsSize(size); 00459 } 00460 }