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

#include <G4VisCommandsListManager.hh>

Inheritance diagram for G4VisCommandListManagerSelect< Manager >:

Public Member Functions

 G4VisCommandListManagerSelect (Manager *, const G4String &placement)
virtual ~G4VisCommandListManagerSelect ()
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 (const 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 G4VisCommandListManagerSelect< Manager >

Definition at line 111 of file G4VisCommandsListManager.hh.

Constructor & Destructor Documentation

◆ G4VisCommandListManagerSelect()

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

Definition at line 133 of file G4VisCommandsListManager.hh.

134 :fpManager(manager)
135 ,fPlacement(placement)
136{
137 G4String command = placement+"/select";
138 G4String guidance = "Select created object";
139
140 fpCommand = new G4UIcmdWithAString(command, this);
141 fpCommand->SetGuidance(guidance);
142 fpCommand->SetParameterName("name", false);
143}

◆ ~G4VisCommandListManagerSelect()

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

Definition at line 146 of file G4VisCommandsListManager.hh.

147{
148 delete fpCommand;
149}

Member Function Documentation

◆ GetCurrentValue()

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

Reimplemented from G4UImessenger.

Definition at line 153 of file G4VisCommandsListManager.hh.

154{
155 return "";
156}

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 159 of file G4VisCommandsListManager.hh.

160{
161 assert (0 != fpManager);
162 fpManager->SetCurrent(name);
163}

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