#include <G4ModelApplyCommandsT.hh>
Inheritance diagram for G4ModelCmdApplyDouble< M >:
Public Member Functions | |
G4ModelCmdApplyDouble (M *model, const G4String &placement, const G4String &cmdName) | |
virtual | ~G4ModelCmdApplyDouble () |
void | SetNewValue (G4UIcommand *command, G4String newValue) |
Protected Member Functions | |
virtual void | Apply (const G4double &)=0 |
G4UIcmdWithADouble * | Command () |
Definition at line 361 of file G4ModelApplyCommandsT.hh.
G4ModelCmdApplyDouble< M >::G4ModelCmdApplyDouble | ( | M * | model, | |
const G4String & | placement, | |||
const G4String & | cmdName | |||
) |
Definition at line 385 of file G4ModelApplyCommandsT.hh.
References G4UIcmdWithADouble::SetParameterName().
00386 :G4VModelCommand<M>(model, placement) 00387 { 00388 G4String dir = placement+"/"+model->Name()+"/"+cmdName; 00389 00390 fpCmd = new G4UIcmdWithADouble(dir, this); 00391 fpCmd->SetParameterName("Double", false); 00392 }
G4ModelCmdApplyDouble< M >::~G4ModelCmdApplyDouble | ( | ) | [virtual] |
virtual void G4ModelCmdApplyDouble< M >::Apply | ( | const G4double & | ) | [protected, pure virtual] |
Referenced by G4ModelCmdApplyDouble< M >::SetNewValue().
G4UIcmdWithADouble* G4ModelCmdApplyDouble< M >::Command | ( | ) | [inline, protected] |
void G4ModelCmdApplyDouble< M >::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 401 of file G4ModelApplyCommandsT.hh.
References G4ModelCmdApplyDouble< M >::Apply(), G4VVisManager::GetConcreteInstance(), and G4UIcmdWithADouble::GetNewDoubleValue().
00402 { 00403 Apply(fpCmd->GetNewDoubleValue(newValue)); 00404 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 00405 if (visManager) visManager->NotifyHandlers(); 00406 }