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();