186{
187 G4VisManager* pVisManager = G4VisManager::GetInstance();
188
189 theTracer = theDefaultTracer;
190
192 if (pVViewer) {
194 if (pViewer) {
196 } else {
198 "G4RTMessenger::SetNewValue: Current viewer is not of type RayTracer."
199 "\n Use \"/vis/viewer/select\" or \"/vis/open\"."
201 }
202 }
203
204 if (theTracer == theDefaultTracer) {
206"G4RTMessenger::SetNewValue: No valid current viewer. Using default RayTracer."
208 }
209
210 if(command==columnCmd)
212 else if(command==rowCmd)
214 else if(command==targetCmd)
216 else if(command==eyePosCmd)
218 else if(command==lightCmd)
220 else if(command==spanXCmd)
222 else if(command==headCmd)
224 else if(command==attCmd)
226 else if(command==distCmd)
228 else if(command==bkgColCmd)
229 {
230 G4cout <<
"WARNING: /vis/rayTracer/backgroundColour has been deprecated."
231 "\n Use \"/vis/viewer/set/background\" instead."
233 }
234 else if(command==transCmd)
236 else if(command==fileCmd)
237 { theTracer->
Trace(newValue); }
238}
G4DLLIMPORT std::ostream G4cout
void SetIgnoreTransparency(G4bool val)
G4TheRayTracer * GetTracer()
void SetTargetPosition(const G4ThreeVector &val)
void SetViewSpan(G4double val)
void SetNColumn(G4int val)
void SetLightDirection(const G4ThreeVector &val)
void SetDistortion(G4bool val)
void SetAttenuationLength(G4double val)
void SetHeadAngle(G4double val)
void Trace(G4String fileName)
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