Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/VRML/src/G4VRML2SceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2SceneHandler.cc,v 1.12 2006/06/29 21:26:15 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2SceneHandler.cc,v 1.13 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2SceneHandler.cc
     
    4646
    4747#include "globals.hh"
     48#include "G4VisManager.hh"
     49
    4850#include "G4VPhysicalVolume.hh"
    4951#include "G4LogicalVolume.hh"
     
    9395{
    9496#if defined DEBUG_FR_SCENE
    95         G4cerr << "***** ~G4VRML2SceneHandler" << G4endl;
     97  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     98        G4cout << "***** ~G4VRML2SceneHandler" << G4endl;
    9699#endif
    97100}
     
    113116                if (fDest.connect( (const char * )fSystem.getHostName(), port)) {
    114117                    // INET domain connection is established
    115                         G4cerr << "*** GEANT4 is connected to port  ";
    116                         G4cerr << fDest.getPort();
    117                         G4cerr << " of server  " << fSystem.getHostName() << G4endl;
     118                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     119                        G4cout << "*** GEANT4 is connected to port  ";
     120                        G4cout << fDest.getPort();
     121                        G4cout << " of server  " << fSystem.getHostName() << G4endl;
     122                  }
    118123                        break;
    119124                } else {
    120125                        // Connection failed. Try the next port.
    121                         G4cerr << "*** GEANT4 incremented targeting port to ";
    122                         G4cerr << port << G4endl;
     126                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     127                        G4cout << "*** GEANT4 incremented targeting port to ";
     128                        G4cout << port << G4endl;
     129                  }
    123130                }
    124131
     
    128135
    129136        if (!fDest.isConnected()) {
    130                 G4cerr << "*** INET Connection failed. " << G4endl;
    131                 G4cerr << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
    132                 G4cerr << "    or too many viewers are already running in the " << G4endl;
    133                 G4cerr << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     137          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     138                G4cout << "*** INET Connection failed. " << G4endl;
     139                G4cout << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
     140                G4cout << "    or too many viewers are already running in the " << G4endl;
     141                G4cout << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     142          }
    134143        }
    135144}
     
    138147{
    139148        fDest.close();
    140         G4cerr << "*** INET Connection closed. " << G4endl;
     149        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     150              G4cout << "*** INET Connection closed. " << G4endl;
    141151}
    142152
Note: See TracChangeset for help on using the changeset viewer.