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

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML1FileSceneHandler.cc,v 1.12 2006/06/29 21:25:57 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML1FileSceneHandler.cc,v 1.13 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1FileSceneHandler.cc
     
    4040
    4141#include "globals.hh"
     42#include "G4VisManager.hh"
    4243#include "G4Scene.hh"
    4344#include "G4VPhysicalVolume.hh"
     
    104105{
    105106#if defined DEBUG_FR_SCENE
    106         G4cerr << "***** ~G4VRML1FileSceneHandler" << G4endl;
     107  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     108        G4cout << "***** ~G4VRML1FileSceneHandler" << G4endl;
    107109#endif
    108110        VRMLEndModeling();
     
    134136                if( i == MAX_FILE_INDEX )
    135137                {
    136                   G4cerr << "==========================================="   << G4endl;
    137                   G4cerr << "WARNING MESSAGE from VRML1FILE driver:     "   << G4endl;
    138                   G4cerr << "  This file name is the final one in the   "   << G4endl;
    139                   G4cerr << "  automatic updation of the output file name." << G4endl;
    140                   G4cerr << "  You may overwrite existing files, i.e.   "   << G4endl;
    141                   G4cerr << "  g4_XX.wrl.                               "   << G4endl;
    142                   G4cerr << "==========================================="   << G4endl;
     138                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     139                    G4cout << "==========================================="   << G4endl;
     140                    G4cout << "WARNING MESSAGE from VRML1FILE driver:     "   << G4endl;
     141                    G4cout << "  This file name is the final one in the   "   << G4endl;
     142                    G4cout << "  automatic updation of the output file name." << G4endl;
     143                    G4cout << "  You may overwrite existing files, i.e.   "   << G4endl;
     144                    G4cout << "  g4_XX.wrl.                               "   << G4endl;
     145                    G4cout << "==========================================="   << G4endl;
     146                  }
    143147                }
    144148
     
    166170
    167171        // open a VRML 1.0 file with determined file name
    168         G4cerr << "==========================================="  << G4endl;
    169         G4cerr << "Output VRML 1.0 file: " << fVRMLFileName << G4endl;
    170         G4cerr << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl;
    171         G4cerr << "  (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl;
    172         G4cerr << "===========================================" << G4endl;
    173 
     172        if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     173          G4cout << "==========================================="  << G4endl;
     174          G4cout << "Output VRML 1.0 file: " << fVRMLFileName << G4endl;
     175          G4cout << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl;
     176          G4cout << "  (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl;
     177          G4cout << "===========================================" << G4endl;
     178        }
    174179        fDest.open(fVRMLFileName) ;  fFlagDestOpen =  true ;
    175180}
     
    187192        // close VRML file     
    188193        fDest.close();  fFlagDestOpen = false ;
    189         G4cerr << "*** VRML 1.0 File  " << fVRMLFileName << "  is generated." << G4endl;
     194        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     195          G4cout << "*** VRML 1.0 File  " << fVRMLFileName << "  is generated." << G4endl;
    190196
    191197       
     
    193199
    194200        if ( !strcmp(viewer, NO_VRML_VIEWER )) {
    195                 G4cerr << "MESSAGE from VRML1FILE driver:"     << G4endl;
    196                 G4cerr << "    Set an environmental variable  " ;
    197                 G4cerr <<      ENV_VRML_VIEWER << G4endl;
    198                 G4cerr << "    if you want to visualize the generated VRML file" << G4endl;
    199                 G4cerr << "    automatically.  For example, " << G4endl;
    200                 G4cerr << "    setenv  " << ENV_VRML_VIEWER << "  vrweb " << G4endl;
     201          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     202                G4cout << "MESSAGE from VRML1FILE driver:"     << G4endl;
     203                G4cout << "    Set an environmental variable  " ;
     204                G4cout <<      ENV_VRML_VIEWER << G4endl;
     205                G4cout << "    if you want to visualize the generated VRML file" << G4endl;
     206                G4cout << "    automatically.  For example, " << G4endl;
     207                G4cout << "    setenv  " << ENV_VRML_VIEWER << "  vrweb " << G4endl;
     208          }
    201209        } else {
    202210                sprintf( command, "%s %s", viewer, fVRMLFileName  );   
Note: See TracChangeset for help on using the changeset viewer.