167 if (!currentViewer) {
170 "ERROR: G4VisCommandsTouchableSet::SetNewValue: no current viewer." 183 std::istringstream iss(newValue);
184 iss >> redOrString >> green >> blue >> opacity;
186 const size_t iPos0 = 0;
187 if (std::isalpha(redOrString[iPos0])) {
190 G4cout <<
"WARNING: Colour \"" << redOrString
191 <<
"\" not found. Defaulting to white and opaque." 199 (colour.GetRed(), colour.GetGreen(), colour.GetBlue(), opacity);
257 if (newValue ==
"dashed") {
259 }
else if (newValue ==
"dotted") {
292 "ERROR: G4VisCommandsTouchableSet::SetNewValue: unrecognised command."
void SetColour(const G4Colour &)
G4VViewer * GetCurrentViewer() const
void SetForceWireframe(G4bool)
static G4ModelingParameters::PVNameCopyNoPath fCurrentTouchablePath
void SetLineStyle(LineStyle)
void SetLineWidth(G4double)
void SetVisibility(G4bool)
static G4bool GetColour(const G4String &key, G4Colour &result)
void SetViewParameters(G4VViewer *, const G4ViewParameters &)
void SetForceSolid(G4bool)
G4UIcmdWithAString * fpCommandSetLineStyle
G4UIcmdWithABool * fpCommandSetForceAuxEdgeVisible
G4UIcmdWithADouble * fpCommandSetLineWidth
G4UIcmdWithABool * fpCommandSetForceSolid
G4GLOB_DLL std::ostream G4cout
G4UIcmdWithABool * fpCommandSetVisibility
static G4bool ConvertToBool(const char *st)
static G4double ConvertToDouble(const char *st)
G4UIcmdWithAnInteger * fpCommandSetLineSegmentsPerCircle
void SetForceAuxEdgeVisible(G4bool)
static G4int ConvertToInt(const char *st)
G4UIcmdWithABool * fpCommandSetForceWireframe
void AddVisAttributesModifier(const G4ModelingParameters::VisAttributesModifier &)
static Verbosity GetVerbosity()
const G4ViewParameters & GetViewParameters() const
G4UIcommand * fpCommandSetColour
void SetDaughtersInvisible(G4bool)
G4UIcmdWithABool * fpCommandSetDaughtersInvisible
G4GLOB_DLL std::ostream G4cerr
void SetForceLineSegmentsPerCircle(G4int nSegments)
static G4VisManager * fpVisManager