#include <G4VisCommandsSet.hh>
Definition at line 101 of file G4VisCommandsSet.hh.
G4VisCommandSetTouchable::G4VisCommandSetTouchable |
( |
| ) |
|
Definition at line 309 of file G4VisCommandsSet.cc.
313 fpCommand =
new G4UIcommand(
"/vis/set/touchable",
this);
315 (
"Defines touchable for future \"/vis/touchable/set/\" commands.");
317 (
"Please provide a list of space-separated physical volume names and"
318 "\ncopy number pairs starting at the world volume, e.g:"
319 "\n /vis/set/touchable World 0 Envelope 0 Shape1 0"
320 "\n(To get list of touchables, use \"/vis/drawTree\")"
321 "\n(To save, use \"/vis/viewer/save\")");
322 parameter =
new G4UIparameter (
"list",
's', omitable =
false);
324 (
"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 338 of file G4VisCommandsSet.cc.
345 G4String::size_type iBegin, iEnd;
346 iBegin = newValue.find_first_not_of(
' ');
347 while (iBegin != G4String::npos) {
348 iEnd = newValue.find_first_of(
' ',iBegin);
349 if (iEnd == G4String::npos) {
350 iEnd = newValue.length();
353 iBegin = newValue.find_first_not_of(
' ',iEnd);
354 if (iBegin == G4String::npos) {
357 "WARNING: G4VisCommandSetTouchable::SetNewValue"
358 "\n A pair not found. (Did you have an even number of parameters?)"
359 "\n Command ignored."
364 iEnd = newValue.find_first_of(
' ',iBegin);
365 if (iEnd == G4String::npos) {
366 iEnd = newValue.length();
369 std::istringstream iss(newValue.substr(iBegin,iEnd-iBegin));
370 if (!(iss >> copyNo)) {
373 "WARNING: G4VisCommandSetTouchable::SetNewValue"
374 "\n Error reading copy number - it was not numeric?"
375 "\n Command ignored."
380 currentTouchablePath.push_back
382 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: