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

geant4 tag 9.4

Location:
trunk/source/visualization/VRML
Files:
38 edited

Legend:

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

    r1346 r1347  
    44/CMakeLists.txt/1.1/Wed Sep 29 19:13:11 2010//Tgeant4-09-04-ref-00
    55/sources.cmake/1.2/Wed Dec 22 10:23:43 2010//Tgeant4-09-04-ref-00
     6/History/1.21/Thu Nov 11 00:48:34 2010//Tgeant4-09-04-ref-00
  • trunk/source/visualization/VRML/History

    r1294 r1347  
    1 $Id: History,v 1.19 2010/05/30 10:14:39 allison Exp $
     1$Id: History,v 1.21 2010/11/11 00:48:34 akimura Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/VRML sub-category
    2121------------------------------------------------
     22
     2311 November 2010  Akinori Kimura (VRML-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 (VRML-V09-03-00)
  • trunk/source/visualization/VRML/g4vrmlview/CVS/Entries

    r1346 r1347  
     1/Makefile/1.1/Thu Jan  7 16:15:08 1999//Tgeant4-09-04-ref-00
     2/README/1.1/Thu Nov  4 07:24:37 1999//Tgeant4-09-04-ref-00
     3/g4mini.java/1.4/Thu Jun 29 21:25:15 2006//Tgeant4-09-04-ref-00
     4/g4vrmlview.java/1.4/Thu Jun 29 21:25:17 2006//Tgeant4-09-04-ref-00
     5/sample.wrl/1.1/Thu Jan  7 16:15:09 1999//Tgeant4-09-04-ref-00
    16D
  • trunk/source/visualization/VRML/g4vrmlview/g4mini.java

    r834 r1347  
    2626//
    2727// $Id: g4mini.java,v 1.4 2006/06/29 21:25:15 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030import java.io.*;
  • trunk/source/visualization/VRML/g4vrmlview/g4vrmlview.java

    r834 r1347  
    2626//
    2727// $Id: g4vrmlview.java,v 1.4 2006/06/29 21:25:17 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030import java.io.*;
  • trunk/source/visualization/VRML/include/CVS/Entries

    r1346 r1347  
     1/FRClient.h/1.6/Thu Jun 29 21:25:19 2006//Tgeant4-09-04-ref-00
     2/G4FRClient.hh/1.8/Thu Jun 29 21:25:21 2006//Tgeant4-09-04-ref-00
     3/G4VRML1.hh/1.10/Thu Jun 29 21:25:23 2006//Tgeant4-09-04-ref-00
     4/G4VRML1File.hh/1.10/Thu Jun 29 21:25:25 2006//Tgeant4-09-04-ref-00
     5/G4VRML1FileSceneHandler.hh/1.19/Sun May 30 10:14:39 2010//Tgeant4-09-04-ref-00
     6/G4VRML1FileViewer.hh/1.8/Thu Jun 29 21:25:29 2006//Tgeant4-09-04-ref-00
     7/G4VRML1SceneHandler.hh/1.16/Sun May 30 10:08:32 2010//Tgeant4-09-04-ref-00
     8/G4VRML1Viewer.hh/1.8/Thu Jun 29 21:25:33 2006//Tgeant4-09-04-ref-00
     9/G4VRML2.hh/1.10/Thu Jun 29 21:25:35 2006//Tgeant4-09-04-ref-00
     10/G4VRML2File.hh/1.11/Thu Jun 29 21:25:37 2006//Tgeant4-09-04-ref-00
     11/G4VRML2FileSceneHandler.hh/1.18/Sun May 30 10:14:39 2010//Tgeant4-09-04-ref-00
     12/G4VRML2FileViewer.hh/1.10/Thu Jun 29 21:25:41 2006//Tgeant4-09-04-ref-00
     13/G4VRML2SceneHandler.hh/1.15/Sun May 30 10:08:32 2010//Tgeant4-09-04-ref-00
     14/G4VRML2Viewer.hh/1.8/Thu Jun 29 21:25:45 2006//Tgeant4-09-04-ref-00
     15/G4VRMLNetConfig.hh/1.7/Thu Jun 29 21:25:47 2006//Tgeant4-09-04-ref-00
    116D
  • trunk/source/visualization/VRML/include/FRClient.h

    r944 r1347  
    2626//
    2727// $Id: FRClient.h,v 1.6 2006/06/29 21:25:19 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// FRClient.h
  • trunk/source/visualization/VRML/include/G4FRClient.hh

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

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1.hh,v 1.10 2006/06/29 21:25:23 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1.hh
  • trunk/source/visualization/VRML/include/G4VRML1File.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1File.hh,v 1.10 2006/06/29 21:25:25 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1File.hh
  • trunk/source/visualization/VRML/include/G4VRML1FileSceneHandler.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1FileSceneHandler.hh,v 1.19 2010/05/30 10:14:39 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1FileSceneHandler.hh
  • trunk/source/visualization/VRML/include/G4VRML1FileViewer.hh

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

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1SceneHandler.hh,v 1.16 2010/05/30 10:08:32 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1SceneHandler.hh
  • trunk/source/visualization/VRML/include/G4VRML1Viewer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1Viewer.hh,v 1.8 2006/06/29 21:25:33 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1Viewer.hh
  • trunk/source/visualization/VRML/include/G4VRML2.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2.hh,v 1.10 2006/06/29 21:25:35 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2.hh
  • trunk/source/visualization/VRML/include/G4VRML2File.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2File.hh,v 1.11 2006/06/29 21:25:37 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2File.hh
  • trunk/source/visualization/VRML/include/G4VRML2FileSceneHandler.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2FileSceneHandler.hh,v 1.18 2010/05/30 10:14:39 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2FileSceneHandler.hh
  • trunk/source/visualization/VRML/include/G4VRML2FileViewer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2FileViewer.hh,v 1.10 2006/06/29 21:25:41 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2FileViewer.hh
  • trunk/source/visualization/VRML/include/G4VRML2SceneHandler.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2SceneHandler.hh,v 1.15 2010/05/30 10:08:32 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2SceneHandler.hh
  • trunk/source/visualization/VRML/include/G4VRML2Viewer.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2Viewer.hh,v 1.8 2006/06/29 21:25:45 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2Viewer.hh
  • trunk/source/visualization/VRML/include/G4VRMLNetConfig.hh

    r1337 r1347  
    2626//
    2727// $Id: G4VRMLNetConfig.hh,v 1.7 2006/06/29 21:25:47 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRMLNetConfig.hh
  • trunk/source/visualization/VRML/src/CVS/Entries

    r1346 r1347  
     1/FRClient.cc/1.8/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     2/G4FRClient.cc/1.8/Thu Jun 29 21:25:51 2006//Tgeant4-09-04-ref-00
     3/G4VRML1.cc/1.10/Thu Jun 29 21:25:53 2006//Tgeant4-09-04-ref-00
     4/G4VRML1File.cc/1.10/Thu Jun 29 21:25:55 2006//Tgeant4-09-04-ref-00
     5/G4VRML1FileSceneHandler.cc/1.13/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     6/G4VRML1FileViewer.cc/1.12/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     7/G4VRML1SceneHandler.cc/1.11/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     8/G4VRML1SceneHandlerFunc.icc/1.17/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     9/G4VRML1Viewer.cc/1.9/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     10/G4VRML2.cc/1.10/Thu Jun 29 21:26:07 2006//Tgeant4-09-04-ref-00
     11/G4VRML2File.cc/1.10/Thu Jun 29 21:26:09 2006//Tgeant4-09-04-ref-00
     12/G4VRML2FileSceneHandler.cc/1.15/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     13/G4VRML2FileViewer.cc/1.14/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     14/G4VRML2SceneHandler.cc/1.13/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     15/G4VRML2SceneHandlerFunc.icc/1.21/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
     16/G4VRML2Viewer.cc/1.13/Thu Nov 11 00:14:50 2010//Tgeant4-09-04-ref-00
    117D
  • trunk/source/visualization/VRML/src/FRClient.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: FRClient.cc,v 1.7 2006/06/29 21:25:49 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: FRClient.cc,v 1.8 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// FRClient.cc
     
    5656#include <stdio.h>
    5757
     58#include "G4VisManager.hh"
    5859#include "FRClient.h"
    5960
     
    99100        hp = gethostbyname(hostname) ;
    100101        if ( !hp ) {
    101                 G4cerr << "ERROR: gethostbyname() failed" << G4endl;
    102                 return -1;
     102          if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     103                G4cout << "ERROR: gethostbyname() failed" << G4endl;
     104          return -1;
    103105        }
    104106
  • trunk/source/visualization/VRML/src/G4FRClient.cc

    r1337 r1347  
    2626//
    2727// $Id: G4FRClient.cc,v 1.8 2006/06/29 21:25:51 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4FRClient.cc
  • trunk/source/visualization/VRML/src/G4VRML1.cc

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1.cc,v 1.10 2006/06/29 21:25:53 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1.cc
  • trunk/source/visualization/VRML/src/G4VRML1File.cc

    r1337 r1347  
    2626//
    2727// $Id: G4VRML1File.cc,v 1.10 2006/06/29 21:25:55 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1File.cc
  • 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  );   
  • trunk/source/visualization/VRML/src/G4VRML1FileViewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML1FileViewer.cc,v 1.11 2006/06/29 21:25:59 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML1FileViewer.cc,v 1.12 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRMLView.cc
     
    3434//#define DEBUG_FR_VIEW
    3535
     36#include "G4VisManager.hh"
    3637#include "G4Scene.hh"
    3738#include "G4VRML1FileViewer.hh"
     
    5455{
    5556#if defined DEBUG_FR_VIEW
    56   G4cerr << "***** G4VRML1FileViewer::SetView(): No effects" << G4endl;
     57  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     58        G4cout << "***** G4VRML1FileViewer::SetView(): No effects" << G4endl;
    5759#endif
    5860}
     
    6163{
    6264#if defined DEBUG_FR_VIEW
    63         G4cerr << "***** G4VRML1FileViewer::DrawView()" << G4endl;
     65  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     66        G4cout << "***** G4VRML1FileViewer::DrawView()" << G4endl;
    6467#endif
    6568
     
    7578{
    7679  //#if defined DEBUG_FR_VIEW
    77   G4cerr << "***** G4VRML1File1View::ClearView()" << G4endl;
     80  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     81        G4cout << "***** G4VRML1File1View::ClearView()" << G4endl;
    7882  //#endif
    7983  if(fSceneHandler.fFlagDestOpen) {
     
    8993{
    9094#if defined DEBUG_FR_VIEW
    91   G4cerr << "***** G4VRML1FileViewer::ShowView()" << G4endl;
     95  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     96        G4cout << "***** G4VRML1FileViewer::ShowView()" << G4endl;
    9297#endif
    9398        fSceneHandler.VRMLEndModeling();
     
    97102{
    98103#if defined DEBUG_FR_VIEW
    99   G4cerr << "***** G4VRML1FileViewer::FinishView(): No effects" << G4endl;
     104  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     105        G4cout << "***** G4VRML1FileViewer::FinishView(): No effects" << G4endl;
    100106#endif
    101107}
  • 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
  • trunk/source/visualization/VRML/src/G4VRML1SceneHandlerFunc.icc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML1SceneHandlerFunc.icc,v 1.16 2006/06/29 21:26:03 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML1SceneHandlerFunc.icc,v 1.17 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML1SceneHandlerFunc.icc
    3131// Satoshi Tanaka & Yasuhide Sawada
     32
     33#include "G4VisManager.hh"
    3234
    3335//#define DEBUG_SCENE_FUNC
     
    4446{
    4547#if defined DEBUG_SCENE_FUNC
    46         G4cerr << "***** AddSolid trd" << "\n" ;
     48  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     49        G4cout << "***** AddSolid trd" << "\n" ;
    4750#endif
    4851        VRMLBeginModeling () ;
     
    5356{
    5457#if defined DEBUG_SCENE_FUNC
    55         G4cerr << "***** AddSolid trap" << "\n" ;
     58  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     59        G4cout << "***** AddSolid trap" << "\n" ;
    5660#endif
    5761        VRMLBeginModeling () ;
     
    6266{
    6367#if defined DEBUG_SCENE_FUNC
    64         G4cerr << "***** AddSolid para" << "\n" ;
     68  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     69        G4cout << "***** AddSolid para" << "\n" ;
    6570#endif
    6671        VRMLBeginModeling () ;
     
    7176{
    7277#if defined DEBUG_SCENE_FUNC
    73         G4cerr << "***** AddSolid torus" << "\n" ;
     78  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     79        G4cout << "***** AddSolid torus" << "\n" ;
    7480#endif
    7581        VRMLBeginModeling () ;
     
    8187{
    8288#if defined DEBUG_SCENE_FUNC
    83         G4cerr << "***** AddSolid vsolid" << "\n" ;
     89  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     90        G4cout << "***** AddSolid vsolid" << "\n" ;
    8491#endif
    8592        VRMLBeginModeling () ;
     
    9097{
    9198#if defined DEBUG_SCENE_FUNC
    92         G4cerr << "***** AddSolid tubs" << "\n" ;
     99  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     100        G4cout << "***** AddSolid tubs" << "\n" ;
    93101#endif
    94102        VRMLBeginModeling () ;
     
    127135{
    128136#if defined DEBUG_SCENE_FUNC
    129     G4cerr << "***** AddSolid cons" << "\n" ;
     137  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     138        G4cout << "***** AddSolid cons" << "\n" ;
    130139#endif
    131140        VRMLBeginModeling () ;
     
    166175{
    167176#if defined DEBUG_SCENE_FUNC
    168         G4cerr << "***** AddSolid box" << "\n" ;
     177  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     178        G4cout << "***** AddSolid box" << "\n" ;
    169179#endif
    170180        VRMLBeginModeling () ;
     
    194204{
    195205#if defined DEBUG_SCENE_FUNC
    196         G4cerr << "***** AddSolid sphere" << "\n" ;
     206  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     207        G4cout << "***** AddSolid sphere" << "\n" ;
    197208#endif
    198209        VRMLBeginModeling () ;
     
    230241{
    231242#if defined DEBUG_SCENE_FUNC
    232         G4cerr << "***** AddPrimitive polyline" << "\n" ;
     243  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     244        G4cout << "***** AddPrimitive polyline" << "\n" ;
    233245#endif
    234246        VRMLBeginModeling () ; 
     
    269281{
    270282#if defined DEBUG_SCENE_FUNC
    271         G4cerr << "***** AddPrimitive(G4Polyhedron)" << "\n";
     283  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     284        G4cout << "***** AddPrimitive(G4Polyhedron)" << "\n";
    272285#endif
    273286
     
    338351{
    339352#if defined DEBUG_SCENE_FUNC
    340         G4cerr << "***** AddPrimitive nurbs" << "\n" ;
     353  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     354        G4cout << "***** AddPrimitive nurbs" << "\n" ;
    341355#endif
    342         G4cerr << "G4VRML1File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ;
     356  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     357        G4cout << "G4VRML1File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ;
    343358        VRMLBeginModeling () ;
    344359
     
    348363{
    349364#if defined DEBUG_SCENE_FUNC
    350         G4cerr << "***** AddPrimitive text" << "\n" ;
    351 #endif
    352         G4cerr <<
     365  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     366        G4cout << "***** AddPrimitive text" << "\n" ;
     367#endif
     368  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     369        G4cout <<
    353370          "***** void G4VRML1SCENEHANDLER::AddPrimitive( const G4Text& text )"
    354371          " not implemented yet."
     
    361378{
    362379#if defined DEBUG_SCENE_FUNC
    363         G4cerr << "***** AddPrimitive circle" << "\n" ;
     380  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     381        G4cout << "***** AddPrimitive circle" << "\n" ;
    364382#endif
    365383
     
    391409{
    392410#if defined DEBUG_SCENE_FUNC
    393         G4cerr << "***** AddPrimitive square" << "\n" ;
     411  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     412        G4cout << "***** AddPrimitive square" << "\n" ;
    394413#endif
    395414
     
    423442{
    424443#if defined DEBUG_SCENE_FUNC
    425         G4cerr << "***** BeginModeling " << "\n" ;
     444  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     445        G4cout << "***** BeginModeling " << "\n" ;
    426446#endif
    427447        G4VSceneHandler::BeginModeling();
     
    431451{
    432452#if defined DEBUG_SCENE_FUNC
    433         G4cerr << "***** EndModeling " << "\n" ;
     453  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     454        G4cout << "***** EndModeling " << "\n" ;
    434455#endif
    435456        G4VSceneHandler::EndModeling();
     
    441462  fpObjectTransformation = &objectTransformation;
    442463#if defined DEBUG_SCENE_FUNC
    443         G4cerr << "***** BeginPrimitives " << "\n" ;
     464  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     465        G4cout << "***** BeginPrimitives " << "\n" ;
    444466#endif
    445467        VRMLBeginModeling();
     
    449471{
    450472#if defined DEBUG_SCENE_FUNC
    451         G4cerr << "***** EndPrimitives " << "\n" ;
     473  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     474        G4cout << "***** EndPrimitives " << "\n" ;
    452475#endif
    453476  G4VSceneHandler::EndPrimitives();
     
    555578        if (!IS_CONNECTED ) {
    556579#if defined DEBUG_SCENE_FUNC
    557         G4cerr << "***** VRMLBeginModeling() (started)" << "\n" ;
     580  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     581        G4cout << "***** VRMLBeginModeling() (started)" << "\n" ;
    558582#endif
    559583                this->connectPort();
     
    567591        if ( IS_CONNECTED ) {
    568592#if defined DEBUG_SCENE_FUNC
    569         G4cerr << "***** VRMLEndModeling() (started)" << "\n" ;
     593  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     594        G4cout << "***** VRMLEndModeling() (started)" << "\n" ;
    570595#endif
    571596
  • trunk/source/visualization/VRML/src/G4VRML1Viewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML1Viewer.cc,v 1.8 2006/06/29 21:26:05 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML1Viewer.cc,v 1.9 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRMLView.cc
     
    3939
    4040//#define DEBUG_FR_VIEW
     41
     42#include "G4VisManager.hh"
    4143
    4244#include "G4Scene.hh"
     
    5658{
    5759#if defined DEBUG_FR_VIEW
    58   G4cerr << "***** G4VRML1Viewer::SetView(): No effects" << G4endl;
     60  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     61        G4cout << "***** G4VRML1Viewer::SetView(): No effects" << G4endl;
    5962#endif
    6063}
     
    6366{
    6467#if defined DEBUG_FR_VIEW
    65         G4cerr << "***** G4VRML1Viewer::DrawView()" << G4endl;
     68  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     69        G4cout << "***** G4VRML1Viewer::DrawView()" << G4endl;
    6670#endif
    6771
     
    7781{
    7882#if defined DEBUG_FR_VIEW
    79   G4cerr << "***** G4VRML1Viewer::ClearView(): No effects" << G4endl;
     83  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     84        G4cout << "***** G4VRML1Viewer::ClearView(): No effects" << G4endl;
    8085#endif
    8186}
     
    8489{
    8590#if defined DEBUG_FR_VIEW
    86   G4cerr << "***** G4VRML1Viewer::ShowView()" << G4endl;
     91  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     92        G4cout << "***** G4VRML1Viewer::ShowView()" << G4endl;
    8793#endif
    8894        fSceneHandler.VRMLEndModeling();
     
    9298{
    9399#if defined DEBUG_FR_VIEW
    94   G4cerr << "***** G4VRML1Viewer::FinishView(): No effects" << G4endl;
     100  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     101        G4cout << "***** G4VRML1Viewer::FinishView(): No effects" << G4endl;
    95102#endif
    96103}
  • trunk/source/visualization/VRML/src/G4VRML2.cc

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2.cc,v 1.10 2006/06/29 21:26:07 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2.cc
  • trunk/source/visualization/VRML/src/G4VRML2File.cc

    r1337 r1347  
    2626//
    2727// $Id: G4VRML2File.cc,v 1.10 2006/06/29 21:26:09 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2File.cc
  • trunk/source/visualization/VRML/src/G4VRML2FileSceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2FileSceneHandler.cc,v 1.14 2006/06/29 21:26:11 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2FileSceneHandler.cc,v 1.15 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2FileSceneHandler.cc
     
    4343#include "G4VPhysicalVolume.hh"
    4444#include "G4LogicalVolume.hh"
     45#include "G4VisManager.hh"
    4546#include "G4Point3D.hh"
    4647#include "G4VisAttributes.hh"
     
    119120{
    120121#if defined DEBUG_FR_SCENE
    121         G4cerr << "***** ~G4VRML2FileSceneHandler" << G4endl;
     122  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     123        G4cout << "***** ~G4VRML2FileSceneHandler" << G4endl;
    122124#endif
    123125        VRMLEndModeling();
     
    149151                if( i == MAX_FILE_INDEX )
    150152                {
    151                   G4cerr << "==========================================="   << G4endl;
    152                   G4cerr << "WARNING MESSAGE from VRML2FILE driver:     "   << G4endl;
    153                   G4cerr << "  This file name is the final one in the   "   << G4endl;
    154                   G4cerr << "  automatic updation of the output file name." << G4endl;
    155                   G4cerr << "  You may overwrite existing files, i.e.   "   << G4endl;
    156                   G4cerr << "  g4_XX.wrl.                               "   << G4endl;
    157                   G4cerr << "==========================================="   << G4endl;
     153                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     154                    G4cout << "==========================================="   << G4endl;
     155                    G4cout << "WARNING MESSAGE from VRML2FILE driver:     "   << G4endl;
     156                    G4cout << "  This file name is the final one in the   "   << G4endl;
     157                    G4cout << "  automatic updation of the output file name." << G4endl;
     158                    G4cout << "  You may overwrite existing files, i.e.   "   << G4endl;
     159                    G4cout << "  g4_XX.wrl.                               "   << G4endl;
     160                    G4cout << "==========================================="   << G4endl;
     161                  }
    158162                }
    159163
     
    180184
    181185        // open a VRML 2.0 file with determined file name
    182         G4cerr << "==========================================="  << G4endl;
    183         G4cerr << "Output VRML 2.0 file: " <<    fVRMLFileName << G4endl;
    184         G4cerr << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl;
    185         G4cerr << "  (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl;
    186         G4cerr << "===========================================" << G4endl;
    187 
     186        if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     187          G4cout << "==========================================="  << G4endl;
     188          G4cout << "Output VRML 2.0 file: " <<    fVRMLFileName << G4endl;
     189          G4cout << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl;
     190          G4cout << "  (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl;
     191          G4cout << "===========================================" << G4endl;
     192        }
    188193        fDest.open(fVRMLFileName) ;  fFlagDestOpen =  true ;
    189194}
     
    201206        // close VRML file     
    202207        fDest.close();  fFlagDestOpen = false ;
    203         G4cerr << "*** VRML 2.0 File  " << fVRMLFileName << "  is generated." << G4endl;
     208        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     209              G4cout << "*** VRML 2.0 File  " << fVRMLFileName << "  is generated." << G4endl;
    204210
    205211       
     
    207213
    208214        if ( !strcmp(viewer, NO_VRML_VIEWER )) {
    209                 G4cerr << "MESSAGE from VRML2FILE driver:"     << G4endl;
    210                 G4cerr << "    Set an environmental variable  " ;
    211                 G4cerr <<      ENV_VRML_VIEWER << G4endl;
    212                 G4cerr << "    if you want to visualize the generated VRML file" << G4endl;
    213                 G4cerr << "    automatically.  For example, " << G4endl;
    214                 G4cerr << "    setenv  " << ENV_VRML_VIEWER << "  vrwave " << G4endl;
     215          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     216                G4cout << "MESSAGE from VRML2FILE driver:"     << G4endl;
     217                G4cout << "    Set an environmental variable  " ;
     218                G4cout <<      ENV_VRML_VIEWER << G4endl;
     219                G4cout << "    if you want to visualize the generated VRML file" << G4endl;
     220                G4cout << "    automatically.  For example, " << G4endl;
     221                G4cout << "    setenv  " << ENV_VRML_VIEWER << "  vrwave " << G4endl;
     222          }
    215223        } else {
    216224                sprintf( command, "%s %s", viewer, fVRMLFileName  );   
  • trunk/source/visualization/VRML/src/G4VRML2FileViewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2FileViewer.cc,v 1.13 2006/06/29 21:26:13 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2FileViewer.cc,v 1.14 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2FileViewer.cc
     
    3636#include <cmath>
    3737
     38#include "G4VisManager.hh"
    3839#include "G4Scene.hh"
    3940#include "G4VRML2FileViewer.hh"
     
    6061{
    6162#if defined DEBUG_FR_VIEW
    62   G4cerr << "***** G4VRML2FileViewer::SetView(): No effects" << G4endl;
     63  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     64        G4cout << "***** G4VRML2FileViewer::SetView(): No effects" << G4endl;
    6365#endif
    6466
     
    7173{
    7274#if defined DEBUG_FR_VIEW
    73         G4cerr << "***** G4VRML2FileViewer::DrawView()" << G4endl;
     75  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     76        G4cout << "***** G4VRML2FileViewer::DrawView()" << G4endl;
    7477#endif
    7578
     
    8891{
    8992#if defined DEBUG_FR_VIEW
    90   G4cerr << "***** G4VRML2File1View::ClearView()" << G4endl;
     93  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     94        G4cout << "***** G4VRML2File1View::ClearView()" << G4endl;
    9195#endif
    9296  if(fSceneHandler.fFlagDestOpen) {
     
    102106{
    103107#if defined DEBUG_FR_VIEW
    104   G4cerr << "***** G4VRML2FileViewer::ShowView()" << G4endl;
     108  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     109        G4cout << "***** G4VRML2FileViewer::ShowView()" << G4endl;
    105110#endif
    106111        fSceneHandler.VRMLEndModeling();
     
    110115{
    111116#if defined DEBUG_FR_VIEW
    112   G4cerr << "***** G4VRML2FileViewer::FinishView(): No effects" << G4endl;
     117  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     118        G4cout << "***** G4VRML2FileViewer::FinishView(): No effects" << G4endl;
    113119#endif
    114120}
     
    121127
    122128#if defined DEBUG_FR_VIEW
    123       G4cerr << "***** G4VRML2FileViewer::SendViewParameters()\n";
     129  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     130      G4cout << "***** G4VRML2FileViewer::SendViewParameters()\n";
    124131#endif
    125132
  • trunk/source/visualization/VRML/src/G4VRML2SceneHandler.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2SceneHandler.cc,v 1.12 2006/06/29 21:26:15 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2SceneHandler.cc,v 1.13 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2SceneHandler.cc
     
    4646
    4747#include "globals.hh"
     48#include "G4VisManager.hh"
     49
    4850#include "G4VPhysicalVolume.hh"
    4951#include "G4LogicalVolume.hh"
     
    9395{
    9496#if defined DEBUG_FR_SCENE
    95         G4cerr << "***** ~G4VRML2SceneHandler" << G4endl;
     97  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     98        G4cout << "***** ~G4VRML2SceneHandler" << G4endl;
    9699#endif
    97100}
     
    113116                if (fDest.connect( (const char * )fSystem.getHostName(), port)) {
    114117                    // INET domain connection is established
    115                         G4cerr << "*** GEANT4 is connected to port  ";
    116                         G4cerr << fDest.getPort();
    117                         G4cerr << " of server  " << fSystem.getHostName() << G4endl;
     118                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     119                        G4cout << "*** GEANT4 is connected to port  ";
     120                        G4cout << fDest.getPort();
     121                        G4cout << " of server  " << fSystem.getHostName() << G4endl;
     122                  }
    118123                        break;
    119124                } else {
    120125                        // Connection failed. Try the next port.
    121                         G4cerr << "*** GEANT4 incremented targeting port to ";
    122                         G4cerr << port << G4endl;
     126                  if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     127                        G4cout << "*** GEANT4 incremented targeting port to ";
     128                        G4cout << port << G4endl;
     129                  }
    123130                }
    124131
     
    128135
    129136        if (!fDest.isConnected()) {
    130                 G4cerr << "*** INET Connection failed. " << G4endl;
    131                 G4cerr << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
    132                 G4cerr << "    or too many viewers are already running in the " << G4endl;
    133                 G4cerr << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     137          if (G4VisManager::GetVerbosity() >= G4VisManager::errors) {
     138                G4cout << "*** INET Connection failed. " << G4endl;
     139                G4cout << "    Maybe, you have not invoked viewer  g4vrmlview  yet, " << G4endl;
     140                G4cout << "    or too many viewers are already running in the " << G4endl;
     141                G4cout << "    server host(" << fSystem.getHostName() << "). " << G4endl;
     142          }
    134143        }
    135144}
     
    138147{
    139148        fDest.close();
    140         G4cerr << "*** INET Connection closed. " << G4endl;
     149        if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     150              G4cout << "*** INET Connection closed. " << G4endl;
    141151}
    142152
  • trunk/source/visualization/VRML/src/G4VRML2SceneHandlerFunc.icc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2SceneHandlerFunc.icc,v 1.20 2006/06/29 21:26:17 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2SceneHandlerFunc.icc,v 1.21 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2SceneHandlerFunc.icc
     
    3333//#define DEBUG_SCENE_FUNC
    3434
     35#include "G4VisManager.hh"
     36
    3537void G4VRML2SCENEHANDLER::AddSolid(const G4Trd& trd)
    3638{
    3739#if defined DEBUG_SCENE_FUNC
    38         G4cerr << "***** AddSolid trd" << "\n" ;
     40  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     41        G4cout << "***** AddSolid trd" << "\n" ;
    3942#endif
    4043        VRMLBeginModeling () ;
     
    4548{
    4649#if defined DEBUG_SCENE_FUNC
    47         G4cerr << "***** AddSolid trap" << "\n" ;
     50  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     51        G4cout << "***** AddSolid trap" << "\n" ;
    4852#endif
    4953        VRMLBeginModeling () ;
     
    5458{
    5559#if defined DEBUG_SCENE_FUNC
    56         G4cerr << "***** AddSolid para" << "\n" ;
     60  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     61        G4cout << "***** AddSolid para" << "\n" ;
    5762#endif
    5863        VRMLBeginModeling () ;
     
    6368{
    6469#if defined DEBUG_SCENE_FUNC
    65         G4cerr << "***** AddSolid torus" << "\n" ;
     70  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     71        G4cout << "***** AddSolid torus" << "\n" ;
    6672#endif
    6773        VRMLBeginModeling () ;
     
    7379{
    7480#if defined DEBUG_SCENE_FUNC
    75         G4cerr << "***** AddSolid vsolid" << "\n" ;
     81  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     82        G4cout << "***** AddSolid vsolid" << "\n" ;
    7683#endif
    7784        VRMLBeginModeling () ;
     
    8289{
    8390#if defined DEBUG_SCENE_FUNC
    84         G4cerr << "***** AddSolid tubs" << "\n" ;
     91  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     92        G4cout << "***** AddSolid tubs" << "\n" ;
    8593#endif
    8694        VRMLBeginModeling () ;
     
    93101{
    94102#if defined DEBUG_SCENE_FUNC
    95     G4cerr << "***** AddSolid cons" << "\n" ;
     103  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     104        G4cout << "***** AddSolid cons" << "\n" ;
    96105#endif
    97106        VRMLBeginModeling () ;
     
    102111{
    103112#if defined DEBUG_SCENE_FUNC
    104         G4cerr << "***** AddSolid box" << "\n" ;
     113  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     114        G4cout << "***** AddSolid box" << "\n" ;
    105115#endif
    106116        VRMLBeginModeling () ;
     
    112122{
    113123#if defined DEBUG_SCENE_FUNC
    114         G4cerr << "***** AddSolid sphere" << "\n" ;
     124  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     125        G4cout << "***** AddSolid sphere" << "\n" ;
    115126#endif
    116127        VRMLBeginModeling () ;
     
    121132{
    122133#if defined DEBUG_SCENE_FUNC
    123         G4cerr << "***** AddPrimitive polyline" << "\n" ;
     134  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     135        G4cout << "***** AddPrimitive polyline" << "\n" ;
    124136#endif
    125137
     
    170182{
    171183#if defined DEBUG_SCENE_FUNC
    172         G4cerr << "***** AddPrimitive(G4Polyhedron)" << "\n";
     184  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     185        G4cout << "***** AddPrimitive(G4Polyhedron)" << "\n";
    173186#endif
    174187
     
    253266{
    254267#if defined DEBUG_SCENE_FUNC
    255         G4cerr << "***** AddPrimitive nurbs" << "\n" ;
     268  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     269        G4cout << "***** AddPrimitive nurbs" << "\n" ;
    256270#endif
    257         G4cerr << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ;
     271  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     272        G4cout << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ;
    258273
    259274        VRMLBeginModeling () ;
     
    263278{
    264279#if defined DEBUG_SCENE_FUNC
    265         G4cerr << "***** AddPrimitive text" << "\n" ;
    266 #endif
    267         G4cerr <<
     280  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     281        G4cout << "***** AddPrimitive text" << "\n" ;
     282#endif
     283  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     284        G4cout <<
    268285          "***** void G4VRML2SCENEHANDLER::AddPrimitive( const G4Text& text )"
    269286          " not implemented yet."
     
    277294{
    278295#if defined DEBUG_SCENE_FUNC
    279         G4cerr << "***** AddPrimitive circle" << "\n" ;
     296  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     297        G4cout << "***** AddPrimitive circle" << "\n" ;
    280298#endif
    281299        VRMLBeginModeling () ;
     
    335353{
    336354#if defined DEBUG_SCENE_FUNC
    337         G4cerr << "***** AddPrimitive square" << "\n" ;
     355  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     356        G4cout << "***** AddPrimitive square" << "\n" ;
    338357#endif
    339358
     
    396415{
    397416#if defined DEBUG_SCENE_FUNC
    398         G4cerr << "***** BeginModeling" << "\n" ;
     417  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     418        G4cout << "***** BeginModeling" << "\n" ;
    399419#endif
    400420        G4VSceneHandler::BeginModeling();
     
    405425{
    406426#if defined DEBUG_SCENE_FUNC
    407         G4cerr << "***** EndModeling " << "\n" ;
     427  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     428        G4cout << "***** EndModeling " << "\n" ;
    408429#endif
    409430        G4VSceneHandler::EndModeling();
     
    415436  fpObjectTransformation = &objectTransformation;
    416437#if defined DEBUG_SCENE_FUNC
    417         G4cerr << "***** BeginPrimitives " << "\n" ;
     438  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     439        G4cout << "***** BeginPrimitives " << "\n" ;
    418440#endif
    419441        VRMLBeginModeling();
     
    423445{
    424446#if defined DEBUG_SCENE_FUNC
    425         G4cerr << "***** EndPrimitives " << "\n" ;
     447  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     448        G4cout << "***** EndPrimitives " << "\n" ;
    426449#endif
    427450  G4VSceneHandler::EndPrimitives();
     
    500523        if (!IS_CONNECTED ) {
    501524#if defined DEBUG_SCENE_FUNC
    502         G4cerr << "***** VRMLBeginModeling (started)" << "\n" ;
     525  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     526        G4cout << "***** VRMLBeginModeling (started)" << "\n" ;
    503527#endif
    504528                this->connectPort();
     
    512536        if ( IS_CONNECTED ) {
    513537#if defined DEBUG_SCENE_FUNC
    514         G4cerr << "***** VRMLEndModeling (started)" << "\n" ;
     538  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     539        G4cout << "***** VRMLEndModeling (started)" << "\n" ;
    515540#endif
    516541                fDest << "#End of file." << "\n";
  • trunk/source/visualization/VRML/src/G4VRML2Viewer.cc

    r1337 r1347  
    2525//
    2626//
    27 // $Id: G4VRML2Viewer.cc,v 1.12 2006/06/29 21:26:35 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4VRML2Viewer.cc,v 1.13 2010/11/11 00:14:50 akimura Exp $
     28// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2929//
    3030// G4VRML2Viewer.cc
     
    4242#include <cmath>
    4343
     44#include "G4VisManager.hh"
    4445#include "G4Scene.hh"
    4546#include "G4VRML2Viewer.hh"
     
    6566{
    6667#if defined DEBUG_FR_VIEW
    67   G4cerr << "***** G4VRML2Viewer::SetView(): No effects" << G4endl;
     68  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     69    G4cout << "***** G4VRML2Viewer::SetView(): No effects" << G4endl;
    6870#endif
    6971
     
    7779{
    7880#if defined DEBUG_FR_VIEW
    79         G4cerr << "***** G4VRML2Viewer::DrawView()" << G4endl;
     81  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     82    G4cout << "***** G4VRML2Viewer::DrawView()" << G4endl;
    8083#endif
    8184        fSceneHandler.VRMLBeginModeling() ;
     
    9396{
    9497#if defined DEBUG_FR_VIEW
    95   G4cerr << "***** G4VRML2Viewer::ClearView(): No effects" << G4endl;
     98  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     99    G4cout << "***** G4VRML2Viewer::ClearView(): No effects" << G4endl;
    96100#endif
    97101}
     
    100104{
    101105#if defined DEBUG_FR_VIEW
    102   G4cerr << "***** G4VRML2Viewer::ShowView()" << G4endl;
     106  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     107    G4cout << "***** G4VRML2Viewer::ShowView()" << G4endl;
    103108#endif
    104109        fSceneHandler.VRMLEndModeling();
     
    108113{
    109114#if defined DEBUG_FR_VIEW
    110   G4cerr << "***** G4VRML2Viewer::FinishView(): No effects" << G4endl;
     115  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     116    G4cout << "***** G4VRML2Viewer::FinishView(): No effects" << G4endl;
    111117#endif
    112118}
     
    119125
    120126#if defined DEBUG_FR_VIEW
    121       G4cerr << "***** G4VRML2Viewer::SendViewParameters()\n";
     127  if (G4VisManager::GetVerbosity() >= G4VisManager::errors)
     128    G4cout << "***** G4VRML2Viewer::SendViewParameters()\n";
    122129#endif
    123130        // error recovery
Note: See TracChangeset for help on using the changeset viewer.