59 scenePrimitives( scenePrimitives_ ), drawRadialLine( NULL ),
60 clearRadialLines( NULL ), markTargetCenter( NULL ),
61 highlightInnerCrystals( NULL ), setColour( NULL )
66 "(both in deg!)\n and length (in cm!)" );
68 "RadialLineLength",
true );
88 "calorimeters on/off" );
98 parameter->
SetGuidance(
"Scene primitive, possible values:\n"
99 " tc - target center mark,\n"
100 " rl - radial lines,\n"
101 " ic - inner crystal highlights" );
105 parameter->
SetGuidance(
"Red component or string, e.g. \"blue\", in which "
106 "case succeeding colour\n components are ignored" );
171 G4Colour colour( 1, green, blue, opacity );
172 std::istringstream iss( value );
174 iss >> name >> redOrString >> green >> blue >> opacity;
176 if ( std::isalpha( redOrString[
size_t( 0 ) ] ) )
void SetGuidance(const char *aGuidance)
CexmcScenePrimitives * scenePrimitives
CLHEP::Hep3Vector G4ThreeVector
static G4double ConvertToDouble(const char *st)
void SetColour(CexmcSPType primitive, const G4Colour &colour)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
void SetGuidance(const char *theGuidance)
static G4String visDirName
static G4bool GetNewBoolValue(const char *paramString)
void SetParameter(G4UIparameter *const newParameter)
G4UIcmdWithoutParameter * clearRadialLines
void SetDefaultValue(const char *theDefaultValue)
const XML_Char int const XML_Char * value
CexmcScenePrimitivesMessenger(CexmcScenePrimitives *scenePrimitives)
void MarkTargetCenter(G4bool on=true)
G4UIcmdWithABool * highlightInnerCrystals
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetNewValue(G4UIcommand *cmd, G4String value)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void ClearRadialLines(void)
G4UIcmdWithABool * markTargetCenter
G4double GetGreen() const
void SetDefaultValue(G4ThreeVector defVal)
void DrawRadialLine(const G4ThreeVector &line)
void HighlightInnerCrystals(G4bool=true)
void SetParameterCandidates(const char *theString)
void AvailableForStates(G4ApplicationState s1)
~CexmcScenePrimitivesMessenger()
G4UIcmdWith3Vector * drawRadialLine
static G4bool GetColour(const G4String &key, G4Colour &result)