#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetAuxPtsType< M >:
Public Member Functions | |
G4ModelCmdSetAuxPtsType (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsType") | |
Protected Member Functions | |
void | Apply (const G4String &type) |
Definition at line 504 of file G4ModelCommandsT.hh.
G4ModelCmdSetAuxPtsType< M >::G4ModelCmdSetAuxPtsType | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setAuxPtsType" | |||
) | [inline] |
Definition at line 508 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().
00510 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00511 { 00512 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 00513 00514 cmd->SetGuidance("Set auxiliary points type."); 00515 cmd->SetCandidates("dots circles squares"); 00516 }
void G4ModelCmdSetAuxPtsType< M >::Apply | ( | const G4String & | type | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 520 of file G4ModelCommandsT.hh.
References G4Polymarker::circles, G4Polymarker::dots, G4Exception(), JustWarning, G4VModelCommand< T >::Model(), and G4Polymarker::squares.
00520 { 00521 G4Polymarker::MarkerType myType; 00522 00523 if (type == "dots") {myType = G4Polymarker::dots;} 00524 else if (type == "circles") {myType = G4Polymarker::circles;} 00525 else if (type == "squares") {myType = G4Polymarker::squares;} 00526 else { 00527 G4ExceptionDescription ed; 00528 ed << "Invalid argument. See command guidance for options."; 00529 G4Exception 00530 ("G4ModelCmdSetAuxPtsType::Apply", 00531 "modeling0110", JustWarning, ed); 00532 return; 00533 } 00534 00535 G4VModelCommand<M>::Model()->SetAuxPtsType(myType); 00536 }