#include <G4VisCommandsSet.hh>
Definition at line 89 of file G4VisCommandsSet.hh.
G4VisCommandSetTouchable::G4VisCommandSetTouchable |
( |
| ) |
|
Definition at line 272 of file G4VisCommandsSet.cc.
References G4UIparameter::SetGuidance(), G4UIcommand::SetGuidance(), and G4UIcommand::SetParameter().
276 fpCommand =
new G4UIcommand(
"/vis/set/touchable",
this);
278 (
"Defines touchable for future \"/vis/touchable/set/\" commands.");
280 (
"Please provide a list of space-separated physical volume names and"
281 "\ncopy number pairs starting at the world volume, e.g:"
282 "\n /vis/set/touchable World 0 Envelope 0 Shape1 0"
283 "\n(To get list of touchables, use \"/vis/drawTree\")"
284 "\n(To save, use \"/vis/viewer/save\")");
285 parameter =
new G4UIparameter (
"list",
's', omitable =
false);
287 (
"List of physical volume names and copy number pairs");
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void SetGuidance(const char *theGuidance)
G4VisCommandSetTouchable::~G4VisCommandSetTouchable |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 301 of file G4VisCommandsSet.cc.
References G4VisManager::confirmations, G4VVisCommand::fCurrentTouchablePath, G4VVisCommand::fpVisManager, G4cout, G4endl, G4VisManager::GetVerbosity(), and G4VisManager::warnings.
308 G4String::size_type iBegin, iEnd;
309 iBegin = newValue.find_first_not_of(
' ');
310 while (iBegin != G4String::npos) {
311 iEnd = newValue.find_first_of(
' ',iBegin);
312 if (iEnd == G4String::npos) {
313 iEnd = newValue.length();
316 iBegin = newValue.find_first_not_of(
' ',iEnd);
317 if (iBegin == G4String::npos) {
320 "WARNING: G4VisCommandSetTouchable::SetNewValue"
321 "\n A pair not found. (Did you have an even number of parameters?)"
322 "\n Command ignored."
327 iEnd = newValue.find_first_of(
' ',iBegin);
328 if (iEnd == G4String::npos) {
329 iEnd = newValue.length();
332 std::istringstream iss(newValue.substr(iBegin,iEnd-iBegin));
333 if (!(iss >> copyNo)) {
336 "WARNING: G4VisCommandSetTouchable::SetNewValue"
337 "\n Error reading copy number - it was not numeric?"
338 "\n Command ignored."
343 currentTouchablePath.push_back
345 iBegin = newValue.find_first_not_of(
' ',iEnd);
static G4ModelingParameters::PVNameCopyNoPath fCurrentTouchablePath
G4GLOB_DLL std::ostream G4cout
std::vector< PVNameCopyNo > PVNameCopyNoPath
static Verbosity GetVerbosity()
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: