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/G4VRML1SceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML1SceneHandler.cc,v 1.10 2006/06/29 21:26:01 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML1SceneHandler.cc,v 1.11 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1SceneHandler.cc
     
    4444
    4545#include "globals.hh"
     46#include "G4VisManager.hh"
    4647#include "G4VPhysicalVolume.hh"
    4748#include "G4LogicalVolume.hh"
     
    8182{
    8283#if defined DEBUG_FR_SCENE
    83         G4cerr << "***** ~G4VRML1SceneHandler" << G4endl;
     84  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     85        G4cout << "***** ~G4VRML1SceneHandler" << G4endl;
    8486#endif
    8587}
     
    101103                if (fDest.connect( (const char * )fSystem.getHostName(), port)) {
    102104                    // INET domain connection is established
    103                         G4cerr << "*** GEANT4 is connected to port  ";
    104                         G4cerr << fDest.getPort();
    105                         G4cerr << " of server  " << fSystem.getHostName() << G4endl;
     105                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     106                        G4cout << "*** GEANT4 is connected to port  ";
     107                        G4cout << fDest.getPort();
     108                        G4cout << " of server  " << fSystem.getHostName() << G4endl;
     109                  }
    106110                        break;
    107111                } else {
    108112                        // Connection failed. Try the next port.
    109                         G4cerr << "*** GEANT4 incremented targeting port to ";
    110                         G4cerr << port << G4endl;
     113                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     114                        G4cout << "*** GEANT4 incremented targeting port to ";
     115                        G4cout << port << G4endl;
     116                  }
    111117                }
    112118
     
    116122
    117123        if (!fDest.isConnected()) {
    118                 G4cerr << "*** INET Connection failed. " << G4endl;
    119                 G4cerr << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
    120                 G4cerr << "    or too many viewers are already running in the " << G4endl;
    121                 G4cerr << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     124          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     125                G4cout << "*** INET Connection failed. " << G4endl;
     126                G4cout << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
     127                G4cout << "    or too many viewers are already running in the " << G4endl;
     128                G4cout << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     129          }
    122130        }
    123131}
     
    126134{
    127135        fDest.close();
    128         G4cerr << "*** INET Connection closed. " << G4endl;
     136        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     137              G4cout << "*** INET Connection closed. " << G4endl;
    129138}
    130139
Note: See TracChangeset for help on using the changeset viewer.