50 (
"/vis/touchable/set/colour",
this);
53 (
"Use \"/vis/set/touchable\" to set current touchable.");
64 parameter =
new G4UIparameter(
"opacity",
'd', omitable =
true);
69 (
"/vis/touchable/set/daughtersInvisible",
this);
71 (
"Daughters of current touchable invisible: true/false.");
73 (
"Use \"/vis/set/touchable\" to set current touchable.");
78 (
"/vis/touchable/set/forceAuxEdgeVisible",
this);
80 (
"Force auxiliary (soft) edges of current touchable to be visible: true/false.");
82 (
"Use \"/vis/set/touchable\" to set current touchable.");
87 (
"/vis/touchable/set/lineSegmentsPerCircle",
this);
89 (
"For current touchable, set number of line segments per circle, the"
90 "\nprecision with which a curved line or surface is represented by a"
91 "\npolygon or polyhedron, regardless of the view parameters."
92 "\nNegative to pick up G4Polyhedron default value.");
94 (
"Use \"/vis/set/touchable\" to set current touchable.");
99 (
"/vis/touchable/set/forceSolid",
this);
101 (
"Force current touchable always to be drawn solid (surface drawing).");
103 (
"Use \"/vis/set/touchable\" to set current touchable.");
108 (
"/vis/touchable/set/forceWireframe",
this);
110 (
"Force current touchable always to be drawn as wireframe.");
112 (
"Use \"/vis/set/touchable\" to set current touchable.");
117 (
"/vis/touchable/set/lineStyle",
this);
120 (
"Use \"/vis/set/touchable\" to set current touchable.");
126 (
"/vis/touchable/set/lineWidth",
this);
129 (
"Use \"/vis/set/touchable\" to set current touchable.");
134 (
"/vis/touchable/set/visibility",
this);
136 (
"Set visibility of current touchable: true/false.");
138 (
"Use \"/vis/set/touchable\" to set current touchable.");
164 G4VViewer* currentViewer = fpVisManager->GetCurrentViewer();
165 if (!currentViewer) {
168 "ERROR: G4VisCommandsTouchableSet::SetNewValue: no current viewer."
177 if (command == fpCommandSetColour)
181 std::istringstream iss(newValue);
182 iss >> redOrString >> green >> blue >> opacity;
184 ConvertToColour(colour, redOrString, green, blue, opacity);
190 fCurrentTouchablePath));
193 else if (command == fpCommandSetDaughtersInvisible) {
199 fCurrentTouchablePath));
202 else if (command == fpCommandSetForceAuxEdgeVisible) {
208 fCurrentTouchablePath));
211 else if (command == fpCommandSetLineSegmentsPerCircle) {
218 fCurrentTouchablePath));
221 else if (command == fpCommandSetForceSolid) {
227 fCurrentTouchablePath));
230 else if (command == fpCommandSetForceWireframe) {
236 fCurrentTouchablePath));
239 else if (command == fpCommandSetLineStyle) {
241 if (newValue ==
"dashed") {
243 }
else if (newValue ==
"dotted") {
252 fCurrentTouchablePath));
255 else if (command == fpCommandSetLineWidth) {
261 fCurrentTouchablePath));
264 else if (command == fpCommandSetVisibility) {
270 fCurrentTouchablePath));
276 "ERROR: G4VisCommandsTouchableSet::SetNewValue: unrecognised command."
282 SetViewParameters(currentViewer,workingVP);
G4UIcmdWithABool * fpCommandSetForceSolid
void SetGuidance(const char *aGuidance)
void SetForceAuxEdgeVisible(G4bool=true)
static G4double ConvertToDouble(const char *st)
void SetLineStyle(LineStyle)
G4int ApplyCommand(const char *aCommand)
void SetDefaultValue(G4bool defVal)
G4VisCommandsTouchableSet()
void SetDefaultValue(G4int defVal)
G4UIcmdWithABool * fpCommandSetDaughtersInvisible
static G4bool ConvertToBool(const char *st)
G4UIcmdWithAString * fpCommandSetLineStyle
const G4ViewParameters & GetViewParameters() const
void SetDefaultValue(const char *defVal)
static G4UImanager * GetUIpointer()
static G4int ConvertToInt(const char *st)
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
void SetForceLineSegmentsPerCircle(G4int nSegments)
G4UIcmdWithABool * fpCommandSetForceAuxEdgeVisible
G4String GetCurrentValue(G4UIcommand *command)
G4UIcommand * fpCommandSetColour
G4UIcmdWithADouble * fpCommandSetLineWidth
G4UIcmdWithAnInteger * fpCommandSetLineSegmentsPerCircle
void SetCandidates(const char *candidateList)
const G4String & ConvertToColourGuidance()
G4GLOB_DLL std::ostream G4cerr
void SetForceSolid(G4bool=true)
void SetVisibility(G4bool=true)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
virtual ~G4VisCommandsTouchableSet()
void SetDefaultValue(G4double defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDaughtersInvisible(G4bool=true)
void AddVisAttributesModifier(const G4ModelingParameters::VisAttributesModifier &)
void SetLineWidth(G4double)
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool=true)
G4UIcmdWithABool * fpCommandSetVisibility
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithABool * fpCommandSetForceWireframe
void SetNewValue(G4UIcommand *command, G4String newValue)