#include <G4ModelApplyCommandsT.hh>
Inheritance diagram for G4ModelCmdApplyDoubleAndUnit< 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 |
G4UIcmdWithADoubleAndUnit * | Command () |
Definition at line 411 of file G4ModelApplyCommandsT.hh.
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 }
G4ModelCmdApplyDoubleAndUnit< M >::~G4ModelCmdApplyDoubleAndUnit | ( | ) | [virtual] |
virtual void G4ModelCmdApplyDoubleAndUnit< M >::Apply | ( | const G4double & | ) | [protected, pure virtual] |
Implemented in G4ModelCmdSetTimeSliceInterval< M >.
Referenced by G4ModelCmdApplyDoubleAndUnit< M >::SetNewValue().
G4UIcmdWithADoubleAndUnit* G4ModelCmdApplyDoubleAndUnit< M >::Command | ( | ) | [inline, protected] |
Definition at line 426 of file G4ModelApplyCommandsT.hh.
Referenced by G4ModelCmdSetTimeSliceInterval< M >::G4ModelCmdSetTimeSliceInterval().
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 }