Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VisCommandManagerMode< Manager > Class Template Reference

#include <G4VisCommandsListManager.hh>

+ Inheritance diagram for G4VisCommandManagerMode< Manager >:

Public Member Functions

 G4VisCommandManagerMode (Manager *, const G4String &placement)
 
virtual ~G4VisCommandManagerMode ()
 
G4String GetCurrentValue (G4UIcommand *)
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const G4String &s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

template<typename Manager>
class G4VisCommandManagerMode< Manager >

Definition at line 167 of file G4VisCommandsListManager.hh.

Constructor & Destructor Documentation

◆ G4VisCommandManagerMode()

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

Definition at line 187 of file G4VisCommandsListManager.hh.

188 :fpManager(manager)
189 ,fPlacement(placement)
190{
191 G4String command = fPlacement+"/mode";
192
193 fpCommand = new G4UIcmdWithAString(command, this);
194 fpCommand->SetGuidance("Set mode of operation");
195 fpCommand->SetParameterName("mode", false);
196 fpCommand->SetCandidates("soft hard");
197}
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)

◆ ~G4VisCommandManagerMode()

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

Definition at line 200 of file G4VisCommandsListManager.hh.

201{
202 delete fpCommand;
203}

Member Function Documentation

◆ GetCurrentValue()

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

Reimplemented from G4UImessenger.

Definition at line 207 of file G4VisCommandsListManager.hh.

208{
209 return "";
210}

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 213 of file G4VisCommandsListManager.hh.

214{
215 assert (0 != fpManager);
216 fpManager->SetMode(name);
218 if (visManager) visManager->NotifyHandlers();
219}
virtual void NotifyHandlers()
static G4VVisManager * GetConcreteInstance()

The documentation for this class was generated from the following file: