Geant4  10.02.p03
G4VisCommandList Class Reference

#include <G4VisCommands.hh>

Inheritance diagram for G4VisCommandList:
Collaboration diagram for G4VisCommandList:

Public Member Functions

 G4VisCommandList ()
 
virtual ~G4VisCommandList ()
 
G4String GetCurrentValue (G4UIcommand *command)
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 
- Public Member Functions inherited from G4VVisCommand
 G4VVisCommand ()
 
virtual ~G4VVisCommand ()
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Member Functions

 G4VisCommandList (const G4VisCommandList &)
 
G4VisCommandListoperator= (const G4VisCommandList &)
 

Private Attributes

G4UIcmdWithAStringfpCommand
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VVisCommand
static void SetVisManager (G4VisManager *)
 
static const G4ColourGetCurrentColour ()
 
static G4double GetCurrentLineWidth ()
 
static const G4ColourGetCurrentTextColour ()
 
static G4Text::Layout GetCurrentTextLayout ()
 
static G4double GetCurrentTextSize ()
 
- Protected Member Functions inherited from G4VVisCommand
void UpdateVisManagerScene (const G4String &sceneName="")
 
- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (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)
 
- Static Protected Member Functions inherited from G4VVisCommand
static G4String ConvertToString (G4double x, G4double y, const char *unitName)
 
static void ConvertToDoublePair (const G4String &paramString, G4double &xval, G4double &yval)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 
- Static Protected Attributes inherited from G4VVisCommand
static G4VisManagerfpVisManager = 0
 
static G4Colour fCurrentColour = G4Colour::White()
 
static G4double fCurrentLineWidth = 1.
 
static G4Colour fCurrentTextColour = G4Colour::Blue()
 
static G4Text::Layout fCurrentTextLayout = G4Text::left
 
static G4double fCurrentTextSize = 12.
 
static G4ModelingParameters::PVNameCopyNoPath fCurrentTouchablePath
 

Detailed Description

Definition at line 76 of file G4VisCommands.hh.

Constructor & Destructor Documentation

◆ G4VisCommandList() [1/2]

G4VisCommandList::G4VisCommandList ( )

Definition at line 130 of file G4VisCommands.cc.

131 {
132  G4bool omitable;
133 
134  fpCommand = new G4UIcmdWithAString("/vis/list", this);
135  fpCommand -> SetGuidance("Lists visualization parameters.");
136  fpCommand -> SetParameterName("verbosity", omitable=true);
137  fpCommand -> SetDefaultValue("warnings");
138 }
G4UIcmdWithAString * fpCommand
bool G4bool
Definition: G4Types.hh:79

◆ ~G4VisCommandList()

G4VisCommandList::~G4VisCommandList ( )
virtual

Definition at line 140 of file G4VisCommands.cc.

141 {
142  delete fpCommand;
143 }
G4UIcmdWithAString * fpCommand

◆ G4VisCommandList() [2/2]

G4VisCommandList::G4VisCommandList ( const G4VisCommandList )
private

Member Function Documentation

◆ GetCurrentValue()

G4String G4VisCommandList::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 145 of file G4VisCommands.cc.

146 {
147  return "";
148 }

◆ operator=()

G4VisCommandList& G4VisCommandList::operator= ( const G4VisCommandList )
private

◆ SetNewValue()

void G4VisCommandList::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 150 of file G4VisCommands.cc.

151 {
152  G4String& verbosityString = newValue;
153  G4VisManager::Verbosity verbosity =
154  fpVisManager->GetVerbosityValue(verbosityString);
155 
157  G4cout << G4endl;
159  G4cout << G4endl;
161  G4cout << G4endl;
163  G4cout << G4endl;
164  G4UImanager* UImanager = G4UImanager::GetUIpointer();
165  UImanager->ApplyCommand("/vis/scene/list ! " + newValue);
166  UImanager->ApplyCommand("/vis/viewer/list ! " + newValue);
167 
168  G4cout <<
169  "\nAttributes available for modeling and filtering with"
170  "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and"
171  "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands"
172  "\nand by picking:"
173  << G4endl;
174  G4cout
176  G4cout
179  G4cout
182  G4cout
183  << *G4Trajectory().GetAttDefs()
185 
186  G4cout <<
187  "\nGeometry attributes available for touchables by picking:\n";
188  G4cout
190 
191  if (verbosity < G4VisManager::parameters)
192  G4cout <<
193  "\nTo get more information, \"/vis/list all\" or use individual commands"
194  "\n such as (use \"ls\" or \"help\"):"
195  "\n /vis/scene/list all all"
196  "\n /vis/viewer/list all all"
197  "\n /vis/modeling/trajectories/list"
198  "\n /vis/filtering/trajectories/list"
199  << G4endl;
200 }
void PrintAvailableUserVisActions(Verbosity) const
const std::map< G4String, G4AttDef > * GetAttDefs() const
static Verbosity GetVerbosityValue(const G4String &)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
void PrintAvailableGraphicsSystems(Verbosity) const
G4GLOB_DLL std::ostream G4cout
void PrintAvailableColours(Verbosity) const
const std::map< G4String, G4AttDef > * GetAttDefs() const
void PrintAvailableModels(Verbosity) const
#define G4endl
Definition: G4ios.hh:61
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:446
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4VisManager * fpVisManager
Here is the call graph for this function:

Member Data Documentation

◆ fpCommand

G4UIcmdWithAString* G4VisCommandList::fpCommand
private

Definition at line 85 of file G4VisCommands.hh.


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