Changeset 1242 for trunk/source/visualization/modeling/src
- Timestamp:
- Apr 12, 2010, 5:20:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/modeling/src/G4TrajectoryDrawerUtils.cc
r1171 r1242 33 33 #include "G4Polyline.hh" 34 34 #include "G4Polymarker.hh" 35 #include "G4Text.hh" 35 36 #include "G4VTrajectory.hh" 36 37 #include "G4VTrajectoryPoint.hh" … … 56 57 for (size_t iAux=0; iAux<auxiliaries->size(); ++iAux) { 57 58 const G4ThreeVector pos((*auxiliaries)[iAux]); 58 trajectoryLine.push_back(pos); 59 auxiliaryPoints.push_back(pos); 60 } 59 #ifdef G4VIS_BUILD_OPTIMISE_1 60 if (trajectoryLine.size() >0) { 61 if (pos != trajectoryLine[trajectoryLine.size()-1]) { 62 trajectoryLine.push_back(pos); 63 auxiliaryPoints.push_back(pos); 64 } 65 } else { 66 #endif 67 trajectoryLine.push_back(pos); 68 auxiliaryPoints.push_back(pos); 69 #ifdef G4VIS_BUILD_OPTIMISE_1 70 } 71 #endif 72 } 61 73 } 62 74 const G4ThreeVector pos(aTrajectoryPoint->GetPosition()); 63 trajectoryLine.push_back(pos); 64 stepPoints.push_back(pos); 65 } 75 #ifdef G4VIS_BUILD_OPTIMISE_1 76 if (trajectoryLine.size() >0) { 77 if (pos != trajectoryLine[trajectoryLine.size()-1]) { 78 trajectoryLine.push_back(pos); 79 stepPoints.push_back(pos); 80 } 81 } else { 82 #endif 83 trajectoryLine.push_back(pos); 84 stepPoints.push_back(pos); 85 #ifdef G4VIS_BUILD_OPTIMISE_1 86 } 87 #endif 88 } 66 89 } 67 90 … … 274 297 275 298 pVVisManager->Draw(stepPoints); 299 #ifdef G4VIS_BUILD_OPTIMISE_2 300 G4Text text = G4Text(""); 301 pVVisManager->Draw(text); 302 #endif 276 303 } 277 304 }
Note: See TracChangeset
for help on using the changeset viewer.