G4VisCommandList Class Reference

#include <G4VisCommands.hh>

Inheritance diagram for G4VisCommandList:

G4VVisCommand G4UImessenger

Public Member Functions

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

Detailed Description

Definition at line 76 of file G4VisCommands.hh.


Constructor & Destructor Documentation

G4VisCommandList::G4VisCommandList (  ) 

Definition at line 127 of file G4VisCommands.cc.

00128 {
00129   G4bool omitable;
00130 
00131   fpCommand = new G4UIcmdWithAString("/vis/list", this);
00132   fpCommand -> SetGuidance("Lists visualization parameters.");
00133   fpCommand -> SetParameterName("verbosity", omitable=true);
00134   fpCommand -> SetDefaultValue("warnings");
00135 }

G4VisCommandList::~G4VisCommandList (  )  [virtual]

Definition at line 137 of file G4VisCommands.cc.

00138 {
00139   delete fpCommand;
00140 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 142 of file G4VisCommands.cc.

00143 {
00144   return "";
00145 }

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

Reimplemented from G4UImessenger.

Definition at line 147 of file G4VisCommands.cc.

References G4UImanager::ApplyCommand(), G4VVisCommand::fpVisManager, G4cout, G4endl, G4UImanager::GetUIpointer(), G4VisManager::GetVerbosityValue(), G4VisManager::parameters, G4VisManager::PrintAvailableColours(), G4VisManager::PrintAvailableGraphicsSystems(), G4VisManager::PrintAvailableModels(), and G4VisManager::PrintAvailableUserVisActions().

00148 {
00149   G4String& verbosityString = newValue;
00150   G4VisManager::Verbosity verbosity =
00151     fpVisManager->GetVerbosityValue(verbosityString);
00152 
00153   fpVisManager->PrintAvailableGraphicsSystems();
00154   G4cout << G4endl;
00155   fpVisManager->PrintAvailableModels(verbosity);
00156   G4cout << G4endl;
00157   fpVisManager->PrintAvailableUserVisActions(verbosity);
00158   G4cout << G4endl;
00159   fpVisManager->PrintAvailableColours(verbosity);
00160   G4cout << G4endl;
00161   G4UImanager* UImanager = G4UImanager::GetUIpointer();
00162   UImanager->ApplyCommand("/vis/scene/list ! c");
00163   UImanager->ApplyCommand("/vis/viewer/list ! c");
00164 
00165   G4cout <<
00166   "\nAttributes available for modeling and filtering with"
00167   "\n  \"/vis/modeling/trajectories/create/drawByAttribute\" and"
00168   "\n  \"/vis/filtering/trajectories/create/attributeFilter\" commands"
00169   "\nand by picking:"
00170   << G4endl;
00171   G4cout << G4TrajectoriesModel().GetAttDefs();
00172   G4cout << G4RichTrajectory().GetAttDefs()
00173   << G4RichTrajectoryPoint().GetAttDefs();
00174   G4cout << G4SmoothTrajectory().GetAttDefs()
00175   << G4SmoothTrajectoryPoint().GetAttDefs();
00176   G4cout << G4Trajectory().GetAttDefs()
00177   << G4TrajectoryPoint().GetAttDefs();
00178 
00179   G4cout <<
00180   "\nAttributes available for touchables by picking:"
00181   << G4endl;
00182   G4cout << G4PhysicalVolumeModel().GetAttDefs();
00183 
00184   if (verbosity < G4VisManager::parameters)
00185     G4cout <<
00186   "\nTo get more information, \"/vis/list all all\" or use individual commands"
00187   "\n  such as (use \"ls\" or \"help\"):"
00188   "\n    /vis/scene/list all all"
00189   "\n    /vis/viewer/list all all"
00190   "\n    /vis/modeling/trajectories/list"
00191   "\n    /vis/filtering/trajectories/list"
00192            << G4endl;
00193 }


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