G4VisCommandVerbose Class Reference

#include <G4VisCommands.hh>

Inheritance diagram for G4VisCommandVerbose:

G4VVisCommand G4UImessenger

Public Member Functions

 G4VisCommandVerbose ()
virtual ~G4VisCommandVerbose ()
G4String GetCurrentValue (G4UIcommand *command)
void SetNewValue (G4UIcommand *command, G4String newValue)

Detailed Description

Definition at line 100 of file G4VisCommands.hh.


Constructor & Destructor Documentation

G4VisCommandVerbose::G4VisCommandVerbose (  ) 

Definition at line 355 of file G4VisCommands.cc.

References G4VisManager::VerbosityGuidanceStrings.

00355                                           {
00356   G4bool omitable;
00357 
00358   fpCommand = new G4UIcmdWithAString("/vis/verbose", this);
00359   for (size_t i = 0; i < G4VisManager::VerbosityGuidanceStrings.size(); ++i) {
00360     fpCommand -> SetGuidance(G4VisManager::VerbosityGuidanceStrings[i]);
00361   }
00362   fpCommand -> SetParameterName("verbosity", omitable=true);
00363   fpCommand -> SetDefaultValue("warnings");
00364 }

G4VisCommandVerbose::~G4VisCommandVerbose (  )  [virtual]

Definition at line 366 of file G4VisCommands.cc.

00366                                            {
00367   delete fpCommand;
00368 }


Member Function Documentation

G4String G4VisCommandVerbose::GetCurrentValue ( G4UIcommand command  )  [virtual]

Reimplemented from G4UImessenger.

Definition at line 370 of file G4VisCommands.cc.

00370                                                            {
00371   return G4String();
00372 }

void G4VisCommandVerbose::SetNewValue ( G4UIcommand command,
G4String  newValue 
) [virtual]

Reimplemented from G4UImessenger.

Definition at line 374 of file G4VisCommands.cc.

References G4VVisCommand::fpVisManager, G4cout, G4endl, G4VisManager::GetVerbosityValue(), G4VisManager::SetVerboseLevel(), and G4VisManager::VerbosityString().

00375                                                           {
00376   G4VisManager::Verbosity verbosity =
00377     fpVisManager->GetVerbosityValue(newValue);
00378   fpVisManager->SetVerboseLevel(verbosity);
00379   // Always prints whatever the verbosity...
00380   G4cout << "Visualization verbosity changed to "
00381          << G4VisManager::VerbosityString(verbosity) << G4endl;
00382 }


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