#include <CexmcScenePrimitivesMessenger.hh>
◆ CexmcScenePrimitivesMessenger()
CexmcScenePrimitivesMessenger::CexmcScenePrimitivesMessenger |
( |
CexmcScenePrimitives * |
scenePrimitives | ) |
|
|
explicit |
Definition at line 57 of file CexmcScenePrimitivesMessenger.cc.
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" );
102 parameter->SetParameterCandidates(
"tc rl ic" );
105 parameter->SetGuidance(
"Red component or string, e.g. \"blue\", in which " 106 "case succeeding colour\n components are ignored" );
107 parameter->SetDefaultValue(
"1.0" );
110 parameter->SetGuidance(
"Green component" );
111 parameter->SetDefaultValue( 1.0 );
114 parameter->SetGuidance(
"Blue component" );
115 parameter->SetDefaultValue( 1.0 );
118 parameter->SetGuidance(
"Opacity" );
119 parameter->SetDefaultValue( 1.0 );
void SetParameter(G4UIparameter *const newParameter)
CLHEP::Hep3Vector G4ThreeVector
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
CexmcScenePrimitives * scenePrimitives
G4UIcmdWithoutParameter * clearRadialLines
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
G4UIcmdWith3Vector * drawRadialLine
G4UIcmdWithABool * markTargetCenter
G4UIcmdWithABool * highlightInnerCrystals
static G4String visDirName
void SetDefaultValue(G4ThreeVector defVal)
◆ ~CexmcScenePrimitivesMessenger()
CexmcScenePrimitivesMessenger::~CexmcScenePrimitivesMessenger |
( |
| ) |
|
Definition at line 125 of file CexmcScenePrimitivesMessenger.cc.
G4UIcmdWithoutParameter * clearRadialLines
G4UIcmdWith3Vector * drawRadialLine
G4UIcmdWithABool * markTargetCenter
G4UIcmdWithABool * highlightInnerCrystals
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 135 of file CexmcScenePrimitivesMessenger.cc.
172 std::istringstream iss( value );
174 iss >> name >> redOrString >> green >>
blue >> opacity;
176 if ( std::isalpha( redOrString[
size_t( 0 ) ] ) )
185 colour =
G4Colour( colour.GetRed(), colour.GetGreen(),
186 colour.GetBlue(), opacity );
void SetColour(CexmcSPType primitive, const G4Colour &colour)
void ClearRadialLines(void)
static G4bool GetColour(const G4String &key, G4Colour &result)
void MarkTargetCenter(G4bool on=true)
CexmcScenePrimitives * scenePrimitives
G4UIcmdWithoutParameter * clearRadialLines
static G4bool GetNewBoolValue(const char *paramString)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4double ConvertToDouble(const char *st)
G4UIcmdWith3Vector * drawRadialLine
G4UIcmdWithABool * markTargetCenter
G4UIcmdWithABool * highlightInnerCrystals
void HighlightInnerCrystals(G4bool=true)
void DrawRadialLine(const G4ThreeVector &line)
◆ clearRadialLines
◆ drawRadialLine
◆ highlightInnerCrystals
◆ markTargetCenter
◆ scenePrimitives
◆ setColour
The documentation for this class was generated from the following files: