#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetAuxPtsSizeType< M >:
Public Member Functions | |
G4ModelCmdSetAuxPtsSizeType (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsSizeType") | |
Protected Member Functions | |
void | Apply (const G4String &type) |
Definition at line 580 of file G4ModelCommandsT.hh.
G4ModelCmdSetAuxPtsSizeType< M >::G4ModelCmdSetAuxPtsSizeType | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setAuxPtsSizeType" | |||
) | [inline] |
Definition at line 584 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().
00586 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00587 { 00588 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 00589 cmd->SetGuidance("Set auxiliary size type."); 00590 cmd->SetCandidates("none world screen"); 00591 }
void G4ModelCmdSetAuxPtsSizeType< M >::Apply | ( | const G4String & | type | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 595 of file G4ModelCommandsT.hh.
References G4Exception(), JustWarning, G4VModelCommand< T >::Model(), G4VMarker::none, G4VMarker::screen, and G4VMarker::world.
00595 { 00596 G4VMarker::SizeType mySizeType; 00597 00598 if (type == "none") {mySizeType = G4VMarker::none;} 00599 else if (type == "world") {mySizeType = G4VMarker::world;} 00600 else if (type == "screen") {mySizeType = G4VMarker::screen;} 00601 else { 00602 G4ExceptionDescription ed; 00603 ed << "Invalid argument. See command guidance for options."; 00604 G4Exception 00605 ("G4ModelCmdSetAuxPtsSizeType::Apply", 00606 "modeling0112", JustWarning, ed); 00607 return; 00608 } 00609 G4VModelCommand<M>::Model()->SetAuxPtsSizeType(mySizeType); 00610 }