#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetStepPtsType< M >:
Public Member Functions | |
G4ModelCmdSetStepPtsType (M *model, const G4String &placement, const G4String &cmdName="setStepPtsType") | |
Protected Member Functions | |
void | Apply (const G4String &type) |
Definition at line 467 of file G4ModelCommandsT.hh.
G4ModelCmdSetStepPtsType< M >::G4ModelCmdSetStepPtsType | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setStepPtsType" | |||
) | [inline] |
Definition at line 471 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().
00473 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00474 { 00475 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 00476 cmd->SetGuidance("Set step points type."); 00477 cmd->SetCandidates("dots circles squares"); 00478 }
void G4ModelCmdSetStepPtsType< M >::Apply | ( | const G4String & | type | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 482 of file G4ModelCommandsT.hh.
References G4Polymarker::circles, G4Polymarker::dots, G4Exception(), JustWarning, G4VModelCommand< T >::Model(), and G4Polymarker::squares.
00482 { 00483 G4Polymarker::MarkerType myType; 00484 00485 if (type == "dots") {myType = G4Polymarker::dots;} 00486 else if (type == "circles") {myType = G4Polymarker::circles;} 00487 else if (type == "squares") {myType = G4Polymarker::squares;} 00488 else { 00489 G4ExceptionDescription ed; 00490 ed << "Invalid argument. See command guidance for options."; 00491 G4Exception 00492 ("G4ModelCmdSetStepPtsType::Apply", 00493 "modeling0109", JustWarning, ed); 00494 return; 00495 } 00496 G4VModelCommand<M>::Model()->SetStepPtsType(myType); 00497 }