59 fTheBlineTool = aBlineTool;
61 fBlineToolDir->
SetGuidance(
"Commands to trace and visualise magnetic field lines.");
62 fBlineToolDir->
SetGuidance(
"These commands work only if a magnetic-field is set");
68 fBlineCmd->
SetGuidance(
"Compute magnetic field lines for visualisation.");
72 fSetMaxTrackingStepCmd =
74 fSetMaxTrackingStepCmd->
SetGuidance(
"Set the maximum length of tracking step");
75 fSetMaxTrackingStepCmd->
SetGuidance(
"when integrating magnetic field line.");
79 fSetDrawColourCmd->
SetGuidance(
"Set the colour drawing trajectories");
80 fSetDrawColourCmd->
SetGuidance(
"and magnetic field lines.");
84 fSetDrawBlineCmd->
SetGuidance(
"If true field lines are stocked in lines");
89 fSetDrawPointsCmd =
new G4UIcmdWithABool(
"/vis/blineTracer/stockPoints",
this);
90 fSetDrawPointsCmd->
SetGuidance(
"If true step field line points are stocked");
91 fSetDrawPointsCmd->
SetGuidance(
"in vector of points to be drawn.");
96 fSetPointSizeCmd->
SetGuidance(
"Set the size of points for drawing.");
101 fDrawCmd->
SetGuidance(
"Show the stored magnetic field lines.");
106 fResetCmd->
SetGuidance(
"Clear the vectors of lines and points to be drawn.");
116 delete fSetPointSizeCmd;
117 delete fSetDrawPointsCmd;
118 delete fSetDrawBlineCmd;
119 delete fSetDrawColourCmd;
120 delete fSetMaxTrackingStepCmd;
122 delete fBlineToolDir;
130 if (command == fBlineCmd)
132 else if( command == fSetMaxTrackingStepCmd )
134 ->GetNewDoubleValue(newValues));
135 else if( command == fSetDrawBlineCmd )
137 ->GetNewBoolValue(newValues));
138 else if( command == fSetDrawColourCmd )
144 else if( command == fSetDrawPointsCmd )
146 ->GetNewBoolValue(newValues));
147 else if( command == fSetPointSizeCmd )
149 ->GetNewDoubleValue(newValues));
150 else if( command == fDrawCmd )
152 else if( command == fResetCmd )
void SetDrawBline(G4bool aBool)
void ResetVectorObjectToBeDrawn()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void DrawFieldLines(G4double zoom, G4double theta, G4double phi)
void SetDrawPoints(G4bool aBool)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
Definition of the G4BlineTracer class.
void SetGuidance(const char *aGuidance)
Definition of the G4BlineTracerMessenger class.
void AvailableForStates(G4ApplicationState s1)
void ComputeBlines(G4int nlines)
void SetMaxTrackingStep(G4double max_step)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetPointSize(G4double aVal)
virtual ~G4BlineTracerMessenger()
G4BlineEventAction * GetEventAction()
Definition of the G4BlineEventAction class.
G4BlineTracerMessenger(G4BlineTracer *aBlineTool)
virtual void SetNewValue(G4UIcommand *command, G4String newValues)