G4ModelCmdApplyNull< M > Class Template Reference

#include <G4ModelApplyCommandsT.hh>

Inheritance diagram for G4ModelCmdApplyNull< M >:

G4VModelCommand< M > G4UImessenger G4ModelCmdReset< M >

Public Member Functions

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

Protected Member Functions

virtual void Apply ()=0
G4UIcommandCommand ()

Detailed Description

template<typename M>
class G4ModelCmdApplyNull< M >

Definition at line 313 of file G4ModelApplyCommandsT.hh.


Constructor & Destructor Documentation

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

Definition at line 337 of file G4ModelApplyCommandsT.hh.

00338   :G4VModelCommand<M>(model, placement)
00339 {
00340   G4String dir = placement+"/"+model->Name()+"/"+cmdName;
00341   fpCmd = new G4UIcommand(dir, this);
00342 }

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

Definition at line 345 of file G4ModelApplyCommandsT.hh.

00346 {
00347   delete fpCmd;
00348 }


Member Function Documentation

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

Implemented in G4ModelCmdReset< M >.

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

template<typename M>
G4UIcommand* G4ModelCmdApplyNull< M >::Command (  )  [inline, protected]

Definition at line 328 of file G4ModelApplyCommandsT.hh.

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

00328 {return fpCmd;}

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

Reimplemented from G4UImessenger.

Definition at line 351 of file G4ModelApplyCommandsT.hh.

References G4ModelCmdApplyNull< M >::Apply(), G4VVisManager::GetConcreteInstance(), and G4VVisManager::NotifyHandlers().

00352 {
00353   Apply();
00354   G4VVisManager* visManager = G4VVisManager::GetConcreteInstance();
00355   if (visManager) visManager->NotifyHandlers();
00356 }


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