- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/VRML/src/G4VRML2SceneHandlerFunc.icc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2SceneHandlerFunc.icc,v 1.2 0 2006/06/29 21:26:17 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4VRML2SceneHandlerFunc.icc,v 1.21 2010/11/11 00:14:50 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // G4VRML2SceneHandlerFunc.icc … … 33 33 //#define DEBUG_SCENE_FUNC 34 34 35 #include "G4VisManager.hh" 36 35 37 void G4VRML2SCENEHANDLER::AddSolid(const G4Trd& trd) 36 38 { 37 39 #if defined DEBUG_SCENE_FUNC 38 G4cerr << "***** AddSolid trd" << "\n" ; 40 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 41 G4cout << "***** AddSolid trd" << "\n" ; 39 42 #endif 40 43 VRMLBeginModeling () ; … … 45 48 { 46 49 #if defined DEBUG_SCENE_FUNC 47 G4cerr << "***** AddSolid trap" << "\n" ; 50 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 51 G4cout << "***** AddSolid trap" << "\n" ; 48 52 #endif 49 53 VRMLBeginModeling () ; … … 54 58 { 55 59 #if defined DEBUG_SCENE_FUNC 56 G4cerr << "***** AddSolid para" << "\n" ; 60 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 61 G4cout << "***** AddSolid para" << "\n" ; 57 62 #endif 58 63 VRMLBeginModeling () ; … … 63 68 { 64 69 #if defined DEBUG_SCENE_FUNC 65 G4cerr << "***** AddSolid torus" << "\n" ; 70 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 71 G4cout << "***** AddSolid torus" << "\n" ; 66 72 #endif 67 73 VRMLBeginModeling () ; … … 73 79 { 74 80 #if defined DEBUG_SCENE_FUNC 75 G4cerr << "***** AddSolid vsolid" << "\n" ; 81 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 82 G4cout << "***** AddSolid vsolid" << "\n" ; 76 83 #endif 77 84 VRMLBeginModeling () ; … … 82 89 { 83 90 #if defined DEBUG_SCENE_FUNC 84 G4cerr << "***** AddSolid tubs" << "\n" ; 91 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 92 G4cout << "***** AddSolid tubs" << "\n" ; 85 93 #endif 86 94 VRMLBeginModeling () ; … … 93 101 { 94 102 #if defined DEBUG_SCENE_FUNC 95 G4cerr << "***** AddSolid cons" << "\n" ; 103 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 104 G4cout << "***** AddSolid cons" << "\n" ; 96 105 #endif 97 106 VRMLBeginModeling () ; … … 102 111 { 103 112 #if defined DEBUG_SCENE_FUNC 104 G4cerr << "***** AddSolid box" << "\n" ; 113 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 114 G4cout << "***** AddSolid box" << "\n" ; 105 115 #endif 106 116 VRMLBeginModeling () ; … … 112 122 { 113 123 #if defined DEBUG_SCENE_FUNC 114 G4cerr << "***** AddSolid sphere" << "\n" ; 124 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 125 G4cout << "***** AddSolid sphere" << "\n" ; 115 126 #endif 116 127 VRMLBeginModeling () ; … … 121 132 { 122 133 #if defined DEBUG_SCENE_FUNC 123 G4cerr << "***** AddPrimitive polyline" << "\n" ; 134 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 135 G4cout << "***** AddPrimitive polyline" << "\n" ; 124 136 #endif 125 137 … … 170 182 { 171 183 #if defined DEBUG_SCENE_FUNC 172 G4cerr << "***** AddPrimitive(G4Polyhedron)" << "\n"; 184 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 185 G4cout << "***** AddPrimitive(G4Polyhedron)" << "\n"; 173 186 #endif 174 187 … … 253 266 { 254 267 #if defined DEBUG_SCENE_FUNC 255 G4cerr << "***** AddPrimitive nurbs" << "\n" ; 268 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 269 G4cout << "***** AddPrimitive nurbs" << "\n" ; 256 270 #endif 257 G4cerr << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 271 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 272 G4cout << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 258 273 259 274 VRMLBeginModeling () ; … … 263 278 { 264 279 #if defined DEBUG_SCENE_FUNC 265 G4cerr << "***** AddPrimitive text" << "\n" ; 266 #endif 267 G4cerr << 280 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 281 G4cout << "***** AddPrimitive text" << "\n" ; 282 #endif 283 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 284 G4cout << 268 285 "***** void G4VRML2SCENEHANDLER::AddPrimitive( const G4Text& text )" 269 286 " not implemented yet." … … 277 294 { 278 295 #if defined DEBUG_SCENE_FUNC 279 G4cerr << "***** AddPrimitive circle" << "\n" ; 296 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 297 G4cout << "***** AddPrimitive circle" << "\n" ; 280 298 #endif 281 299 VRMLBeginModeling () ; … … 335 353 { 336 354 #if defined DEBUG_SCENE_FUNC 337 G4cerr << "***** AddPrimitive square" << "\n" ; 355 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 356 G4cout << "***** AddPrimitive square" << "\n" ; 338 357 #endif 339 358 … … 396 415 { 397 416 #if defined DEBUG_SCENE_FUNC 398 G4cerr << "***** BeginModeling" << "\n" ; 417 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 418 G4cout << "***** BeginModeling" << "\n" ; 399 419 #endif 400 420 G4VSceneHandler::BeginModeling(); … … 405 425 { 406 426 #if defined DEBUG_SCENE_FUNC 407 G4cerr << "***** EndModeling " << "\n" ; 427 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 428 G4cout << "***** EndModeling " << "\n" ; 408 429 #endif 409 430 G4VSceneHandler::EndModeling(); … … 415 436 fpObjectTransformation = &objectTransformation; 416 437 #if defined DEBUG_SCENE_FUNC 417 G4cerr << "***** BeginPrimitives " << "\n" ; 438 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 439 G4cout << "***** BeginPrimitives " << "\n" ; 418 440 #endif 419 441 VRMLBeginModeling(); … … 423 445 { 424 446 #if defined DEBUG_SCENE_FUNC 425 G4cerr << "***** EndPrimitives " << "\n" ; 447 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 448 G4cout << "***** EndPrimitives " << "\n" ; 426 449 #endif 427 450 G4VSceneHandler::EndPrimitives(); … … 500 523 if (!IS_CONNECTED ) { 501 524 #if defined DEBUG_SCENE_FUNC 502 G4cerr << "***** VRMLBeginModeling (started)" << "\n" ; 525 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 526 G4cout << "***** VRMLBeginModeling (started)" << "\n" ; 503 527 #endif 504 528 this->connectPort(); … … 512 536 if ( IS_CONNECTED ) { 513 537 #if defined DEBUG_SCENE_FUNC 514 G4cerr << "***** VRMLEndModeling (started)" << "\n" ; 538 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 539 G4cout << "***** VRMLEndModeling (started)" << "\n" ; 515 540 #endif 516 541 fDest << "#End of file." << "\n";
Note: See TracChangeset
for help on using the changeset viewer.