G4ModelCmdApplyDoubleAndUnit< M > Class Template Reference

#include <G4ModelApplyCommandsT.hh>

Inheritance diagram for G4ModelCmdApplyDoubleAndUnit< M >:

G4VModelCommand< M > G4UImessenger G4ModelCmdSetTimeSliceInterval< M >

Public Member Functions

 G4ModelCmdApplyDoubleAndUnit (M *model, const G4String &placement, const G4String &cmdName)
virtual ~G4ModelCmdApplyDoubleAndUnit ()
void SetNewValue (G4UIcommand *command, G4String newValue)

Protected Member Functions

virtual void Apply (const G4double &)=0
G4UIcmdWithADoubleAndUnitCommand ()

Detailed Description

template<typename M>
class G4ModelCmdApplyDoubleAndUnit< M >

Definition at line 411 of file G4ModelApplyCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdApplyDoubleAndUnit< M >::G4ModelCmdApplyDoubleAndUnit ( M *  model,
const G4String placement,
const G4String cmdName 
)

Definition at line 435 of file G4ModelApplyCommandsT.hh.

References G4UIcmdWithADoubleAndUnit::SetParameterName().

00436   :G4VModelCommand<M>(model, placement)
00437 {
00438   G4String dir = placement+"/"+model->Name()+"/"+cmdName;
00439 
00440   fpCmd = new G4UIcmdWithADoubleAndUnit(dir, this);
00441   fpCmd->SetParameterName("DoubleAndUnit", false);
00442 }

template<typename M>
G4ModelCmdApplyDoubleAndUnit< M >::~G4ModelCmdApplyDoubleAndUnit (  )  [virtual]

Definition at line 445 of file G4ModelApplyCommandsT.hh.

00446 {  
00447   delete fpCmd;
00448 }


Member Function Documentation

template<typename M>
virtual void G4ModelCmdApplyDoubleAndUnit< M >::Apply ( const G4double  )  [protected, pure virtual]

Implemented in G4ModelCmdSetTimeSliceInterval< M >.

Referenced by G4ModelCmdApplyDoubleAndUnit< M >::SetNewValue().

template<typename M>
G4UIcmdWithADoubleAndUnit* G4ModelCmdApplyDoubleAndUnit< M >::Command (  )  [inline, protected]

Definition at line 426 of file G4ModelApplyCommandsT.hh.

Referenced by G4ModelCmdSetTimeSliceInterval< M >::G4ModelCmdSetTimeSliceInterval().

00426 {return fpCmd;}

template<typename M>
void G4ModelCmdApplyDoubleAndUnit< M >::SetNewValue ( G4UIcommand command,
G4String  newValue 
) [virtual]

Reimplemented from G4UImessenger.

Definition at line 451 of file G4ModelApplyCommandsT.hh.

References G4ModelCmdApplyDoubleAndUnit< M >::Apply(), G4VVisManager::GetConcreteInstance(), and G4UIcmdWithADoubleAndUnit::GetNewDoubleValue().

00452 {
00453   Apply(fpCmd->GetNewDoubleValue(newValue));
00454   G4VVisManager* visManager = G4VVisManager::GetConcreteInstance();
00455   if (visManager) visManager->NotifyHandlers();
00456 }


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