57 fBlineTool=aBlineTool;
64 for (
size_t i=0; i<fTrajectoryVisAttributes.size(); i++)
65 delete fTrajectoryVisAttributes[i];
79 if(trajectoryContainer)
84 if (fDrawBline || fDrawPoints)
96 for(
G4int i=0; i<n_point; i++)
100 if (fDrawBline) pPolyline.push_back( pos);
101 if (fDrawPoints) stepPoints.push_back(pos);
106 fTrajectoryPolyline.push_back(pPolyline);
107 fTrajectoryPoints.push_back(stepPoints);
117 size_t nline = fTrajectoryPolyline.size();
118 size_t npoints =fTrajectoryPoints.size();
123 G4Exception(
"G4BlineEventAction::DrawFieldLines()",
125 "Missing visualisation driver for visualising magnetic field lines!");
131 G4cout <<
"WARNING - G4BlineEventAction::DrawFieldLines()" <<
G4endl
132 <<
" There is nothing to visualise !" <<
G4endl;
135 ((
G4VisManager*)pVVisManager)->GetCurrentSceneHandler()-> ClearStore ();
138 for (
size_t i=0;i<nline;i++)
139 pVVisManager->
Draw(fTrajectoryPolyline[i]);
140 for (
size_t i=0;i<npoints;i++)
141 pVVisManager->
Draw(fTrajectoryPoints[i]);
151 fTrajectoryVisAttributes.clear();
152 fTrajectoryPolyline.clear();
153 fTrajectoryPoints.clear();
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void ResetVectorObjectToBeDrawn()
static G4VVisManager * GetConcreteInstance()
void DrawFieldLines(G4double zoom, G4double theta, G4double phi)
void SetMarkerType(MarkerType)
void SetFillStyle(FillStyle)
virtual ~G4BlineEventAction()
G4TrajectoryContainer * GetTrajectoryContainer() const
G4BlineEventAction(G4BlineTracer *aBlineTool)
static G4UImanager * GetUIpointer()
virtual void BeginOfEventAction(const G4Event *)
virtual void EndOfEventAction(const G4Event *)
G4GLOB_DLL std::ostream G4cout
Definition of the G4BlineTracer class.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetVisAttributes(const G4VisAttributes *)
Definition of the G4BlineEventAction class.
void SetScreenSize(G4double)