Changeset 1347 for trunk/source/visualization/VRML
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (15 years ago)
- Location:
- trunk/source/visualization/VRML
- Files:
-
- 38 edited
-
CVS/Entries (modified) (1 diff)
-
History (modified) (2 diffs)
-
g4vrmlview/CVS/Entries (modified) (1 diff)
-
g4vrmlview/g4mini.java (modified) (1 diff)
-
g4vrmlview/g4vrmlview.java (modified) (1 diff)
-
include/CVS/Entries (modified) (1 diff)
-
include/FRClient.h (modified) (1 diff)
-
include/G4FRClient.hh (modified) (1 diff)
-
include/G4VRML1.hh (modified) (1 diff)
-
include/G4VRML1File.hh (modified) (1 diff)
-
include/G4VRML1FileSceneHandler.hh (modified) (1 diff)
-
include/G4VRML1FileViewer.hh (modified) (1 diff)
-
include/G4VRML1SceneHandler.hh (modified) (1 diff)
-
include/G4VRML1Viewer.hh (modified) (1 diff)
-
include/G4VRML2.hh (modified) (1 diff)
-
include/G4VRML2File.hh (modified) (1 diff)
-
include/G4VRML2FileSceneHandler.hh (modified) (1 diff)
-
include/G4VRML2FileViewer.hh (modified) (1 diff)
-
include/G4VRML2SceneHandler.hh (modified) (1 diff)
-
include/G4VRML2Viewer.hh (modified) (1 diff)
-
include/G4VRMLNetConfig.hh (modified) (1 diff)
-
src/CVS/Entries (modified) (1 diff)
-
src/FRClient.cc (modified) (3 diffs)
-
src/G4FRClient.cc (modified) (1 diff)
-
src/G4VRML1.cc (modified) (1 diff)
-
src/G4VRML1File.cc (modified) (1 diff)
-
src/G4VRML1FileSceneHandler.cc (modified) (7 diffs)
-
src/G4VRML1FileViewer.cc (modified) (7 diffs)
-
src/G4VRML1SceneHandler.cc (modified) (6 diffs)
-
src/G4VRML1SceneHandlerFunc.icc (modified) (22 diffs)
-
src/G4VRML1Viewer.cc (modified) (7 diffs)
-
src/G4VRML2.cc (modified) (1 diff)
-
src/G4VRML2File.cc (modified) (1 diff)
-
src/G4VRML2FileSceneHandler.cc (modified) (7 diffs)
-
src/G4VRML2FileViewer.cc (modified) (8 diffs)
-
src/G4VRML2SceneHandler.cc (modified) (6 diffs)
-
src/G4VRML2SceneHandlerFunc.icc (modified) (22 diffs)
-
src/G4VRML2Viewer.cc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/VRML/CVS/Entries
r1346 r1347 4 4 /CMakeLists.txt/1.1/Wed Sep 29 19:13:11 2010//Tgeant4-09-04-ref-00 5 5 /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 allisonExp $1 $Id: History,v 1.21 2010/11/11 00:48:34 akimura Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 20 20 History file for visualization/VRML sub-category 21 21 ------------------------------------------------ 22 23 11 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) 22 26 23 27 30th 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 1 6 D -
trunk/source/visualization/VRML/g4vrmlview/g4mini.java
r834 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 import java.io.*; -
trunk/source/visualization/VRML/g4vrmlview/g4vrmlview.java
r834 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 import 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 1 16 D -
trunk/source/visualization/VRML/include/FRClient.h
r944 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // FRClient.h -
trunk/source/visualization/VRML/include/G4FRClient.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4FRClient.hh -
trunk/source/visualization/VRML/include/G4VRML1.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1.hh -
trunk/source/visualization/VRML/include/G4VRML1File.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1File.hh -
trunk/source/visualization/VRML/include/G4VRML1FileSceneHandler.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1FileSceneHandler.hh -
trunk/source/visualization/VRML/include/G4VRML1FileViewer.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1FileViewer.hh -
trunk/source/visualization/VRML/include/G4VRML1SceneHandler.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1SceneHandler.hh -
trunk/source/visualization/VRML/include/G4VRML1Viewer.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1Viewer.hh -
trunk/source/visualization/VRML/include/G4VRML2.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2.hh -
trunk/source/visualization/VRML/include/G4VRML2File.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2File.hh -
trunk/source/visualization/VRML/include/G4VRML2FileSceneHandler.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2FileSceneHandler.hh -
trunk/source/visualization/VRML/include/G4VRML2FileViewer.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2FileViewer.hh -
trunk/source/visualization/VRML/include/G4VRML2SceneHandler.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2SceneHandler.hh -
trunk/source/visualization/VRML/include/G4VRML2Viewer.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2Viewer.hh -
trunk/source/visualization/VRML/include/G4VRMLNetConfig.hh
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // 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 1 17 D -
trunk/source/visualization/VRML/src/FRClient.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: FRClient.cc,v 1. 7 2006/06/29 21:25:49 gunterExp $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 $ 29 29 // 30 30 // FRClient.cc … … 56 56 #include <stdio.h> 57 57 58 #include "G4VisManager.hh" 58 59 #include "FRClient.h" 59 60 … … 99 100 hp = gethostbyname(hostname) ; 100 101 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; 103 105 } 104 106 -
trunk/source/visualization/VRML/src/G4FRClient.cc
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4FRClient.cc -
trunk/source/visualization/VRML/src/G4VRML1.cc
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1.cc -
trunk/source/visualization/VRML/src/G4VRML1File.cc
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML1File.cc -
trunk/source/visualization/VRML/src/G4VRML1FileSceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1FileSceneHandler.cc,v 1.1 2 2006/06/29 21:25:57 gunterExp $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 $ 29 29 // 30 30 // G4VRML1FileSceneHandler.cc … … 40 40 41 41 #include "globals.hh" 42 #include "G4VisManager.hh" 42 43 #include "G4Scene.hh" 43 44 #include "G4VPhysicalVolume.hh" … … 104 105 { 105 106 #if defined DEBUG_FR_SCENE 106 G4cerr << "***** ~G4VRML1FileSceneHandler" << G4endl; 107 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 108 G4cout << "***** ~G4VRML1FileSceneHandler" << G4endl; 107 109 #endif 108 110 VRMLEndModeling(); … … 134 136 if( i == MAX_FILE_INDEX ) 135 137 { 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 } 143 147 } 144 148 … … 166 170 167 171 // 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 } 174 179 fDest.open(fVRMLFileName) ; fFlagDestOpen = true ; 175 180 } … … 187 192 // close VRML file 188 193 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; 190 196 191 197 … … 193 199 194 200 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 } 201 209 } else { 202 210 sprintf( command, "%s %s", viewer, fVRMLFileName ); -
trunk/source/visualization/VRML/src/G4VRML1FileViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1FileViewer.cc,v 1.1 1 2006/06/29 21:25:59 gunterExp $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 $ 29 29 // 30 30 // G4VRMLView.cc … … 34 34 //#define DEBUG_FR_VIEW 35 35 36 #include "G4VisManager.hh" 36 37 #include "G4Scene.hh" 37 38 #include "G4VRML1FileViewer.hh" … … 54 55 { 55 56 #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; 57 59 #endif 58 60 } … … 61 63 { 62 64 #if defined DEBUG_FR_VIEW 63 G4cerr << "***** G4VRML1FileViewer::DrawView()" << G4endl; 65 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 66 G4cout << "***** G4VRML1FileViewer::DrawView()" << G4endl; 64 67 #endif 65 68 … … 75 78 { 76 79 //#if defined DEBUG_FR_VIEW 77 G4cerr << "***** G4VRML1File1View::ClearView()" << G4endl; 80 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 81 G4cout << "***** G4VRML1File1View::ClearView()" << G4endl; 78 82 //#endif 79 83 if(fSceneHandler.fFlagDestOpen) { … … 89 93 { 90 94 #if defined DEBUG_FR_VIEW 91 G4cerr << "***** G4VRML1FileViewer::ShowView()" << G4endl; 95 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 96 G4cout << "***** G4VRML1FileViewer::ShowView()" << G4endl; 92 97 #endif 93 98 fSceneHandler.VRMLEndModeling(); … … 97 102 { 98 103 #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; 100 106 #endif 101 107 } -
trunk/source/visualization/VRML/src/G4VRML1SceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1SceneHandler.cc,v 1.1 0 2006/06/29 21:26:01 gunterExp $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 $ 29 29 // 30 30 // G4VRML1SceneHandler.cc … … 44 44 45 45 #include "globals.hh" 46 #include "G4VisManager.hh" 46 47 #include "G4VPhysicalVolume.hh" 47 48 #include "G4LogicalVolume.hh" … … 81 82 { 82 83 #if defined DEBUG_FR_SCENE 83 G4cerr << "***** ~G4VRML1SceneHandler" << G4endl; 84 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 85 G4cout << "***** ~G4VRML1SceneHandler" << G4endl; 84 86 #endif 85 87 } … … 101 103 if (fDest.connect( (const char * )fSystem.getHostName(), port)) { 102 104 // 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 } 106 110 break; 107 111 } else { 108 112 // 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 } 111 117 } 112 118 … … 116 122 117 123 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 } 122 130 } 123 131 } … … 126 134 { 127 135 fDest.close(); 128 G4cerr << "*** INET Connection closed. " << G4endl; 136 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 137 G4cout << "*** INET Connection closed. " << G4endl; 129 138 } 130 139 -
trunk/source/visualization/VRML/src/G4VRML1SceneHandlerFunc.icc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1SceneHandlerFunc.icc,v 1.1 6 2006/06/29 21:26:03 gunterExp $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 $ 29 29 // 30 30 // G4VRML1SceneHandlerFunc.icc 31 31 // Satoshi Tanaka & Yasuhide Sawada 32 33 #include "G4VisManager.hh" 32 34 33 35 //#define DEBUG_SCENE_FUNC … … 44 46 { 45 47 #if defined DEBUG_SCENE_FUNC 46 G4cerr << "***** AddSolid trd" << "\n" ; 48 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 49 G4cout << "***** AddSolid trd" << "\n" ; 47 50 #endif 48 51 VRMLBeginModeling () ; … … 53 56 { 54 57 #if defined DEBUG_SCENE_FUNC 55 G4cerr << "***** AddSolid trap" << "\n" ; 58 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 59 G4cout << "***** AddSolid trap" << "\n" ; 56 60 #endif 57 61 VRMLBeginModeling () ; … … 62 66 { 63 67 #if defined DEBUG_SCENE_FUNC 64 G4cerr << "***** AddSolid para" << "\n" ; 68 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 69 G4cout << "***** AddSolid para" << "\n" ; 65 70 #endif 66 71 VRMLBeginModeling () ; … … 71 76 { 72 77 #if defined DEBUG_SCENE_FUNC 73 G4cerr << "***** AddSolid torus" << "\n" ; 78 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 79 G4cout << "***** AddSolid torus" << "\n" ; 74 80 #endif 75 81 VRMLBeginModeling () ; … … 81 87 { 82 88 #if defined DEBUG_SCENE_FUNC 83 G4cerr << "***** AddSolid vsolid" << "\n" ; 89 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 90 G4cout << "***** AddSolid vsolid" << "\n" ; 84 91 #endif 85 92 VRMLBeginModeling () ; … … 90 97 { 91 98 #if defined DEBUG_SCENE_FUNC 92 G4cerr << "***** AddSolid tubs" << "\n" ; 99 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 100 G4cout << "***** AddSolid tubs" << "\n" ; 93 101 #endif 94 102 VRMLBeginModeling () ; … … 127 135 { 128 136 #if defined DEBUG_SCENE_FUNC 129 G4cerr << "***** AddSolid cons" << "\n" ; 137 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 138 G4cout << "***** AddSolid cons" << "\n" ; 130 139 #endif 131 140 VRMLBeginModeling () ; … … 166 175 { 167 176 #if defined DEBUG_SCENE_FUNC 168 G4cerr << "***** AddSolid box" << "\n" ; 177 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 178 G4cout << "***** AddSolid box" << "\n" ; 169 179 #endif 170 180 VRMLBeginModeling () ; … … 194 204 { 195 205 #if defined DEBUG_SCENE_FUNC 196 G4cerr << "***** AddSolid sphere" << "\n" ; 206 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 207 G4cout << "***** AddSolid sphere" << "\n" ; 197 208 #endif 198 209 VRMLBeginModeling () ; … … 230 241 { 231 242 #if defined DEBUG_SCENE_FUNC 232 G4cerr << "***** AddPrimitive polyline" << "\n" ; 243 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 244 G4cout << "***** AddPrimitive polyline" << "\n" ; 233 245 #endif 234 246 VRMLBeginModeling () ; … … 269 281 { 270 282 #if defined DEBUG_SCENE_FUNC 271 G4cerr << "***** AddPrimitive(G4Polyhedron)" << "\n"; 283 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 284 G4cout << "***** AddPrimitive(G4Polyhedron)" << "\n"; 272 285 #endif 273 286 … … 338 351 { 339 352 #if defined DEBUG_SCENE_FUNC 340 G4cerr << "***** AddPrimitive nurbs" << "\n" ; 353 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 354 G4cout << "***** AddPrimitive nurbs" << "\n" ; 341 355 #endif 342 G4cerr << "G4VRML1File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 356 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 357 G4cout << "G4VRML1File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 343 358 VRMLBeginModeling () ; 344 359 … … 348 363 { 349 364 #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 << 353 370 "***** void G4VRML1SCENEHANDLER::AddPrimitive( const G4Text& text )" 354 371 " not implemented yet." … … 361 378 { 362 379 #if defined DEBUG_SCENE_FUNC 363 G4cerr << "***** AddPrimitive circle" << "\n" ; 380 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 381 G4cout << "***** AddPrimitive circle" << "\n" ; 364 382 #endif 365 383 … … 391 409 { 392 410 #if defined DEBUG_SCENE_FUNC 393 G4cerr << "***** AddPrimitive square" << "\n" ; 411 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 412 G4cout << "***** AddPrimitive square" << "\n" ; 394 413 #endif 395 414 … … 423 442 { 424 443 #if defined DEBUG_SCENE_FUNC 425 G4cerr << "***** BeginModeling " << "\n" ; 444 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 445 G4cout << "***** BeginModeling " << "\n" ; 426 446 #endif 427 447 G4VSceneHandler::BeginModeling(); … … 431 451 { 432 452 #if defined DEBUG_SCENE_FUNC 433 G4cerr << "***** EndModeling " << "\n" ; 453 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 454 G4cout << "***** EndModeling " << "\n" ; 434 455 #endif 435 456 G4VSceneHandler::EndModeling(); … … 441 462 fpObjectTransformation = &objectTransformation; 442 463 #if defined DEBUG_SCENE_FUNC 443 G4cerr << "***** BeginPrimitives " << "\n" ; 464 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 465 G4cout << "***** BeginPrimitives " << "\n" ; 444 466 #endif 445 467 VRMLBeginModeling(); … … 449 471 { 450 472 #if defined DEBUG_SCENE_FUNC 451 G4cerr << "***** EndPrimitives " << "\n" ; 473 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 474 G4cout << "***** EndPrimitives " << "\n" ; 452 475 #endif 453 476 G4VSceneHandler::EndPrimitives(); … … 555 578 if (!IS_CONNECTED ) { 556 579 #if defined DEBUG_SCENE_FUNC 557 G4cerr << "***** VRMLBeginModeling() (started)" << "\n" ; 580 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 581 G4cout << "***** VRMLBeginModeling() (started)" << "\n" ; 558 582 #endif 559 583 this->connectPort(); … … 567 591 if ( IS_CONNECTED ) { 568 592 #if defined DEBUG_SCENE_FUNC 569 G4cerr << "***** VRMLEndModeling() (started)" << "\n" ; 593 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 594 G4cout << "***** VRMLEndModeling() (started)" << "\n" ; 570 595 #endif 571 596 -
trunk/source/visualization/VRML/src/G4VRML1Viewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1Viewer.cc,v 1. 8 2006/06/29 21:26:05 gunterExp $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 $ 29 29 // 30 30 // G4VRMLView.cc … … 39 39 40 40 //#define DEBUG_FR_VIEW 41 42 #include "G4VisManager.hh" 41 43 42 44 #include "G4Scene.hh" … … 56 58 { 57 59 #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; 59 62 #endif 60 63 } … … 63 66 { 64 67 #if defined DEBUG_FR_VIEW 65 G4cerr << "***** G4VRML1Viewer::DrawView()" << G4endl; 68 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 69 G4cout << "***** G4VRML1Viewer::DrawView()" << G4endl; 66 70 #endif 67 71 … … 77 81 { 78 82 #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; 80 85 #endif 81 86 } … … 84 89 { 85 90 #if defined DEBUG_FR_VIEW 86 G4cerr << "***** G4VRML1Viewer::ShowView()" << G4endl; 91 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 92 G4cout << "***** G4VRML1Viewer::ShowView()" << G4endl; 87 93 #endif 88 94 fSceneHandler.VRMLEndModeling(); … … 92 98 { 93 99 #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; 95 102 #endif 96 103 } -
trunk/source/visualization/VRML/src/G4VRML2.cc
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2.cc -
trunk/source/visualization/VRML/src/G4VRML2File.cc
r1337 r1347 26 26 // 27 27 // $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 $ 29 29 // 30 30 // G4VRML2File.cc -
trunk/source/visualization/VRML/src/G4VRML2FileSceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2FileSceneHandler.cc,v 1.1 4 2006/06/29 21:26:11 gunterExp $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 $ 29 29 // 30 30 // G4VRML2FileSceneHandler.cc … … 43 43 #include "G4VPhysicalVolume.hh" 44 44 #include "G4LogicalVolume.hh" 45 #include "G4VisManager.hh" 45 46 #include "G4Point3D.hh" 46 47 #include "G4VisAttributes.hh" … … 119 120 { 120 121 #if defined DEBUG_FR_SCENE 121 G4cerr << "***** ~G4VRML2FileSceneHandler" << G4endl; 122 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 123 G4cout << "***** ~G4VRML2FileSceneHandler" << G4endl; 122 124 #endif 123 125 VRMLEndModeling(); … … 149 151 if( i == MAX_FILE_INDEX ) 150 152 { 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 } 158 162 } 159 163 … … 180 184 181 185 // 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 } 188 193 fDest.open(fVRMLFileName) ; fFlagDestOpen = true ; 189 194 } … … 201 206 // close VRML file 202 207 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; 204 210 205 211 … … 207 213 208 214 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 } 215 223 } else { 216 224 sprintf( command, "%s %s", viewer, fVRMLFileName ); -
trunk/source/visualization/VRML/src/G4VRML2FileViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2FileViewer.cc,v 1.1 3 2006/06/29 21:26:13 gunterExp $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 $ 29 29 // 30 30 // G4VRML2FileViewer.cc … … 36 36 #include <cmath> 37 37 38 #include "G4VisManager.hh" 38 39 #include "G4Scene.hh" 39 40 #include "G4VRML2FileViewer.hh" … … 60 61 { 61 62 #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; 63 65 #endif 64 66 … … 71 73 { 72 74 #if defined DEBUG_FR_VIEW 73 G4cerr << "***** G4VRML2FileViewer::DrawView()" << G4endl; 75 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 76 G4cout << "***** G4VRML2FileViewer::DrawView()" << G4endl; 74 77 #endif 75 78 … … 88 91 { 89 92 #if defined DEBUG_FR_VIEW 90 G4cerr << "***** G4VRML2File1View::ClearView()" << G4endl; 93 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 94 G4cout << "***** G4VRML2File1View::ClearView()" << G4endl; 91 95 #endif 92 96 if(fSceneHandler.fFlagDestOpen) { … … 102 106 { 103 107 #if defined DEBUG_FR_VIEW 104 G4cerr << "***** G4VRML2FileViewer::ShowView()" << G4endl; 108 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 109 G4cout << "***** G4VRML2FileViewer::ShowView()" << G4endl; 105 110 #endif 106 111 fSceneHandler.VRMLEndModeling(); … … 110 115 { 111 116 #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; 113 119 #endif 114 120 } … … 121 127 122 128 #if defined DEBUG_FR_VIEW 123 G4cerr << "***** G4VRML2FileViewer::SendViewParameters()\n"; 129 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 130 G4cout << "***** G4VRML2FileViewer::SendViewParameters()\n"; 124 131 #endif 125 132 -
trunk/source/visualization/VRML/src/G4VRML2SceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2SceneHandler.cc,v 1.1 2 2006/06/29 21:26:15 gunterExp $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 $ 29 29 // 30 30 // G4VRML2SceneHandler.cc … … 46 46 47 47 #include "globals.hh" 48 #include "G4VisManager.hh" 49 48 50 #include "G4VPhysicalVolume.hh" 49 51 #include "G4LogicalVolume.hh" … … 93 95 { 94 96 #if defined DEBUG_FR_SCENE 95 G4cerr << "***** ~G4VRML2SceneHandler" << G4endl; 97 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 98 G4cout << "***** ~G4VRML2SceneHandler" << G4endl; 96 99 #endif 97 100 } … … 113 116 if (fDest.connect( (const char * )fSystem.getHostName(), port)) { 114 117 // 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 } 118 123 break; 119 124 } else { 120 125 // 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 } 123 130 } 124 131 … … 128 135 129 136 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 } 134 143 } 135 144 } … … 138 147 { 139 148 fDest.close(); 140 G4cerr << "*** INET Connection closed. " << G4endl; 149 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 150 G4cout << "*** INET Connection closed. " << G4endl; 141 151 } 142 152 -
trunk/source/visualization/VRML/src/G4VRML2SceneHandlerFunc.icc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2SceneHandlerFunc.icc,v 1.2 0 2006/06/29 21:26:17 gunterExp $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 $ 29 29 // 30 30 // G4VRML2SceneHandlerFunc.icc … … 33 33 //#define DEBUG_SCENE_FUNC 34 34 35 #include "G4VisManager.hh" 36 35 37 void G4VRML2SCENEHANDLER::AddSolid(const G4Trd& trd) 36 38 { 37 39 #if defined DEBUG_SCENE_FUNC 38 G4cerr << "***** AddSolid trd" << "\n" ; 40 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 41 G4cout << "***** AddSolid trd" << "\n" ; 39 42 #endif 40 43 VRMLBeginModeling () ; … … 45 48 { 46 49 #if defined DEBUG_SCENE_FUNC 47 G4cerr << "***** AddSolid trap" << "\n" ; 50 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 51 G4cout << "***** AddSolid trap" << "\n" ; 48 52 #endif 49 53 VRMLBeginModeling () ; … … 54 58 { 55 59 #if defined DEBUG_SCENE_FUNC 56 G4cerr << "***** AddSolid para" << "\n" ; 60 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 61 G4cout << "***** AddSolid para" << "\n" ; 57 62 #endif 58 63 VRMLBeginModeling () ; … … 63 68 { 64 69 #if defined DEBUG_SCENE_FUNC 65 G4cerr << "***** AddSolid torus" << "\n" ; 70 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 71 G4cout << "***** AddSolid torus" << "\n" ; 66 72 #endif 67 73 VRMLBeginModeling () ; … … 73 79 { 74 80 #if defined DEBUG_SCENE_FUNC 75 G4cerr << "***** AddSolid vsolid" << "\n" ; 81 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 82 G4cout << "***** AddSolid vsolid" << "\n" ; 76 83 #endif 77 84 VRMLBeginModeling () ; … … 82 89 { 83 90 #if defined DEBUG_SCENE_FUNC 84 G4cerr << "***** AddSolid tubs" << "\n" ; 91 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 92 G4cout << "***** AddSolid tubs" << "\n" ; 85 93 #endif 86 94 VRMLBeginModeling () ; … … 93 101 { 94 102 #if defined DEBUG_SCENE_FUNC 95 G4cerr << "***** AddSolid cons" << "\n" ; 103 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 104 G4cout << "***** AddSolid cons" << "\n" ; 96 105 #endif 97 106 VRMLBeginModeling () ; … … 102 111 { 103 112 #if defined DEBUG_SCENE_FUNC 104 G4cerr << "***** AddSolid box" << "\n" ; 113 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 114 G4cout << "***** AddSolid box" << "\n" ; 105 115 #endif 106 116 VRMLBeginModeling () ; … … 112 122 { 113 123 #if defined DEBUG_SCENE_FUNC 114 G4cerr << "***** AddSolid sphere" << "\n" ; 124 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 125 G4cout << "***** AddSolid sphere" << "\n" ; 115 126 #endif 116 127 VRMLBeginModeling () ; … … 121 132 { 122 133 #if defined DEBUG_SCENE_FUNC 123 G4cerr << "***** AddPrimitive polyline" << "\n" ; 134 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 135 G4cout << "***** AddPrimitive polyline" << "\n" ; 124 136 #endif 125 137 … … 170 182 { 171 183 #if defined DEBUG_SCENE_FUNC 172 G4cerr << "***** AddPrimitive(G4Polyhedron)" << "\n"; 184 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 185 G4cout << "***** AddPrimitive(G4Polyhedron)" << "\n"; 173 186 #endif 174 187 … … 253 266 { 254 267 #if defined DEBUG_SCENE_FUNC 255 G4cerr << "***** AddPrimitive nurbs" << "\n" ; 268 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 269 G4cout << "***** AddPrimitive nurbs" << "\n" ; 256 270 #endif 257 G4cerr << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 271 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 272 G4cout << "G4VRML2File::AddPrimitive(G4NURBS&): not implemented. " << "\n" ; 258 273 259 274 VRMLBeginModeling () ; … … 263 278 { 264 279 #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 << 268 285 "***** void G4VRML2SCENEHANDLER::AddPrimitive( const G4Text& text )" 269 286 " not implemented yet." … … 277 294 { 278 295 #if defined DEBUG_SCENE_FUNC 279 G4cerr << "***** AddPrimitive circle" << "\n" ; 296 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 297 G4cout << "***** AddPrimitive circle" << "\n" ; 280 298 #endif 281 299 VRMLBeginModeling () ; … … 335 353 { 336 354 #if defined DEBUG_SCENE_FUNC 337 G4cerr << "***** AddPrimitive square" << "\n" ; 355 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 356 G4cout << "***** AddPrimitive square" << "\n" ; 338 357 #endif 339 358 … … 396 415 { 397 416 #if defined DEBUG_SCENE_FUNC 398 G4cerr << "***** BeginModeling" << "\n" ; 417 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 418 G4cout << "***** BeginModeling" << "\n" ; 399 419 #endif 400 420 G4VSceneHandler::BeginModeling(); … … 405 425 { 406 426 #if defined DEBUG_SCENE_FUNC 407 G4cerr << "***** EndModeling " << "\n" ; 427 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 428 G4cout << "***** EndModeling " << "\n" ; 408 429 #endif 409 430 G4VSceneHandler::EndModeling(); … … 415 436 fpObjectTransformation = &objectTransformation; 416 437 #if defined DEBUG_SCENE_FUNC 417 G4cerr << "***** BeginPrimitives " << "\n" ; 438 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 439 G4cout << "***** BeginPrimitives " << "\n" ; 418 440 #endif 419 441 VRMLBeginModeling(); … … 423 445 { 424 446 #if defined DEBUG_SCENE_FUNC 425 G4cerr << "***** EndPrimitives " << "\n" ; 447 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 448 G4cout << "***** EndPrimitives " << "\n" ; 426 449 #endif 427 450 G4VSceneHandler::EndPrimitives(); … … 500 523 if (!IS_CONNECTED ) { 501 524 #if defined DEBUG_SCENE_FUNC 502 G4cerr << "***** VRMLBeginModeling (started)" << "\n" ; 525 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 526 G4cout << "***** VRMLBeginModeling (started)" << "\n" ; 503 527 #endif 504 528 this->connectPort(); … … 512 536 if ( IS_CONNECTED ) { 513 537 #if defined DEBUG_SCENE_FUNC 514 G4cerr << "***** VRMLEndModeling (started)" << "\n" ; 538 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 539 G4cout << "***** VRMLEndModeling (started)" << "\n" ; 515 540 #endif 516 541 fDest << "#End of file." << "\n"; -
trunk/source/visualization/VRML/src/G4VRML2Viewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2Viewer.cc,v 1.1 2 2006/06/29 21:26:35 gunterExp $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 $ 29 29 // 30 30 // G4VRML2Viewer.cc … … 42 42 #include <cmath> 43 43 44 #include "G4VisManager.hh" 44 45 #include "G4Scene.hh" 45 46 #include "G4VRML2Viewer.hh" … … 65 66 { 66 67 #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; 68 70 #endif 69 71 … … 77 79 { 78 80 #if defined DEBUG_FR_VIEW 79 G4cerr << "***** G4VRML2Viewer::DrawView()" << G4endl; 81 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 82 G4cout << "***** G4VRML2Viewer::DrawView()" << G4endl; 80 83 #endif 81 84 fSceneHandler.VRMLBeginModeling() ; … … 93 96 { 94 97 #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; 96 100 #endif 97 101 } … … 100 104 { 101 105 #if defined DEBUG_FR_VIEW 102 G4cerr << "***** G4VRML2Viewer::ShowView()" << G4endl; 106 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 107 G4cout << "***** G4VRML2Viewer::ShowView()" << G4endl; 103 108 #endif 104 109 fSceneHandler.VRMLEndModeling(); … … 108 113 { 109 114 #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; 111 117 #endif 112 118 } … … 119 125 120 126 #if defined DEBUG_FR_VIEW 121 G4cerr << "***** G4VRML2Viewer::SendViewParameters()\n"; 127 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 128 G4cout << "***** G4VRML2Viewer::SendViewParameters()\n"; 122 129 #endif 123 130 // error recovery
Note:
See TracChangeset
for help on using the changeset viewer.
