G4ModelCmdSetStepPtsSize< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdSetStepPtsSize< M >:

G4ModelCmdApplyString< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdSetStepPtsSize (M *model, const G4String &placement, const G4String &cmdName="setStepPtsSize")

Protected Member Functions

void Apply (const G4String &sizeString)

Detailed Description

template<typename M>
class G4ModelCmdSetStepPtsSize< M >

Definition at line 433 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

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

Definition at line 437 of file G4ModelCommandsT.hh.

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

00439     :G4ModelCmdApplyString<M>(model, placement, cmdName)
00440   {
00441     G4ModelCmdApplyString<M>::Command()->SetGuidance("Set step points size command");
00442   }


Member Function Documentation

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

Implements G4ModelCmdApplyString< M >.

Definition at line 446 of file G4ModelCommandsT.hh.

References G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4VModelCommand< T >::Model(), and G4VMarker::world.

00446                                           {
00447      std::istringstream iss(sizeString);
00448      G4double size;
00449      G4String unit;
00450      iss >> size >> unit;
00451      if (G4VModelCommand<M>::Model()->GetStepPtsSizeType() == G4VMarker::world)
00452        {
00453          G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString);
00454          G4VModelCommand<M>::Model()->SetStepPtsSize(myDouble);
00455        }
00456      else  // none or screen
00457        {
00458          G4VModelCommand<M>::Model()->SetStepPtsSize(size);
00459        }
00460    }


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