#include <G4VisCommandsSet.hh>
Inheritance diagram for G4VisCommandSetLineWidth:
Public Member Functions | |
G4VisCommandSetLineWidth () | |
virtual | ~G4VisCommandSetLineWidth () |
G4String | GetCurrentValue (G4UIcommand *command) |
void | SetNewValue (G4UIcommand *command, G4String newValue) |
Definition at line 66 of file G4VisCommandsSet.hh.
G4VisCommandSetLineWidth::G4VisCommandSetLineWidth | ( | ) |
Definition at line 117 of file G4VisCommandsSet.cc.
References G4UIcmdWithADouble::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcmdWithADouble::SetParameterName(), and G4UIcommand::SetRange().
00118 { 00119 G4bool omitable; 00120 fpCommand = new G4UIcmdWithADouble("/vis/set/lineWidth", this); 00121 fpCommand->SetGuidance 00122 ("Defines lineWidth for future \"/vis/scene/add/\" commands."); 00123 fpCommand->SetParameterName ("lineWidth", omitable = true); 00124 fpCommand->SetDefaultValue (1.); 00125 fpCommand->SetRange("lineWidth >= 1."); 00126 }
G4VisCommandSetLineWidth::~G4VisCommandSetLineWidth | ( | ) | [virtual] |
G4String G4VisCommandSetLineWidth::GetCurrentValue | ( | G4UIcommand * | command | ) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 133 of file G4VisCommandsSet.cc.
00134 { 00135 return G4String(); 00136 }
void G4VisCommandSetLineWidth::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 138 of file G4VisCommandsSet.cc.
References G4VisManager::confirmations, G4VVisCommand::fCurrentLineWidth, G4VVisCommand::fpVisManager, G4cout, G4endl, G4UIcmdWithADouble::GetNewDoubleValue(), and G4VisManager::GetVerbosity().
00139 { 00140 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); 00141 00142 fCurrentLineWidth = fpCommand->GetNewDoubleValue(newValue); 00143 00144 if (verbosity >= G4VisManager::confirmations) { 00145 G4cout << 00146 "Line width for future \"/vis/scene/add/\" commands has been set to " 00147 << fCurrentLineWidth 00148 << G4endl; 00149 } 00150 }