Changeset 1241 for trunk/source/visualization/management
- Timestamp:
- Mar 10, 2010, 11:29:32 AM (16 years ago)
- Location:
- trunk/source/visualization/management
- Files:
-
- 4 edited
-
GNUmakefile (modified) (1 diff)
-
History (modified) (2 diffs)
-
src/G4VSceneHandler.cc (modified) (4 diffs)
-
src/G4VisManager.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/GNUmakefile
r1238 r1241 1 # $Id: GNUmakefile,v 1.1 6 2009/11/04 12:58:43 allisonExp $1 # $Id: GNUmakefile,v 1.17 2010/03/08 16:34:17 lgarnier Exp $ 2 2 # ------------------------------------------------------------- 3 3 # GNUmakefile for visualization library. John Allison, 5/7/95. -
trunk/source/visualization/management/History
r1228 r1241 1 $Id: History,v 1.13 7 2009/11/22 14:08:09 allisonExp $1 $Id: History,v 1.138 2010/03/08 16:34:17 lgarnier Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 8th March 2010 Laurent Garnier 29 -G4VisManager.cc : Add protection against null pointer 28 30 29 31 22nd November 2009 John Allison (visman-V09-02-08) -
trunk/source/visualization/management/src/G4VSceneHandler.cc
r1238 r1241 118 118 119 119 G4VSceneHandler::~G4VSceneHandler () { 120 // G4ViewerListIterator i;121 // for (i = fViewerList.begin(); i != fViewerList.end(); ++i) {122 // delete *i;123 // }124 120 G4VViewer* last; 125 121 while( ! fViewerList.empty() ) { … … 471 467 472 468 void G4VSceneHandler::RequestPrimitives (const G4VSolid& solid) { 473 #ifdef G4DEBUG_VIS_MANAGEMENT474 printf("G4VSceneHandler::RequestPrimitives\n");475 #endif476 469 BeginPrimitives (*fpObjectTransformation); 477 470 G4NURBS* pNURBS = 0; … … 520 513 break; 521 514 } 522 #ifdef G4DEBUG_VIS_MANAGEMENT523 printf("G4VSceneHandler::RequestPrimitives BEFORE END\n");524 #endif525 515 EndPrimitives (); 526 #ifdef G4DEBUG_VIS_MANAGEMENT527 printf("G4VSceneHandler::RequestPrimitives END\n");528 #endif529 516 } 530 517 531 518 void G4VSceneHandler::ProcessScene (G4VViewer&) { 532 #ifdef G4DEBUG_VIS_MANAGEMENT533 printf("G4VSceneHandler::ProcessScene\n");534 #endif535 519 536 520 if (!fpScene) return; … … 667 651 668 652 fMarkForClearingTransientStore = tmpMarkForClearingTransientStore; 669 #ifdef G4DEBUG_VIS_MANAGEMENT670 printf("G4VSceneHandler::ProcessScene END\n");671 #endif672 653 } 673 654 -
trunk/source/visualization/management/src/G4VisManager.cc
r1170 r1241 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisManager.cc,v 1.12 2 2009/11/04 12:58:00 allisonExp $26 // $Id: G4VisManager.cc,v 1.123 2010/03/08 16:34:17 lgarnier Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 174 174 175 175 G4VisManager::~G4VisManager () { 176 printf("G4VisManager::~G4VisManager DELETING \n");177 176 fpInstance = 0; 178 177 size_t i; 179 178 for (i = 0; i < fSceneList.size (); ++i) { 180 printf("G4VisManager::~G4VisManager DELETING 1 \n");181 179 delete fSceneList[i]; 182 180 } 183 181 for (i = 0; i < fAvailableSceneHandlers.size (); ++i) { 184 printf("G4VisManager::~G4VisManager DELETING 2\n");185 182 if (fAvailableSceneHandlers[i] != NULL) { 186 183 delete fAvailableSceneHandlers[i]; … … 188 185 } 189 186 for (i = 0; i < fAvailableGraphicsSystems.size (); ++i) { 190 printf("G4VisManager::~G4VisManager DELETING 3\n");191 187 if (fAvailableGraphicsSystems[i]) { 192 188 delete fAvailableGraphicsSystems[i]; … … 198 194 } 199 195 for (i = 0; i < fMessengerList.size (); ++i) { 200 printf("G4VisManager::~G4VisManager DELETING 4\n");201 196 delete fMessengerList[i]; 202 197 } 203 198 for (i = 0; i < fDirectoryList.size (); ++i) { 204 printf("G4VisManager::~G4VisManager DELETING 5\n");205 199 delete fDirectoryList[i]; 206 200 } 207 201 208 printf("G4VisManager::~G4VisManager DELETING 6\n");209 202 delete fpTrajDrawModelMgr; 210 printf("G4VisManager::~G4VisManager DELETING 7\n");211 203 delete fpTrajFilterMgr; 212 printf("G4VisManager::~G4VisManager DELETING 8\n");213 204 delete fpHitFilterMgr; 214 printf("G4VisManager::~G4VisManager DELETING 9\n");215 205 } 216 206 … … 388 378 return happy; 389 379 } 390 391 392 380 393 381 const G4VTrajectoryModel* … … 830 818 } 831 819 832 }820 } 833 821 void G4VisManager::NotifyHandlers () { 834 822
Note:
See TracChangeset
for help on using the changeset viewer.
