187{
189
190 theTracer = theDefaultTracer;
191
193 if (pVViewer) {
195 if (pViewer) {
197 } else {
199 "G4RTMessenger::SetNewValue: Current viewer is not of type RayTracer."
200 "\n Use \"/vis/viewer/select\" or \"/vis/open\"."
202 }
203 }
204
205 if (theTracer == theDefaultTracer) {
207"G4RTMessenger::SetNewValue: No valid current viewer. Using default RayTracer."
209 }
210
211 if(command==columnCmd)
213 else if(command==rowCmd)
215 else if(command==targetCmd)
217 else if(command==eyePosCmd)
219 else if(command==lightCmd)
221 else if(command==spanXCmd)
223 else if(command==headCmd)
225 else if(command==attCmd)
227 else if(command==distCmd)
229 else if(command==bkgColCmd)
230 {
231 G4warn <<
"WARNING: /vis/rayTracer/backgroundColour has been deprecated."
232 "\n Use \"/vis/viewer/set/background\" instead."
234 }
235 else if(command==transCmd)
237 else if(command==fileCmd)
238 { theTracer->
Trace(newValue); }
239}
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()