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

geant4 tag 9.4

Location:
trunk/source/visualization/FukuiRenderer/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/FukuiRenderer/src/CVS/Entries

    r1346 r1347  
     1/G4DAWNFILE.cc/1.11/Thu Jun 29 21:16:50 2006//Tgeant4-09-04-ref-00
     2/G4DAWNFILESceneHandler.cc/1.19/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     3/G4DAWNFILEViewer.cc/1.21/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     4/G4FRClientServer.cc/1.7/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     5/G4FukuiRenderer.cc/1.10/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     6/G4FukuiRendererSceneHandler.cc/1.15/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     7/G4FukuiRendererViewer.cc/1.12/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
    18D
  • trunk/source/visualization/FukuiRenderer/src/G4DAWNFILE.cc

    r1337 r1347  
    2626//
    2727// $Id: G4DAWNFILE.cc,v 1.11 2006/06/29 21:16:50 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA
  • 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 ;
  • trunk/source/visualization/FukuiRenderer/src/G4DAWNFILEViewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4DAWNFILEViewer.cc,v 1.20 2006/06/29 21:16:54 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4DAWNFILEViewer.cc,v 1.21 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA
     
    4242#include <assert.h>
    4343
     44#include "G4VisManager.hh"
    4445#include "G4Scene.hh"
    4546#include "G4Vector3D.hh"
     
    101102{
    102103#if defined DEBUG_FR_VIEW
    103   G4cerr << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl;
     104  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     105    G4cout << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl;
    104106#endif
    105107// Do nothing, since DAWN is running as a different process.
     
    113115{
    114116#if defined DEBUG_FR_VIEW
    115         G4cerr << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl;
     117  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     118        G4cout << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl;
    116119#endif
    117120        if (fSceneHandler.fPrimDest.IsOpen()) {
     
    130133{
    131134#if defined DEBUG_FR_VIEW
    132         G4cerr << "***** G4DAWNFILEViewer::DrawView () " << G4endl;
     135  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     136        G4cout << "***** G4DAWNFILEViewer::DrawView () " << G4endl;
    133137#endif
    134138                //-----
     
    149153{
    150154#if defined DEBUG_FR_VIEW
    151         G4cerr << "***** G4DAWNFILEViewer::ShowView () " << G4endl;
     155  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     156        G4cout << "***** G4DAWNFILEViewer::ShowView () " << G4endl;
    152157#endif
    153158
     
    204209///////////////////////
    205210//#if defined DEBUG_FR_VIEW
    206 //  G4cerr << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl;
     211//  G4cout << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl;
    207212//#endif
    208213//////////////////////
     
    242247
    243248#if defined DEBUG_FR_VIEW
    244   G4cerr << "***** G4DAWNFILEViewer::SendViewParameters()  ";
    245   G4cerr << "(GUI parameters)" << G4endl;
     249  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     250    G4cout << "***** G4DAWNFILEViewer::SendViewParameters()  ";
     251    G4cout << "(GUI parameters)" << G4endl;
     252  }
    246253#endif
    247254
     
    271278
    272279        if ( camera_distance < radius ) {
    273                 G4cerr << "WARNING from DAWNFILE driver:" << G4endl;
    274                 G4cerr << "  Camera cannot enter inside objects"      << G4endl;
     280          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     281                G4cout << "WARNING from DAWNFILE driver:" << G4endl;
     282                G4cout << "  Camera cannot enter inside objects"      << G4endl;
     283          }
    275284                camera_distance = radius ;
    276285        }
  • trunk/source/visualization/FukuiRenderer/src/G4FRClientServer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4FRClientServer.cc,v 1.6 2006/06/29 21:16:56 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4FRClientServer.cc,v 1.7 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA, Wed Jul  3 14:14:29 JST 1996
     
    3838//=================//
    3939
     40#include "G4VisManager.hh"
    4041#include "G4FRClientServer.hh"
    4142
     
    119120
    120121#if defined DEBUG_CLIENT_SERVER
    121         G4cerr << ">>>>> receivedMessage = " << fReceivedMessage << G4endl;
     122        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     123          G4cout << ">>>>> receivedMessage = " << fReceivedMessage << G4endl;
    122124#endif
    123125
     
    150152
    151153#if defined DEBUG_CLIENT_SERVER
    152         G4cerr << "<<<<< SentMessage = " << fSendingMessage << G4endl;
     154        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     155          G4cout << "<<<<< SentMessage = " << fSendingMessage << G4endl;
    153156#endif
    154157
     
    255258
    256259// #if defined DEBUG_CLIENT_SERVER
    257         G4cerr << "***** Trying connection to  " << server_hostname << G4endl;
     260        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     261          G4cout << "***** Trying connection to  " << server_hostname << G4endl;
    258262// #endif
    259263       
  • trunk/source/visualization/FukuiRenderer/src/G4FukuiRenderer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4FukuiRenderer.cc,v 1.9 2006/06/29 21:16:58 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4FukuiRenderer.cc,v 1.10 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
     
    4343#define __G_ANSI_C__
    4444
     45#include "G4VisManager.hh"
    4546//#include "G4VisFeaturesOfFukuiRenderer.hh"
    4647#include "G4VSceneHandler.hh"
     
    114115
    115116#if defined DEBUG_FR_SYSTEM
    116         G4cerr << "***** Unix Inet Domain (AUTO mode)" << G4endl;
     117        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     118          G4cout << "***** Unix Inet Domain (AUTO mode)" << G4endl;
    117119#endif
    118120        fIPMode = G4FukuiRenderer::IP_UNIX ;
     
    144146
    145147        if(!flag_connected) {
    146           G4cerr << "***** ERROR: Connection failed" << G4endl;
     148          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     149            G4cout << "***** ERROR: Connection failed" << G4endl;
    147150        }
    148151        else {
    149           G4cerr << "***** GEANT4 is connected to FukuiRenderer DAWN ";
    150           G4cerr << "in the same host" << G4endl;
     152          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     153            G4cout << "***** GEANT4 is connected to FukuiRenderer DAWN ";
     154            G4cout << "in the same host" << G4endl;
     155          }
    151156        }
    152157
     
    159164{
    160165#if defined DEBUG_FR_SYSTEM
    161         G4cerr << "***** INET Domain " << G4endl;
     166  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     167        G4cout << "***** INET Domain " << G4endl;
    162168#endif
    163169        fIPMode = G4FukuiRenderer::IP_INET ;
     
    166172
    167173        if(!flag_connected) {
    168           G4cerr << "***** ERROR: Connection failed" << G4endl;
     174          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     175            G4cout << "***** ERROR: Connection failed" << G4endl;
    169176        }
    170177        else {
    171           G4cerr << "GEANT4 is connected to FukuiRenderer DAWN via socket" ;
    172           G4cerr << G4endl;
     178          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     179            G4cout << "GEANT4 is connected to FukuiRenderer DAWN via socket" ;
     180            G4cout << G4endl;
     181          }
    173182        }
    174183
     
    183192    if ( ++connect_trial > max_port_incr ) {
    184193        this->flag_connected = 0 ;
    185         G4cerr << "***** INET Connection failed."                << G4endl;
    186         G4cerr << "      Maybe, you have not invoked DAWN yet,"  << G4endl;
    187         G4cerr << "      or too many DAWN's are already running" << G4endl;
    188         G4cerr << "      in the server host."                    << G4endl;
     194        if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     195          G4cout << "***** INET Connection failed."                << G4endl;
     196          G4cout << "      Maybe, you have not invoked DAWN yet,"  << G4endl;
     197          G4cout << "      or too many DAWN's are already running" << G4endl;
     198          G4cout << "      in the server host."                    << G4endl;
     199        }
    189200        fPrimDest.IncrementPortNumber( (- FR_MAX_PORT_INCR) );
    190201        return ;
     
    192203            // INET domain connection is established
    193204        this->flag_connected = 1 ;
    194         G4cerr << "***** GEANT4 is connected to port  " ;
    195         G4cerr << fPrimDest.GetPortNumber() ;
    196         G4cerr << "  of server" << G4endl;
     205        if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     206          G4cout << "***** GEANT4 is connected to port  " ;
     207          G4cout << fPrimDest.GetPortNumber() ;
     208          G4cout << "  of server" << G4endl;
     209        }
    197210        break ;
    198211    } else {
     
    200213      this->flag_connected = 0 ;
    201214      fPrimDest.IncrementPortNumber();
    202       G4cerr << "***** GEANT4 incremented targeting port to " ;
    203       G4cerr << fPrimDest.GetPortNumber() << G4endl;
     215      if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     216        G4cout << "***** GEANT4 incremented targeting port to " ;
     217        G4cout << fPrimDest.GetPortNumber() << G4endl;
     218      }
    204219
    205220    } // if-elseif-else
     
    215230
    216231#if defined DEBUG_FR_SYSTEM
    217         G4cerr << "***** UseBSDUnixDomainAuto " << G4endl;
     232        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     233          G4cout << "***** UseBSDUnixDomainAuto " << G4endl;
    218234#endif
    219235        fIPMode = G4FukuiRenderer::IP_UNIX ; // Unix domain
     
    241257                        //----- display status
    242258                if(!flag_connected) {
    243                   G4cerr << "***** ERROR: Connection failed" << G4endl;
     259                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     260                    G4cout << "***** ERROR: Connection failed" << G4endl;
    244261                } else {
    245                   G4cerr << "*** GEANT4 is connected to FukuiRenderer DAWN ";
    246                   G4cerr <<  "in the same host" << G4endl;
     262                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     263                    G4cout << "*** GEANT4 is connected to FukuiRenderer DAWN ";
     264                    G4cout <<  "in the same host" << G4endl;
     265                  }
    247266                }
    248267
  • trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererSceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4FukuiRendererSceneHandler.cc,v 1.14 2006/06/29 21:17:00 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4FukuiRendererSceneHandler.cc,v 1.15 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
     
    4646#include <string.h>
    4747#include "globals.hh"
     48#include "G4VisManager.hh"
    4849#include "G4FRConst.hh"
    4950#include "G4FukuiRenderer.hh"
     
    125126{
    126127#if defined DEBUG_FR_SCENE
    127         G4cerr << "***** ~G4FukuiRendererSceneHandler" << G4endl;
     128  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     129        G4cout << "***** ~G4FukuiRendererSceneHandler" << G4endl;
    128130#endif
    129131  ClearStore (); // clear current scene
     
    137139        {
    138140#if defined DEBUG_FR_SCENE
    139           G4cerr << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl;
     141          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     142            G4cout << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl;
    140143#endif
    141144
     
    173176          //   !SetCamera
    174177#if defined DEBUG_FR_SCENE
    175                 G4cerr << "*****   (!SetCamera in FRBeginModeling())" << G4endl;
     178          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     179                G4cout << "*****   (!SetCamera in FRBeginModeling())" << G4endl;
    176180#endif
    177181          SendStr( FR_SET_CAMERA );
     
    180184          //   !OpenDevice
    181185#if defined DEBUG_FR_SCENE
    182                 G4cerr << "*****   (!OpenDevice in FRBeginModeling())" << G4endl;
     186          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     187                G4cout << "*****   (!OpenDevice in FRBeginModeling())" << G4endl;
    183188#endif
    184189          SendStr( FR_OPEN_DEVICE      );
     
    187192          //   !BeginModeling
    188193#if defined DEBUG_FR_SCENE
    189           G4cerr << "*****   (!BeginModeling in FRBeginModeling())" << G4endl;
     194          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     195          G4cout << "*****   (!BeginModeling in FRBeginModeling())" << G4endl;
    190196#endif
    191197          SendStr( FR_BEGIN_MODELING );  FRflag_in_modeling = true ;
  • trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererViewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4FukuiRendererViewer.cc,v 1.11 2006/06/29 21:17:02 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4FukuiRendererViewer.cc,v 1.12 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
     
    4747#include <assert.h>
    4848
     49#include "G4VisManager.hh"
    4950#include "G4Scene.hh"
    5051#include "G4Vector3D.hh"
     
    7677{
    7778#if defined DEBUG_FR_VIEW
    78   G4cerr << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl;
     79  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     80    G4cout << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl;
    7981#endif
    8082// Do nothing, since DAWN is running as a different process.
     
    8789{
    8890#if defined DEBUG_FR_VIEW
    89   G4cerr << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl;
     91  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     92    G4cout << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl;
    9093#endif
    9194
     
    97100{
    98101#if defined DEBUG_FR_VIEW
    99         G4cerr << "***** G4FukuiRendererViewer::DrawView () " << G4endl;
     102  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     103        G4cout << "***** G4FukuiRendererViewer::DrawView () " << G4endl;
    100104#endif
    101105
     
    116120{
    117121#if defined DEBUG_FR_VIEW
    118         G4cerr << "***** G4FukuiRendererViewer::ShowView () " << G4endl;
     122  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     123        G4cout << "***** G4FukuiRendererViewer::ShowView () " << G4endl;
    119124#endif
    120125
     
    137142{
    138143#if defined DEBUG_FR_VIEW
    139         G4cerr << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl;
     144  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     145        G4cout << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl;
    140146#endif
    141147  fSceneHandler.SendStr    ( FR_WAIT );
    142148  fSceneHandler.GetPrimDest().WaitSendBack( FR_WAIT );
    143149#if defined DEBUG_FR_VIEW
    144         G4cerr << "***** G4FukuiRendererViewer::Wait () : end" << G4endl;
     150  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     151        G4cout << "***** G4FukuiRendererViewer::Wait () : end" << G4endl;
    145152#endif
    146153
     
    153160{
    154161#if defined DEBUG_FR_VIEW
    155         G4cerr << "***** G4FukuiRendererViewer::SendDevice() " << G4endl;
     162  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     163        G4cout << "***** G4FukuiRendererViewer::SendDevice() " << G4endl;
    156164#endif
    157165
     
    168176{
    169177#if defined DEBUG_FR_VIEW
    170         G4cerr << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl;
     178  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     179        G4cout << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl;
    171180#endif
    172181
     
    201210
    202211#if defined DEBUG_FR_VIEW
    203   G4cerr << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl;
     212  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     213    G4cout << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl;
    204214#endif
    205215
     
    229239
    230240        if ( camera_distance < radius ) {
    231                 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
    232                 G4cerr << "  Camera cannot enter inside objects"      << G4endl;
     241          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     242                G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
     243                G4cout << "  Camera cannot enter inside objects"      << G4endl;
     244          }
    233245                camera_distance = radius ;
    234246        }
Note: See TracChangeset for help on using the changeset viewer.