49 (
"/vis/touchable/set/colour",
this);
52 (
"Use \"/vis/set/touchable\" to set current touchable.");
63 parameter =
new G4UIparameter(
"opacity",
'd', omitable =
true);
68 (
"/vis/touchable/set/daughtersInvisible",
this);
70 (
"Daughters of current touchable invisible: true/false.");
72 (
"Use \"/vis/set/touchable\" to set current touchable.");
77 (
"/vis/touchable/set/forceAuxEdgeVisible",
this);
79 (
"Force auxiliary (soft) edges of current touchable to be visible: true/false.");
81 (
"Use \"/vis/set/touchable\" to set current touchable.");
86 (
"/vis/touchable/set/lineSegmentsPerCircle",
this);
88 (
"For current touchable, set number of line segments per circle, the"
89 "\nprecision with which a curved line or surface is represented by a"
90 "\npolygon or polyhedron, regardless of the view parameters."
91 "\nNegative to pick up G4Polyhedron default value.");
93 (
"Use \"/vis/set/touchable\" to set current touchable.");
98 (
"/vis/touchable/set/forceCloud",
this);
100 (
"Force current touchable always to be drawn as a cloud.");
102 (
"Use \"/vis/set/touchable\" to set current touchable.");
107 (
"/vis/touchable/set/forceSolid",
this);
109 (
"Force current touchable always to be drawn solid (surface drawing).");
111 (
"Use \"/vis/set/touchable\" to set current touchable.");
116 (
"/vis/touchable/set/forceWireframe",
this);
118 (
"Force current touchable always to be drawn as wireframe.");
120 (
"Use \"/vis/set/touchable\" to set current touchable.");
125 (
"/vis/touchable/set/lineStyle",
this);
128 (
"Use \"/vis/set/touchable\" to set current touchable.");
134 (
"/vis/touchable/set/lineWidth",
this);
137 (
"Use \"/vis/set/touchable\" to set current touchable.");
142 (
"/vis/touchable/set/numberOfCloudPoints",
this);
144 (
"For current touchable, set number of line segments per circle, the"
145 "\nprecision with which a curved line or surface is represented by a"
146 "\npolygon or polyhedron, regardless of the view parameters."
147 "\nNegative to pick up G4Polyhedron default value.");
149 (
"Use \"/vis/set/touchable\" to set current touchable.");
154 (
"/vis/touchable/set/visibility",
this);
156 (
"Set visibility of current touchable: true/false.");
158 (
"Use \"/vis/set/touchable\" to set current touchable.");
186 G4VViewer* currentViewer = fpVisManager->GetCurrentViewer();
187 if (!currentViewer) {
190 "ERROR: G4VisCommandsTouchableSet::SetNewValue: no current viewer."
199 if (command == fpCommandSetColour)
203 std::istringstream iss(newValue);
204 iss >> redOrString >> green >> blue >> opacity;
206 ConvertToColour(colour, redOrString, green, blue, opacity);
212 fCurrentTouchableProperties.fTouchablePath));
215 else if (command == fpCommandSetDaughtersInvisible) {
221 fCurrentTouchableProperties.fTouchablePath));
224 else if (command == fpCommandSetForceAuxEdgeVisible) {
230 fCurrentTouchableProperties.fTouchablePath));
233 else if (command == fpCommandSetLineSegmentsPerCircle) {
240 fCurrentTouchableProperties.fTouchablePath));
243 else if (command == fpCommandSetForceCloud) {
249 fCurrentTouchableProperties.fTouchablePath));
252 else if (command == fpCommandSetForceSolid) {
258 fCurrentTouchableProperties.fTouchablePath));
261 else if (command == fpCommandSetForceWireframe) {
267 fCurrentTouchableProperties.fTouchablePath));
270 else if (command == fpCommandSetLineStyle) {
272 if (newValue ==
"dashed") {
274 }
else if (newValue ==
"dotted") {
283 fCurrentTouchableProperties.fTouchablePath));
286 else if (command == fpCommandSetLineWidth) {
292 fCurrentTouchableProperties.fTouchablePath));
295 else if (command == fpCommandSetNumberOfCloudPoints) {
302 fCurrentTouchableProperties.fTouchablePath));
305 else if (command == fpCommandSetVisibility) {
311 fCurrentTouchableProperties.fTouchablePath));
317 "ERROR: G4VisCommandsTouchableSet::SetNewValue: unrecognised command."
323 SetViewParameters(currentViewer,workingVP);