G4ModelCmdSetStepPtsSizeType< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdSetStepPtsSizeType< M >:

G4ModelCmdApplyString< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdSetStepPtsSizeType (M *model, const G4String &placement, const G4String &cmdName="setStepPtsSizeType")

Protected Member Functions

void Apply (const G4String &type)

Detailed Description

template<typename M>
class G4ModelCmdSetStepPtsSizeType< M >

Definition at line 543 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdSetStepPtsSizeType< M >::G4ModelCmdSetStepPtsSizeType ( M *  model,
const G4String placement,
const G4String cmdName = "setStepPtsSizeType" 
) [inline]

Definition at line 547 of file G4ModelCommandsT.hh.

References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().

00549     :G4ModelCmdApplyString<M>(model, placement, cmdName)
00550   {
00551     G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command();
00552     cmd->SetGuidance("Set step size type.");
00553     cmd->SetCandidates("none world screen");
00554   }


Member Function Documentation

template<typename M>
void G4ModelCmdSetStepPtsSizeType< M >::Apply ( const G4String type  )  [inline, protected, virtual]

Implements G4ModelCmdApplyString< M >.

Definition at line 558 of file G4ModelCommandsT.hh.

References G4Exception(), JustWarning, G4VModelCommand< T >::Model(), G4VMarker::none, G4VMarker::screen, and G4VMarker::world.

00558                                    {
00559     G4VMarker::SizeType mySizeType;
00560     
00561     if (type == "none") {mySizeType = G4VMarker::none;}
00562     else if (type == "world") {mySizeType = G4VMarker::world;}
00563     else if (type == "screen") {mySizeType = G4VMarker::screen;}
00564     else {
00565       G4ExceptionDescription ed;
00566       ed << "Invalid argument. See command guidance for options.";
00567       G4Exception
00568         ("G4ModelCmdSetStepPtsSizeType::Apply",
00569          "modeling0111", JustWarning, ed);
00570       return;
00571     }
00572     G4VModelCommand<M>::Model()->SetStepPtsSizeType(mySizeType);
00573   }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:30 2013 for Geant4 by  doxygen 1.4.7