60 theDefaultTracer = p1;
61 theTracer = theDefaultTracer;
68 fileCmd->
SetGuidance(
"Define the name of output JPEG file.");
74 columnCmd->
SetGuidance(
"Define the number of horizontal pixels.");
79 rowCmd->
SetGuidance(
"Define the number of vertical pixels.");
84 targetCmd->
SetGuidance(
"Define the center position of the target.");
91 eyePosCmd->
SetGuidance(
"Eye direction is calculated from (target - eyePosition).");
97 lightCmd->
SetGuidance(
"Define the direction of illumination light.");
98 lightCmd->
SetGuidance(
"The vector needs not to be a unit vector, but it must not be a zero vector.");
101 lightCmd->
SetRange(
"Px != 0 || Py != 0 || Pz != 0");
104 spanXCmd->
SetGuidance(
"Define the angle per 100 pixels.");
111 headCmd->
SetGuidance(
"Define the head direction.");
115 headCmd->
SetRange(
"headAngle>=0. && headAngle<360.");
118 attCmd->
SetGuidance(
"Define the attenuation length for transparent material.");
119 attCmd->
SetGuidance(
"Note that this value is independent to the attenuation length for the optical photon processes.");
126 distCmd->
SetGuidance(
"Distortion effect of the fish eye lens.");
131 transCmd->
SetGuidance(
"Ignore transparency even if the alpha of G4Colour < 1.");
136 bkgColCmd->
SetGuidance(
"Command has been deprecated. Use /vis/viewer/set/background instead.");
161 if(command==columnCmd)
163 else if(command==rowCmd)
165 else if(command==targetCmd)
167 else if(command==eyePosCmd)
169 else if(command==lightCmd)
171 else if(command==spanXCmd)
173 else if(command==headCmd)
175 else if(command==attCmd)
177 else if(command==distCmd)
179 else if(command==transCmd)
181 else if(command==bkgColCmd)
190 theTracer = theDefaultTracer;
199 "G4RTMessenger::SetNewValue: Current viewer is not of type RayTracer."
200 "\n Use \"/vis/viewer/select\" or \"/vis/open\"."
205 if (theTracer == theDefaultTracer) {
207"G4RTMessenger::SetNewValue: No valid current viewer. Using default RayTracer."
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)
231 G4warn <<
"WARNING: /vis/rayTracer/backgroundColour has been deprecated."
232 "\n Use \"/vis/viewer/set/background\" instead."
235 else if(command==transCmd)
237 else if(command==fileCmd)
238 { theTracer->
Trace(newValue); }
CLHEP::Hep3Vector G4ThreeVector
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
virtual G4String GetCurrentValue(G4UIcommand *command)
static G4RTMessenger * GetInstance(G4TheRayTracer *p1)
static G4bool GetIgnoreTransparency()
static void SetIgnoreTransparency(G4bool val)
G4TheRayTracer * GetTracer()
void SetTargetPosition(const G4ThreeVector &val)
G4double GetViewSpan() const
void SetViewSpan(G4double val)
G4double GetHeadAngle() const
virtual void Trace(const G4String &fileName)
G4bool GetDistortion() const
void SetNColumn(G4int val)
void SetLightDirection(const G4ThreeVector &val)
void SetDistortion(G4bool val)
G4ThreeVector GetTargetPosition() const
void SetAttenuationLength(G4double val)
G4Colour GetBackgroundColour() const
G4ThreeVector GetLightDirection() const
G4ThreeVector GetEyePosition() const
void SetHeadAngle(G4double val)
G4double GetAttenuationLength() const
void SetEyePosition(const G4ThreeVector &val)
void SetDefaultUnit(const char *defUnit)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const G4ThreeVector &defVal)
void SetDefaultValue(const G4ThreeVector &defVal)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetDefaultValue(G4double defVal)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
static G4String ConvertToString(G4bool boolVal)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)
G4VViewer * GetCurrentViewer() const
static G4VisManager * GetInstance()