- Timestamp:
- Nov 3, 2009, 11:17:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VSceneHandler.cc
r1136 r1140 25 25 // 26 26 // 27 // $Id: G4VSceneHandler.cc,v 1.8 3 2008/01/04 22:03:46 allison Exp $27 // $Id: G4VSceneHandler.cc,v 1.86 2009/10/23 07:58:36 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 262 262 263 263 void G4VSceneHandler::AddCompound (const G4VHit& hit) { 264 ((G4VHit&)hit).Draw(); // Cast to non-const because Draw is non-const!!!! 264 static_cast<G4VHit>(hit).Draw(); // Cast because Draw is non-const!!!! 265 } 266 267 void G4VSceneHandler::AddCompound (const G4THitsMap<G4double>& hits) { 268 // Cast because DrawAllHits is non-const!!!! 269 static_cast<G4THitsMap<G4double> >(hits).DrawAllHits(); 265 270 } 266 271 … … 583 588 printf("G4VSceneHandler::ProcessScene : Idle ?\n"); 584 589 #endif 585 // Refresh event from end-of-event model list. Allow only in Idle state... 590 // Refresh event from end-of-event model list. 591 // Allow only in Idle or GeomClosed state... 586 592 G4StateManager* stateManager = G4StateManager::GetStateManager(); 587 593 G4ApplicationState state = stateManager->GetCurrentState(); 588 if (state == G4State_Idle ) {594 if (state == G4State_Idle || state == G4State_GeomClosed) { 589 595 #ifdef G4DEBUG_VIS_MANAGEMENT 590 596 printf("G4VSceneHandler::ProcessScene : IDLE\n");
Note: See TracChangeset
for help on using the changeset viewer.