G4VisCommandManagerMode< Manager > Class Template Reference

#include <G4VisCommandsListManager.hh>

Inheritance diagram for G4VisCommandManagerMode< Manager >:

G4UImessenger

Public Member Functions

 G4VisCommandManagerMode (Manager *, const G4String &placement)
virtual ~G4VisCommandManagerMode ()
G4String GetCurrentValue (G4UIcommand *)
void SetNewValue (G4UIcommand *command, G4String newValue)

Detailed Description

template<typename Manager>
class G4VisCommandManagerMode< Manager >

Definition at line 168 of file G4VisCommandsListManager.hh.


Constructor & Destructor Documentation

template<typename Manager>
G4VisCommandManagerMode< Manager >::G4VisCommandManagerMode ( Manager *  ,
const G4String placement 
)

Definition at line 188 of file G4VisCommandsListManager.hh.

References G4UIcmdWithAString::SetCandidates(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

00189   :fpManager(manager)
00190   ,fPlacement(placement)
00191 {  
00192   G4String command = fPlacement+"/mode";
00193   
00194   fpCommand = new G4UIcmdWithAString(command, this);      
00195   fpCommand->SetGuidance("Set mode of operation");
00196   fpCommand->SetParameterName("mode", false);       
00197   fpCommand->SetCandidates("soft hard");       
00198 }

template<typename Manager>
G4VisCommandManagerMode< Manager >::~G4VisCommandManagerMode (  )  [virtual]

Definition at line 201 of file G4VisCommandsListManager.hh.

00202 {
00203   delete fpCommand;
00204 }


Member Function Documentation

template<typename Manager>
G4String G4VisCommandManagerMode< Manager >::GetCurrentValue ( G4UIcommand  )  [virtual]

Reimplemented from G4UImessenger.

Definition at line 208 of file G4VisCommandsListManager.hh.

00209 {
00210   return "";
00211 }

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

Reimplemented from G4UImessenger.

Definition at line 214 of file G4VisCommandsListManager.hh.

00215 {
00216   assert (0 != fpManager);
00217   fpManager->SetMode(name);
00218 }    


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