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

geant4 tag 9.4

File:
1 edited

Legend:

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