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/FukuiRenderer/src/G4DAWNFILESceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4DAWNFILESceneHandler.cc,v 1.18 2006/06/29 21:16:52 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4DAWNFILESceneHandler.cc,v 1.19 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA
     
    4141#include <string.h>
    4242#include "globals.hh"
     43#include "G4VisManager.hh"
    4344#include "G4FRConst.hh"
    4445#include "G4DAWNFILE.hh"
     
    128129{
    129130#if defined DEBUG_FR_SCENE
    130         G4cerr << "***** ~G4DAWNFILESceneHandler" << G4endl;
     131  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     132        G4cout << "***** ~G4DAWNFILESceneHandler" << G4endl;
    131133#endif
    132134        if (fPrimDest.IsOpen())
     
    158160                if( i == MAX_FILE_INDEX )
    159161                {
    160                   G4cerr << "==========================================="   << G4endl;
    161                   G4cerr << "WARNING MESSAGE from DAWNFILE driver:      "   << G4endl;
    162                   G4cerr << "  This file name is the final one in the   "   << G4endl;
    163                   G4cerr << "  automatic updation of the output file name." << G4endl;
    164                   G4cerr << "  You may overwrite existing files, i.e.   "   << G4endl;
    165                   G4cerr << "  g4_XX.prim and g4_XX.eps                 "   << G4endl;
    166                   G4cerr << "==========================================="   << G4endl;
     162                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     163                    G4cout << "==========================================="   << G4endl;
     164                    G4cout << "WARNING MESSAGE from DAWNFILE driver:      "   << G4endl;
     165                    G4cout << "  This file name is the final one in the   "   << G4endl;
     166                    G4cout << "  automatic updation of the output file name." << G4endl;
     167                    G4cout << "  You may overwrite existing files, i.e.   "   << G4endl;
     168                    G4cout << "  g4_XX.prim and g4_XX.eps                 "   << G4endl;
     169                    G4cout << "==========================================="   << G4endl;
     170                  }
    167171                }
    168172
     
    188192        } // for
    189193
    190         G4cerr << "===========================================    " << G4endl;
    191         G4cerr << "Output file: " <<    fG4PrimFileName             << G4endl;
    192         G4cerr << "Destination directory (current dir if NULL): "       << fG4PrimDestDir    << G4endl;
    193         G4cerr << "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl;
    194         G4cerr << "Note:                                                " << G4endl;
    195         G4cerr << "  * The maximal number is customizable as:           " << G4endl;
    196         G4cerr << "       % setenv  G4DAWNFILE_MAX_FILE_NUM  number " << G4endl;       
    197         G4cerr << "  * The destination directory is customizable as:" << G4endl;
    198         G4cerr << "       % setenv  G4DAWNFILE_DEST_DIR  dir_name/  " << G4endl;       
    199         G4cerr << "     ** Do not forget \"/\" at the end of the    " << G4endl;             
    200         G4cerr << "        dir_name, e.g. \"./tmp/\".  " << G4endl;             
    201         G4cerr << "===========================================      " << G4endl;
     194        G4cout << "===========================================    " << G4endl;
     195        G4cout << "Output file: " <<    fG4PrimFileName             << G4endl;
     196        G4cout << "Destination directory (current dir if NULL): "       << fG4PrimDestDir    << G4endl;
     197        G4cout << "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl;
     198        G4cout << "Note:                                                " << G4endl;
     199        G4cout << "  * The maximal number is customizable as:           " << G4endl;
     200        G4cout << "       % setenv  G4DAWNFILE_MAX_FILE_NUM  number " << G4endl;       
     201        G4cout << "  * The destination directory is customizable as:" << G4endl;
     202        G4cout << "       % setenv  G4DAWNFILE_DEST_DIR  dir_name/  " << G4endl;       
     203        G4cout << "     ** Do not forget \"/\" at the end of the    " << G4endl;             
     204        G4cout << "        dir_name, e.g. \"./tmp/\".  " << G4endl;             
     205        G4cout << "===========================================      " << G4endl;
    202206
    203207} // G4DAWNFILESceneHandler::SetG4PrimFileName()
     
    208212{
    209213#if defined DEBUG_FR_SCENE
    210         G4cerr << "***** BeginSavingG4Prim (called)\n";
     214  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     215        G4cout << "***** BeginSavingG4Prim (called)\n";
    211216#endif
    212217
     
    214219        {
    215220#if defined DEBUG_FR_SCENE
    216                 G4cerr << "*****                   (started) " ;
    217                 G4cerr << "(open g4.prim, ##)"  << G4endl;
     221          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     222                G4cout << "*****                   (started) " ;
     223                G4cout << "(open g4.prim, ##)"  << G4endl;
     224          }
    218225#endif
    219226                SetG4PrimFileName() ; // result set to fG4PrimFileName
     
    228235{
    229236#if defined DEBUG_FR_SCENE
    230         G4cerr << "***** EndSavingG4Prim (called)\n";
     237  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     238        G4cout << "***** EndSavingG4Prim (called)\n";
    231239#endif
    232240
     
    234242        {
    235243#if defined DEBUG_FR_SCENE
    236           G4cerr << "*****                 (started) (close g4.prim)" << G4endl;
     244          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     245            G4cout << "*****                 (started) (close g4.prim)" << G4endl;
    237246#endif
    238247                fPrimDest.Close()               ;
     
    248257        {
    249258#if defined DEBUG_FR_SCENE
    250           G4cerr << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl;
     259          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     260            G4cout << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl;
    251261#endif
    252262
     
    259269                        //----- send SET_CAMERA command
    260270#if defined DEBUG_FR_SCENE
    261                 G4cerr << "*****   (!SetCamera in FRBeginModeling())" << G4endl;
     271                if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     272                  G4cout << "*****   (!SetCamera in FRBeginModeling())" << G4endl;
    262273#endif
    263274                SendStr( FR_SET_CAMERA );
     
    265276                //----- open device
    266277#if defined DEBUG_FR_SCENE
    267                 G4cerr << "*****   (!OpenDevice in FRBeginModeling())" << G4endl;
     278                if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     279                  G4cout << "*****   (!OpenDevice in FRBeginModeling())" << G4endl;
    268280#endif
    269281                SendStr( FR_OPEN_DEVICE      );
     
    271283                //----- begin sending primitives
    272284#if defined DEBUG_FR_SCENE
    273                 G4cerr << "*****   (!BeginModeling in FRBeginModeling())" << G4endl;
     285                if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     286                  G4cout << "*****   (!BeginModeling in FRBeginModeling())" << G4endl;
    274287#endif
    275288                SendStr( FR_BEGIN_MODELING );  FRflag_in_modeling = true ;
Note: See TracChangeset for help on using the changeset viewer.