Changeset 933 for trunk/source/visualization/management/src/G4VisManager.cc
- Timestamp:
- Feb 26, 2009, 12:23:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VisManager.cc
r907 r933 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisManager.cc,v 1.11 6 2009/01/13 09:55:15lgarnier Exp $26 // $Id: G4VisManager.cc,v 1.117 2009/02/25 18:28:00 lgarnier Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 800 800 801 801 } 802 void G4VisManager::NotifyHandlers () { 803 804 if (fVerbosity >= confirmations) { 805 G4cout << "G4VisManager::NotifyHandler() called." << G4endl; 806 } 807 808 // Check scenes. 809 G4SceneList& sceneList = fSceneList; 810 G4int iScene, nScenes = sceneList.size (); 811 for (iScene = 0; iScene < nScenes; iScene++) { 812 G4Scene* pScene = sceneList [iScene]; 813 std::vector<G4VModel*>& modelList = pScene -> SetRunDurationModelList (); 814 815 if (modelList.size ()) { 816 pScene->CalculateExtent(); 817 G4UImanager::GetUIpointer () -> 818 ApplyCommand (G4String("/vis/scene/notifyHandlers " + pScene->GetName())); 819 } 820 } 821 822 // Check the manager's current scene... 823 if (fpScene && fpScene -> GetRunDurationModelList ().size () == 0) { 824 if (fVerbosity >= warnings) { 825 G4cout << "WARNING: The current scene \"" 826 << fpScene -> GetName () 827 << "\" has no models." 828 << G4endl; 829 } 830 } 831 832 } 802 833 803 834 G4bool G4VisManager::FilterTrajectory(const G4VTrajectory& trajectory)
Note: See TracChangeset
for help on using the changeset viewer.