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

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.