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

geant4 tag 9.4

Location:
trunk/source/visualization/FukuiRenderer
Files:
22 edited

Legend:

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

    r1346 r1347  
    33/CMakeLists.txt/1.1/Wed Sep 29 19:11:33 2010//Tgeant4-09-04-ref-00
    44/sources.cmake/1.1/Wed Sep 29 19:11:41 2010//Tgeant4-09-04-ref-00
     5/CUSTOMIZE/1.2/Mon Sep  2 05:41:38 2002//Tgeant4-09-04-ref-00
     6/GNUmakefile/1.6/Wed Oct 21 14:59:17 2009//Tgeant4-09-04-ref-00
     7/History/1.29/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     8/README/1.2/Thu Nov  4 02:06:43 1999//Tgeant4-09-04-ref-00
  • trunk/source/visualization/FukuiRenderer/History

    r1294 r1347  
    1 $Id: History,v 1.28 2010/05/30 10:18:32 allison Exp $
     1$Id: History,v 1.29 2010/11/11 01:13:42 akimura Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/FukuiRenderer sub-category
    2121---------------------------------------------------------
     22
     2311 November 2010  Akinori Kimura (DAWN-V09-03-01)
     24- Replaced G4cerr with G4cout and added the following line before G4cout.
     25  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
    2226
    232730th May 2010  John Allison  (DAWN-V09-03-00)
  • trunk/source/visualization/FukuiRenderer/include/CVS/Entries

    r1346 r1347  
     1/G4DAWNFILE.hh/1.9/Thu Jun 29 21:16:28 2006//Tgeant4-09-04-ref-00
     2/G4DAWNFILESceneHandler.hh/1.18/Sun May 30 10:18:32 2010//Tgeant4-09-04-ref-00
     3/G4DAWNFILEViewer.hh/1.10/Thu Jun 29 21:16:32 2006//Tgeant4-09-04-ref-00
     4/G4FRClientServer.hh/1.7/Thu Jun 29 21:16:34 2006//Tgeant4-09-04-ref-00
     5/G4FRConst.hh/1.7/Thu Jun 29 21:16:36 2006//Tgeant4-09-04-ref-00
     6/G4FRFeatures.hh/1.6/Thu Jun 29 21:16:38 2006//Tgeant4-09-04-ref-00
     7/G4FRSceneFunc.icc/1.16/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00
     8/G4FRofstream.hh/1.9/Thu Jun 29 21:16:42 2006//Tgeant4-09-04-ref-00
     9/G4FukuiRenderer.hh/1.8/Thu Jun 29 21:16:44 2006//Tgeant4-09-04-ref-00
     10/G4FukuiRendererSceneHandler.hh/1.17/Sun May 30 10:18:32 2010//Tgeant4-09-04-ref-00
     11/G4FukuiRendererViewer.hh/1.8/Thu Jun 29 21:16:48 2006//Tgeant4-09-04-ref-00
    112D
  • trunk/source/visualization/FukuiRenderer/include/G4DAWNFILE.hh

    r1337 r1347  
    2626//
    2727// $Id: G4DAWNFILE.hh,v 1.9 2006/06/29 21:16:28 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/include/G4DAWNFILESceneHandler.hh

    r1337 r1347  
    2626//
    2727// $Id: G4DAWNFILESceneHandler.hh,v 1.18 2010/05/30 10:18:32 allison 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/include/G4DAWNFILEViewer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4DAWNFILEViewer.hh,v 1.10 2006/06/29 21:16:32 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/include/G4FRClientServer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FRClientServer.hh,v 1.7 2006/06/29 21:16:34 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA, Wed Jul  3 14:13:52 JST 1996
  • trunk/source/visualization/FukuiRenderer/include/G4FRConst.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FRConst.hh,v 1.7 2006/06/29 21:16:36 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// Satoshi TANAKA, Tue Jul  2 15:30:49 JST 1996
  • trunk/source/visualization/FukuiRenderer/include/G4FRFeatures.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FRFeatures.hh,v 1.6 2006/06/29 21:16:38 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030#if !defined G4_FR_FEATURES_HH
  • trunk/source/visualization/FukuiRenderer/include/G4FRSceneFunc.icc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4FRSceneFunc.icc,v 1.15 2006/07/10 15:31:45 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4FRSceneFunc.icc,v 1.16 2010/11/11 01:13:42 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030
     31#include "G4VisManager.hh"
    3132#include "G4PhysicalVolumeModel.hh"
    3233#include "G4LogicalVolume.hh"
     
    3839{
    3940#if defined DEBUG_FR_SCENE
    40       G4cerr << "***** AddPrimitive\n";
     41  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     42      G4cout << "***** AddPrimitive\n";
    4143#endif
    4244                //----- Initialize Fukui Renderer IF NECESSARY
     
    8486                //-----
    8587#if defined DEBUG_FR_SCENE
    86         G4cerr << "***** AddPrimitive( G4NURBS )\n";
     88  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     89        G4cout << "***** AddPrimitive( G4NURBS )\n";
    8790#endif
    8891
     
    102105                //-----
    103106#if defined DEBUG_FR_SCENE
    104         G4cerr << "***** AddPrimitive( G4Text )\n";
     107  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     108        G4cout << "***** AddPrimitive( G4Text )\n";
    105109#endif
    106110                //----- Initialize DAWN IF NECESSARY
     
    135139        int   MAX_STR_LENGTH   =  COMMAND_BUF_SIZE - 100 ;
    136140        if  ( MAX_STR_LENGTH <= 0 ) {
    137                 G4cerr << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << G4endl;
    138                 G4cerr << "                        G4Text Visualization is aborted" << G4endl;
    139                 return ;
     141          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     142                G4cout << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << G4endl;
     143                G4cout << "                        G4Text Visualization is aborted" << G4endl;
     144          }
     145          return ;
    140146        }
    141147        char*  buf  = new char [ (MAX_STR_LENGTH + 1) ] ;
     
    175181                //-----
    176182#if defined DEBUG_FR_SCENE
    177         G4cerr << "***** AddPrimitive( G4Circle )\n";
     183  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     184        G4cout << "***** AddPrimitive( G4Circle )\n";
    178185#endif
    179186                //----- Initialize Fukui Renderer IF NECESSARY
     
    218225                //-----
    219226#if defined DEBUG_FR_SCENE
    220         G4cerr << "***** AddPrimitive( G4Square )\n";
     227  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     228        G4cout << "***** AddPrimitive( G4Square )\n";
    221229#endif
    222230                //----- Initialize Fukui Renderer IF NECESSARY
     
    261269                //-----
    262270#if defined DEBUG_FR_SCENE
    263         G4cerr << "***** AddPrimitive( G4Polyhedron )\n";
     271  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     272        G4cout << "***** AddPrimitive( G4Polyhedron )\n";
    264273#endif
    265274
     
    310319                        break;
    311320                default:
    312                         G4cerr <<
    313         "ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n";
    314       G4PhysicalVolumeModel* pPVModel =
    315         dynamic_cast<G4PhysicalVolumeModel*>(fpModel);
    316       if (pPVModel) G4cerr <<
    317         "Volume " << pPVModel->GetCurrentPV()->GetName() <<
    318         ", Solid " << pPVModel->GetCurrentLV()->GetSolid()->GetName() <<
    319         " (" << pPVModel->GetCurrentLV()->GetSolid()->GetEntityType();
    320                         G4cerr <<
    321         "\nG4Polyhedron facet with " << i << " edges" << G4endl;       
     321                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     322                        G4cout <<
     323                          "ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n";
     324                  G4PhysicalVolumeModel* pPVModel =
     325                    dynamic_cast<G4PhysicalVolumeModel*>(fpModel);
     326                  if (pPVModel)
     327                    if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     328                      G4cout <<
     329                        "Volume " << pPVModel->GetCurrentPV()->GetName() <<
     330                        ", Solid " << pPVModel->GetCurrentLV()->GetSolid()->GetName() <<
     331                        " (" << pPVModel->GetCurrentLV()->GetSolid()->GetEntityType();
     332                      G4cout <<
     333                        "\nG4Polyhedron facet with " << i << " edges" << G4endl;
     334                    }
    322335                }
    323336        }
     
    334347//////////////////////////////////////////////////
    335348//#if defined DEBUG_FR_SCENE
    336 //      G4cerr << "***** SendNdiv() (/Ndiv)" << G4endl;
     349//      G4cout << "***** SendNdiv() (/Ndiv)" << G4endl;
    337350//#endif
    338351//////////////////////////////////////////////////
     
    348361        // } else {
    349362#if defined DEBUG_FR_SCENE
    350            G4cerr << "WARNING: GetNoOfSides() failed. " ;
    351            G4cerr << "The default value " << num_division ;
    352            G4cerr << " is assigned." << G4endl;
     363           if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     364             G4cout << "WARNING: GetNoOfSides() failed. " ;
     365             G4cout << "The default value " << num_division ;
     366             G4cout << " is assigned." << G4endl;
     367           }
    353368#endif
    354369        //}
     
    359374//////////////////////////////////////////////////
    360375//#if defined DEBUG_FR_SCENE
    361 //      G4cerr << "Ndiv = " << num_division << G4endl;
     376//      G4cout << "Ndiv = " << num_division << G4endl;
    362377//#endif
    363378//////////////////////////////////////////////////
     
    374389                //-----                 
    375390#if defined DEBUG_FR_SCENE
    376         G4cerr << "***** FREndModeling (called)" << G4endl;
     391  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     392        G4cout << "***** FREndModeling (called)" << G4endl;
    377393#endif
    378394        if( FRIsInModeling() ) {
    379395
    380396#if defined DEBUG_FR_SCENE
    381                 G4cerr << "***** FREndModeling (started) " ;
    382                 G4cerr << "(/EndModeling, /DrawAll, /CloseDevice)" << G4endl;
     397          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     398                G4cout << "***** FREndModeling (started) " ;
     399                G4cout << "(/EndModeling, /DrawAll, /CloseDevice)" << G4endl;
     400          }
    383401#endif
    384402
     
    407425{
    408426#if defined DEBUG_FR_SCENE
    409         G4cerr << "***** BeginPrimitives \n";
     427  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     428        G4cout << "***** BeginPrimitives \n";
    410429#endif
    411430
     
    422441{
    423442#if defined DEBUG_FR_SCENE
    424         G4cerr << "***** EndPrimitives \n";
     443  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     444        G4cout << "***** EndPrimitives \n";
    425445#endif
    426446  G4VSceneHandler::EndPrimitives ();
     
    434454{
    435455#if defined DEBUG_FR_SCENE
    436         G4cerr << "***** AddSolid ( box )\n";
     456  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     457        G4cout << "***** AddSolid ( box )\n";
    437458#endif
    438459                //----- skip drawing invisible primitive
     
    473494{
    474495#if defined DEBUG_FR_SCENE
    475         G4cerr << "***** AddSolid ( tubes )\n";
     496  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     497        G4cout << "***** AddSolid ( tubes )\n";
    476498#endif
    477499                //----- skip drawing invisible primitive
     
    515537{
    516538#if defined DEBUG_FR_SCENE
    517         G4cerr << "***** AddSolid ( cons )\n";
     539  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     540        G4cout << "***** AddSolid ( cons )\n";
    518541#endif
    519542                //----- skip drawing invisible primitive
     
    557580{
    558581#if defined DEBUG_FR_SCENE
    559         G4cerr << "***** AddSolid ( trd )\n";
     582  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     583        G4cout << "***** AddSolid ( trd )\n";
    560584#endif
    561585
     
    598622{
    599623#if defined DEBUG_FR_SCENE
    600         G4cerr << "***** AddSolid ( sphere )\n";
     624  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     625        G4cout << "***** AddSolid ( sphere )\n";
    601626#endif
    602627                //----- skip drawing invisible primitive
     
    658683{
    659684#if defined DEBUG_FR_SCENE
    660         G4cerr << "***** AddSolid ( para )\n";
     685  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     686        G4cout << "***** AddSolid ( para )\n";
    661687#endif
    662688
     
    685711        G4double cosTheta                  = para.GetSymAxis().z() ;
    686712        if( cosTheta < epsilon ) {
    687                 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
    688                 G4cerr << "  Invalid parameter for parallelepiped."   << G4endl;
    689                 G4cerr << "  Drawing is skipped."                     << G4endl;
    690                 return ;
     713          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     714                G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
     715                G4cout << "  Invalid parameter for parallelepiped."   << G4endl;
     716                G4cout << "  Drawing is skipped."                     << G4endl;
     717          }
     718          return ;
    691719        }
    692720        G4double tanTheta_cosPhi_cosTheta  = para.GetSymAxis().x() ;
     
    714742{
    715743#if defined DEBUG_FR_SCENE
    716         G4cerr << "***** AddSolid ( trap )\n";
     744  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     745        G4cout << "***** AddSolid ( trap )\n";
    717746#endif
    718747
     
    741770        G4double cosTheta                  = trap.GetSymAxis().z() ;
    742771        if( cosTheta < epsilon ) {
    743                 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
    744                 G4cerr << "  Invalid parameter for trap, 1" << G4endl;
    745                 G4cerr << "  Drawing is skipped."           << G4endl;
    746                 return ;
     772          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     773                G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
     774                G4cout << "  Invalid parameter for trap, 1" << G4endl;
     775                G4cout << "  Drawing is skipped."           << G4endl;
     776          }
     777          return ;
    747778        }
    748779
     
    805836{
    806837#if defined DEBUG_FR_SCENE
    807         G4cerr << "***** AddSolid ( torus )\n";
     838  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     839        G4cout << "***** AddSolid ( torus )\n";
    808840#endif
    809841                //----- skip drawing invisible primitive
     
    929961{
    930962#if defined DEBUG_FR_SCENE
    931         G4cerr << "***** SendBoundingBox ()  (/BoundingBox)" << G4endl;
     963  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     964        G4cout << "***** SendBoundingBox ()  (/BoundingBox)" << G4endl;
    932965#endif
    933966
     
    10481081        num_char  = sprintf( command, "%s  %d", char_string , ival ) ;
    10491082        if( num_char < 0 ) {
    1050                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
     1083          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1084                G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
    10511085        }
    10521086        SendStr( command );
     
    10701104
    10711105        if( num_char < 0 ) {
    1072                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt3(), 1\n" ;
     1106          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1107                G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt3(), 1\n" ;
    10731108        }
    10741109        SendStr( command );
     
    10941129
    10951130        if( num_char < 0 ) {
    1096                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt4(), 1\n" ;
     1131          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1132                G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt4(), 1\n" ;
    10971133        }
    10981134        SendStr( command );
     
    11131149                                        fPrec2, fPrec, dval ) ;
    11141150        if( num_char < 0 ) {
    1115                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble(), 1\n" ;
     1151          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1152                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble(), 1\n" ;
    11161153        }
    11171154        SendStr( command );
     
    11351172                                        fPrec2, fPrec, dval2         ) ;
    11361173        if( num_char < 0 ) {
    1137                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble2(), 1\n" ;
     1174          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1175                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble2(), 1\n" ;
    11381176        }
    11391177        SendStr( command );
     
    11601198                                fPrec2, fPrec, dval3   ) ;
    11611199        if( num_char < 0 ) {
    1162                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble3(), 1\n" ;
     1200          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1201                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble3(), 1\n" ;
    11631202        }
    11641203        SendStr( command );
     
    11871226                                        fPrec2, fPrec, dval4) ;
    11881227        if( num_char < 0 ) {
    1189                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble4(), 1\n" ;
     1228          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1229                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble4(), 1\n" ;
    11901230        }
    11911231        SendStr( command );
     
    12161256                                        fPrec2, fPrec, dval5    ) ;
    12171257        if( num_char < 0 ) {
    1218                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble5(), 1\n" ;
     1258          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1259                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble5(), 1\n" ;
    12191260        }
    12201261        SendStr( command );
     
    12471288                                        fPrec2, fPrec, dval6    ) ;
    12481289        if( num_char < 0 ) {
    1249                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6(), 1\n" ;
     1290          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1291                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble6(), 1\n" ;
    12501292        }
    12511293        SendStr( command );
     
    12801322                                fPrec2, fPrec, dval7  ) ;
    12811323        if( num_char < 0 ) {
    1282                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble7(), 1\n" ;
     1324          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1325                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble7(), 1\n" ;
    12831326        }
    12841327        SendStr( command );
     
    13211364                                fPrec2, fPrec, dval11 ) ;
    13221365        if( num_char < 0 ) {
    1323                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble11(), 1\n" ;
     1366          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1367                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble11(), 1\n" ;
    13241368        }
    13251369        SendStr( command );
     
    13461390                                        fPrec2, fPrec, dval3    ) ;
    13471391        if( num_char < 0 ) {
    1348                 G4cerr << "ERROR G4FRSCENEHANDLER::SendIntDouble3(),1\n" ;
     1392          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1393                G4cout << "ERROR G4FRSCENEHANDLER::SendIntDouble3(),1\n" ;
    13491394        }
    13501395        SendStr( command );
     
    13661411                                       ival1, ival2, ival3, char_string ) ;
    13671412        if( num_char < 0 ) {
    1368                 G4cerr << "ERROR G4FRSCENEHANDLER::SendInt3Str(),1\n" ;
     1413          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1414                G4cout << "ERROR G4FRSCENEHANDLER::SendInt3Str(),1\n" ;
    13691415        }
    13701416        SendStr( command );
     
    13871433                                       ival1, ival2, ival3, ival4, char_string ) ;
    13881434        if( num_char < 0 ) {
    1389                 G4cerr << "ERROR G4FRSCENEHANDLER::SendInt4Str(),1\n" ;
     1435          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1436                G4cout << "ERROR G4FRSCENEHANDLER::SendInt4Str(),1\n" ;
    13901437        }
    13911438        SendStr( command );
     
    14181465                                char_string2              );
    14191466        if( num_char < 0 ) {
    1420                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6Str(), 1\n" ;
     1467          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1468                G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble6Str(), 1\n" ;
    14211469        }
    14221470        SendStr( command );
     
    14351483        num_char  = sprintf( command, "%d", val ) ;
    14361484        if( num_char < 0 ) {
    1437                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
     1485          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1486                G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
    14381487        }
    14391488        SendStr( command );
     
    14511500        num_char  = sprintf( command, "%*.*g", fPrec2, fPrec, val ) ;
    14521501        if( num_char < 0 ) {
    1453                 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
     1502          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     1503                G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
    14541504        }
    14551505        SendStr( command );
  • trunk/source/visualization/FukuiRenderer/include/G4FRofstream.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FRofstream.hh,v 1.9 2006/06/29 21:16:42 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030#include <fstream>
  • trunk/source/visualization/FukuiRenderer/include/G4FukuiRenderer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FukuiRenderer.hh,v 1.8 2006/06/29 21:16:44 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
  • trunk/source/visualization/FukuiRenderer/include/G4FukuiRendererSceneHandler.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FukuiRendererSceneHandler.hh,v 1.17 2010/05/30 10:18:32 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
  • trunk/source/visualization/FukuiRenderer/include/G4FukuiRendererViewer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4FukuiRendererViewer.hh,v 1.8 2006/06/29 21:16:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030//
  • 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.