185{
187
188 theTracer = theDefaultTracer;
189
191 if (pVViewer) {
193 if (pViewer) {
195 } else {
197 "G4RTMessenger::SetNewValue: Current viewer is not of type RayTracer."
198 "\n Use \"/vis/viewer/select\" or \"/vis/open\"."
200 }
201 }
202
203 if (theTracer == theDefaultTracer) {
205"G4RTMessenger::SetNewValue: No valid current viewer. Using default RayTracer."
207 }
208
209 if(command==columnCmd)
211 else if(command==rowCmd)
213 else if(command==targetCmd)
215 else if(command==eyePosCmd)
217 else if(command==lightCmd)
219 else if(command==spanXCmd)
221 else if(command==headCmd)
223 else if(command==attCmd)
225 else if(command==distCmd)
227 else if(command==bkgColCmd)
228 {
229 G4cout <<
"WARNING: /vis/rayTracer/backgroundColour has been deprecated."
230 "\n Use \"/vis/viewer/set/background\" instead."
232 }
233 else if(command==transCmd)
235 else if(command==fileCmd)
236 { theTracer->
Trace(newValue); }
237}
G4GLOB_DLL std::ostream G4cout
static void SetIgnoreTransparency(G4bool val)
G4TheRayTracer * GetTracer()
void SetTargetPosition(const G4ThreeVector &val)
void SetViewSpan(G4double val)
virtual void Trace(const G4String &fileName)
void SetNColumn(G4int val)
void SetLightDirection(const G4ThreeVector &val)
void SetDistortion(G4bool val)
void SetAttenuationLength(G4double val)
void SetHeadAngle(G4double val)
void SetEyePosition(const G4ThreeVector &val)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
G4VViewer * GetCurrentViewer() const
static G4VisManager * GetInstance()