#include <G4ModelCommandsT.hh>
Inheritance diagram for G4ModelCmdSetAuxPtsFillStyle< M >:
Public Member Functions | |
G4ModelCmdSetAuxPtsFillStyle (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsFillStyle") | |
Protected Member Functions | |
void | Apply (const G4String &type) |
Definition at line 654 of file G4ModelCommandsT.hh.
G4ModelCmdSetAuxPtsFillStyle< M >::G4ModelCmdSetAuxPtsFillStyle | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName = "setAuxPtsFillStyle" | |||
) | [inline] |
Definition at line 658 of file G4ModelCommandsT.hh.
References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().
00660 :G4ModelCmdApplyString<M>(model, placement, cmdName) 00661 { 00662 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 00663 cmd->SetGuidance("Set auxiliary fill style."); 00664 cmd->SetCandidates("noFill hashed filled"); 00665 }
void G4ModelCmdSetAuxPtsFillStyle< M >::Apply | ( | const G4String & | type | ) | [inline, protected, virtual] |
Implements G4ModelCmdApplyString< M >.
Definition at line 669 of file G4ModelCommandsT.hh.
References G4VMarker::filled, G4Exception(), G4VMarker::hashed, JustWarning, G4VModelCommand< T >::Model(), and G4VMarker::noFill.
00669 { 00670 G4VMarker::FillStyle myFillStyle; 00671 00672 if (type == "noFill") {myFillStyle = G4VMarker::noFill;} 00673 else if (type == "hashed") {myFillStyle = G4VMarker::hashed;} 00674 else if (type == "filled") {myFillStyle = G4VMarker::filled;} 00675 else { 00676 G4ExceptionDescription ed; 00677 ed << "Invalid argument. See command guidance for options."; 00678 G4Exception 00679 ("G4ModelCmdSetAuxPtsFillStyle::Apply", 00680 "modeling0114", JustWarning, ed); 00681 return; 00682 } 00683 G4VModelCommand<M>::Model()->SetAuxPtsFillStyle(myFillStyle); 00684 }