G4ModelCmdSetAuxPtsSize< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdSetAuxPtsSize< M >:

G4ModelCmdApplyString< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdSetAuxPtsSize (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsSize")

Protected Member Functions

void Apply (const G4String &sizeString)

Detailed Description

template<typename M>
class G4ModelCmdSetAuxPtsSize< M >

Definition at line 399 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

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

Definition at line 403 of file G4ModelCommandsT.hh.

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

00405     :G4ModelCmdApplyString<M>(model, placement, cmdName)
00406   {
00407     G4ModelCmdApplyString<M>::Command()->SetGuidance("Set auxiliary points size command");
00408   }


Member Function Documentation

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

Implements G4ModelCmdApplyString< M >.

Definition at line 412 of file G4ModelCommandsT.hh.

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

00412                                           {
00413      std::istringstream iss(sizeString);
00414      G4double size;
00415      G4String unit;
00416      iss >> size >> unit;
00417      if (G4VModelCommand<M>::Model()->GetAuxPtsSizeType() == G4VMarker::world)
00418        {
00419          G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString);
00420          G4VModelCommand<M>::Model()->SetAuxPtsSize(myDouble);
00421        }
00422      else  // none or screen
00423        {
00424          G4VModelCommand<M>::Model()->SetAuxPtsSize(size);
00425        }
00426    }


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