44#include "G4UImessenger.hh"
45#include "G4UIdirectory.hh"
46#include "G4UIcommand.hh"
47#include "G4UIcmdWithADouble.hh"
48#include "G4UIcmdWithADoubleAndUnit.hh"
49#include "G4UIcmdWithAnInteger.hh"
50#include "G4UIcmdWithoutParameter.hh"
51#include "G4UIcmdWith3Vector.hh"
52#include "G4UIcmdWithABool.hh"
57 : fTheBlineTool(aBlineTool)
60 fBlineToolDir->SetGuidance(
"Commands to trace and visualise magnetic field lines.");
61 fBlineToolDir->SetGuidance(
"These commands work only if a magnetic-field is set");
67 fBlineCmd->SetGuidance(
"Compute magnetic field lines for visualisation.");
68 fBlineCmd->SetParameterName(
"nb_of_lines",
false);
69 fBlineCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
100 fDrawCmd->SetGuidance(
"Show the stored magnetic field lines.");
101 fDrawCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
105 fResetCmd->SetGuidance(
"Clear the vectors of lines and points to be drawn.");
106 fResetCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
133 ->GetNewDoubleValue(newValues));
136 ->GetNewBoolValue(newValues));
141 SetDrawColour(
G4Colour(vec.x(),vec.y(),vec.z()));
145 ->GetNewBoolValue(newValues));
148 ->GetNewDoubleValue(newValues));
Definition of the G4BlineEventAction class.
Definition of the G4BlineTracerMessenger class.
Definition of the G4BlineTracer class.
void SetDrawPoints(G4bool aBool)
void ResetVectorObjectToBeDrawn()
void DrawFieldLines(G4double zoom, G4double theta, G4double phi)
void SetDrawBline(G4bool aBool)
void SetPointSize(G4double aVal)
G4BlineTracer * fTheBlineTool
G4UIcmdWith3Vector * fSetDrawColourCmd
void SetNewValue(G4UIcommand *command, G4String newValues) override
G4UIcmdWithADouble * fSetPointSizeCmd
G4UIcmdWithADoubleAndUnit * fSetMaxTrackingStepCmd
G4UIcmdWithAnInteger * fBlineCmd
G4UIcmdWithoutParameter * fDrawCmd
G4UIcmdWithABool * fSetDrawBlineCmd
G4UIcmdWithoutParameter * fResetCmd
~G4BlineTracerMessenger() override
G4UIcmdWithABool * fSetDrawPointsCmd
G4BlineTracerMessenger(G4BlineTracer *aBlineTool)
G4UIdirectory * fBlineToolDir
void SetMaxTrackingStep(G4double max_step)
void ComputeBlines(G4int nlines)
G4BlineEventAction * GetEventAction()