47 (
"Defines number of line segments per circle for drawing 3D arrows"
48 " for future \"/vis/scene/add/\" commands.");
72 "Number of line segments per circle for drawing 3D arrows for future"
73 "\n \"/vis/scene/add/\" commands has been set to "
86 (
"Defines colour and opacity for future \"/vis/scene/add/\" commands.");
88 (
"(Except \"/vis/scene/add/text\" commands - see \"/vis/set/textColour\".)");
94 (
"Red component or a string, e.g., \"cyan\" (green and blue parameters are ignored).");
97 parameter =
new G4UIparameter (
"green",
'd', omitable =
true);
100 parameter =
new G4UIparameter (
"blue",
'd', omitable =
true);
103 parameter =
new G4UIparameter (
"alpha",
'd', omitable =
true);
125 std::istringstream iss(newValue);
126 iss >> redOrString >> green >> blue >> opacity;
132 "Colour for future \"/vis/scene/add/\" commands has been set to "
134 ".\n(Except \"/vis/scene/add/text\" commands - use \"/vis/set/textColour\".)"
146 (
"Defines line width for future \"/vis/scene/add/\" commands.");
170 "Line width for future \"/vis/scene/add/\" commands has been set to "
183 (
"Defines colour and opacity for future \"/vis/scene/add/text\" commands.");
189 (
"Red component or a string, e.g., \"cyan\" (green and blue parameters are ignored).");
192 parameter =
new G4UIparameter (
"green",
'd', omitable =
true);
195 parameter =
new G4UIparameter (
"blue",
'd', omitable =
true);
198 parameter =
new G4UIparameter (
"alpha",
'd', omitable =
true);
220 std::istringstream iss(newValue);
221 iss >> redOrString >> green >> blue >> opacity;
227 "Colour for future \"/vis/scene/add/text\" commands has been set to "
240 (
"Defines layout future \"/vis/scene/add/text\" commands.");
242 (
"\"left\" (default) for left justification to provided coordinate.");
244 (
"\"centre\" or \"center\" for text centered on provided coordinate.");
246 (
"\"right\" for right justification to provided coordinate.");
267 else if (newValue ==
"centre" || newValue ==
"center")
275 G4cout <<
"Text layout (for future \"text\" commands) has been set to \""
288 (
"Defines text size (pixels) for future \"/vis/scene/add/\" commands.");
312 "Text size for future \"/vis/scene/add/\" commands has been set to "
326 (
"Defines touchable for future \"/vis/touchable/set/\" commands.");
328 (
"Please provide a list of space-separated physical volume names and"
329 "\ncopy number pairs starting at the world volume, e.g:"
330 "\n /vis/set/touchable World 0 Envelope 0 Shape1 0"
331 "\n(To get list of touchables, use \"/vis/drawTree\")"
332 "\n(To save, use \"/vis/viewer/save\")");
333 parameter =
new G4UIparameter (
"list",
's', omitable =
false);
335 (
"List of physical volume names and copy number pairs");
356 G4String::size_type iBegin, iEnd;
357 iBegin = newValue.find_first_not_of(
' ');
358 while (iBegin != G4String::npos) {
359 iEnd = newValue.find_first_of(
' ',iBegin);
360 if (iEnd == G4String::npos) {
361 iEnd = newValue.length();
364 iBegin = newValue.find_first_not_of(
' ',iEnd);
365 if (iBegin == G4String::npos) {
368 "WARNING: G4VisCommandSetTouchable::SetNewValue"
369 "\n A pair not found. (Did you have an even number of parameters?)"
370 "\n Command ignored."
375 iEnd = newValue.find_first_of(
' ',iBegin);
376 if (iEnd == G4String::npos) {
377 iEnd = newValue.length();
380 std::istringstream iss(newValue.substr(iBegin,iEnd-iBegin));
381 if (!(iss >> copyNo)) {
384 "WARNING: G4VisCommandSetTouchable::SetNewValue"
385 "\n Error reading copy number - it was not numeric?"
386 "\n Command ignored."
391 currentTouchablePath.push_back
393 iBegin = newValue.find_first_not_of(
' ',iEnd);
std::vector< PVNameCopyNo > PVNameCopyNoPath
void SetGuidance(const char *aGuidance)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandSetColour()
virtual ~G4VisCommandSetArrow3DLineSegmentsPerCircle()
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetDefaultValue(G4int defVal)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetRange(const char *rs)
static G4double GetNewDoubleValue(const char *paramString)
void SetDefaultValue(const char *defVal)
G4UIcmdWithADouble * fpCommand
void SetNewValue(G4UIcommand *command, G4String newValue)
static G4double fCurrentLineWidth
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandSetTextColour()
G4String GetCurrentValue(G4UIcommand *command)
void SetGuidance(const char *theGuidance)
G4UIcmdWithAnInteger * fpCommand
G4VisCommandSetTextLayout()
void ConvertToColour(G4Colour &colour, const G4String &redOrString, G4double green, G4double blue, G4double opacity)
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandSetArrow3DLineSegmentsPerCircle()
virtual ~G4VisCommandSetTextLayout()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandSetTextSize()
G4VisCommandSetLineWidth()
static Verbosity GetVerbosity()
virtual ~G4VisCommandSetLineWidth()
void SetCandidates(const char *candidateList)
G4UIcmdWithAString * fpCommand
const G4String & ConvertToColourGuidance()
void SetNewValue(G4UIcommand *command, G4String newValue)
static G4Colour fCurrentColour
virtual ~G4VisCommandSetTextSize()
G4VisCommandSetTouchable()
G4UIcmdWithADouble * fpCommand
virtual ~G4VisCommandSetTextColour()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4ModelingParameters::PVNameCopyNoPath fCurrentTouchablePath
void SetDefaultValue(G4double defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
G4GLOB_DLL std::ostream G4cout
G4String GetCurrentValue(G4UIcommand *command)
static G4Text::Layout fCurrentTextLayout
static G4int fCurrentArrow3DLineSegmentsPerCircle
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4Colour fCurrentTextColour
static G4double fCurrentTextSize
static G4VisManager * fpVisManager
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandSetTouchable()