Changeset 1347 for trunk/source/visualization/FukuiRenderer/src
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (15 years ago)
- Location:
- trunk/source/visualization/FukuiRenderer/src
- Files:
-
- 8 edited
-
CVS/Entries (modified) (1 diff)
-
G4DAWNFILE.cc (modified) (1 diff)
-
G4DAWNFILESceneHandler.cc (modified) (13 diffs)
-
G4DAWNFILEViewer.cc (modified) (9 diffs)
-
G4FRClientServer.cc (modified) (5 diffs)
-
G4FukuiRenderer.cc (modified) (11 diffs)
-
G4FukuiRendererSceneHandler.cc (modified) (7 diffs)
-
G4FukuiRendererViewer.cc (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/FukuiRenderer/src/CVS/Entries
r1346 r1347 1 /G4DAWNFILE.cc/1.11/Thu Jun 29 21:16:50 2006//Tgeant4-09-04-ref-00 2 /G4DAWNFILESceneHandler.cc/1.19/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 3 /G4DAWNFILEViewer.cc/1.21/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 4 /G4FRClientServer.cc/1.7/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 5 /G4FukuiRenderer.cc/1.10/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 6 /G4FukuiRendererSceneHandler.cc/1.15/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 7 /G4FukuiRendererViewer.cc/1.12/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 1 8 D -
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILE.cc
r1337 r1347 26 26 // 27 27 // $Id: G4DAWNFILE.cc,v 1.11 2006/06/29 21:16:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA -
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILESceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4DAWNFILESceneHandler.cc,v 1.1 8 2006/06/29 21:16:52 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4DAWNFILESceneHandler.cc,v 1.19 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA … … 41 41 #include <string.h> 42 42 #include "globals.hh" 43 #include "G4VisManager.hh" 43 44 #include "G4FRConst.hh" 44 45 #include "G4DAWNFILE.hh" … … 128 129 { 129 130 #if defined DEBUG_FR_SCENE 130 G4cerr << "***** ~G4DAWNFILESceneHandler" << G4endl; 131 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 132 G4cout << "***** ~G4DAWNFILESceneHandler" << G4endl; 131 133 #endif 132 134 if (fPrimDest.IsOpen()) … … 158 160 if( i == MAX_FILE_INDEX ) 159 161 { 160 G4cerr << "===========================================" << G4endl; 161 G4cerr << "WARNING MESSAGE from DAWNFILE driver: " << G4endl; 162 G4cerr << " This file name is the final one in the " << G4endl; 163 G4cerr << " automatic updation of the output file name." << G4endl; 164 G4cerr << " You may overwrite existing files, i.e. " << G4endl; 165 G4cerr << " g4_XX.prim and g4_XX.eps " << G4endl; 166 G4cerr << "===========================================" << G4endl; 162 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 163 G4cout << "===========================================" << G4endl; 164 G4cout << "WARNING MESSAGE from DAWNFILE driver: " << G4endl; 165 G4cout << " This file name is the final one in the " << G4endl; 166 G4cout << " automatic updation of the output file name." << G4endl; 167 G4cout << " You may overwrite existing files, i.e. " << G4endl; 168 G4cout << " g4_XX.prim and g4_XX.eps " << G4endl; 169 G4cout << "===========================================" << G4endl; 170 } 167 171 } 168 172 … … 188 192 } // for 189 193 190 G4c err<< "=========================================== " << G4endl;191 G4c err<< "Output file: " << fG4PrimFileName << G4endl;192 G4c err<< "Destination directory (current dir if NULL): " << fG4PrimDestDir << G4endl;193 G4c err<< "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl;194 G4c err<< "Note: " << G4endl;195 G4c err<< " * The maximal number is customizable as: " << G4endl;196 G4c err<< " % setenv G4DAWNFILE_MAX_FILE_NUM number " << G4endl;197 G4c err<< " * The destination directory is customizable as:" << G4endl;198 G4c err<< " % setenv G4DAWNFILE_DEST_DIR dir_name/ " << G4endl;199 G4c err<< " ** Do not forget \"/\" at the end of the " << G4endl;200 G4c err<< " dir_name, e.g. \"./tmp/\". " << G4endl;201 G4c err<< "=========================================== " << G4endl;194 G4cout << "=========================================== " << G4endl; 195 G4cout << "Output file: " << fG4PrimFileName << G4endl; 196 G4cout << "Destination directory (current dir if NULL): " << fG4PrimDestDir << G4endl; 197 G4cout << "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl; 198 G4cout << "Note: " << G4endl; 199 G4cout << " * The maximal number is customizable as: " << G4endl; 200 G4cout << " % setenv G4DAWNFILE_MAX_FILE_NUM number " << G4endl; 201 G4cout << " * The destination directory is customizable as:" << G4endl; 202 G4cout << " % setenv G4DAWNFILE_DEST_DIR dir_name/ " << G4endl; 203 G4cout << " ** Do not forget \"/\" at the end of the " << G4endl; 204 G4cout << " dir_name, e.g. \"./tmp/\". " << G4endl; 205 G4cout << "=========================================== " << G4endl; 202 206 203 207 } // G4DAWNFILESceneHandler::SetG4PrimFileName() … … 208 212 { 209 213 #if defined DEBUG_FR_SCENE 210 G4cerr << "***** BeginSavingG4Prim (called)\n"; 214 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 215 G4cout << "***** BeginSavingG4Prim (called)\n"; 211 216 #endif 212 217 … … 214 219 { 215 220 #if defined DEBUG_FR_SCENE 216 G4cerr << "***** (started) " ; 217 G4cerr << "(open g4.prim, ##)" << G4endl; 221 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 222 G4cout << "***** (started) " ; 223 G4cout << "(open g4.prim, ##)" << G4endl; 224 } 218 225 #endif 219 226 SetG4PrimFileName() ; // result set to fG4PrimFileName … … 228 235 { 229 236 #if defined DEBUG_FR_SCENE 230 G4cerr << "***** EndSavingG4Prim (called)\n"; 237 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 238 G4cout << "***** EndSavingG4Prim (called)\n"; 231 239 #endif 232 240 … … 234 242 { 235 243 #if defined DEBUG_FR_SCENE 236 G4cerr << "***** (started) (close g4.prim)" << G4endl; 244 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 245 G4cout << "***** (started) (close g4.prim)" << G4endl; 237 246 #endif 238 247 fPrimDest.Close() ; … … 248 257 { 249 258 #if defined DEBUG_FR_SCENE 250 G4cerr << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl; 259 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 260 G4cout << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl; 251 261 #endif 252 262 … … 259 269 //----- send SET_CAMERA command 260 270 #if defined DEBUG_FR_SCENE 261 G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl; 271 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 272 G4cout << "***** (!SetCamera in FRBeginModeling())" << G4endl; 262 273 #endif 263 274 SendStr( FR_SET_CAMERA ); … … 265 276 //----- open device 266 277 #if defined DEBUG_FR_SCENE 267 G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 278 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 279 G4cout << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 268 280 #endif 269 281 SendStr( FR_OPEN_DEVICE ); … … 271 283 //----- begin sending primitives 272 284 #if defined DEBUG_FR_SCENE 273 G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 285 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 286 G4cout << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 274 287 #endif 275 288 SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ; -
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILEViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4DAWNFILEViewer.cc,v 1.2 0 2006/06/29 21:16:54 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4DAWNFILEViewer.cc,v 1.21 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA … … 42 42 #include <assert.h> 43 43 44 #include "G4VisManager.hh" 44 45 #include "G4Scene.hh" 45 46 #include "G4Vector3D.hh" … … 101 102 { 102 103 #if defined DEBUG_FR_VIEW 103 G4cerr << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl; 104 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 105 G4cout << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl; 104 106 #endif 105 107 // Do nothing, since DAWN is running as a different process. … … 113 115 { 114 116 #if defined DEBUG_FR_VIEW 115 G4cerr << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl; 117 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 118 G4cout << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl; 116 119 #endif 117 120 if (fSceneHandler.fPrimDest.IsOpen()) { … … 130 133 { 131 134 #if defined DEBUG_FR_VIEW 132 G4cerr << "***** G4DAWNFILEViewer::DrawView () " << G4endl; 135 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 136 G4cout << "***** G4DAWNFILEViewer::DrawView () " << G4endl; 133 137 #endif 134 138 //----- … … 149 153 { 150 154 #if defined DEBUG_FR_VIEW 151 G4cerr << "***** G4DAWNFILEViewer::ShowView () " << G4endl; 155 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 156 G4cout << "***** G4DAWNFILEViewer::ShowView () " << G4endl; 152 157 #endif 153 158 … … 204 209 /////////////////////// 205 210 //#if defined DEBUG_FR_VIEW 206 // G4c err<< "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl;211 // G4cout << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl; 207 212 //#endif 208 213 ////////////////////// … … 242 247 243 248 #if defined DEBUG_FR_VIEW 244 G4cerr << "***** G4DAWNFILEViewer::SendViewParameters() "; 245 G4cerr << "(GUI parameters)" << G4endl; 249 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 250 G4cout << "***** G4DAWNFILEViewer::SendViewParameters() "; 251 G4cout << "(GUI parameters)" << G4endl; 252 } 246 253 #endif 247 254 … … 271 278 272 279 if ( camera_distance < radius ) { 273 G4cerr << "WARNING from DAWNFILE driver:" << G4endl; 274 G4cerr << " Camera cannot enter inside objects" << G4endl; 280 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 281 G4cout << "WARNING from DAWNFILE driver:" << G4endl; 282 G4cout << " Camera cannot enter inside objects" << G4endl; 283 } 275 284 camera_distance = radius ; 276 285 } -
trunk/source/visualization/FukuiRenderer/src/G4FRClientServer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FRClientServer.cc,v 1. 6 2006/06/29 21:16:56 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FRClientServer.cc,v 1.7 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA, Wed Jul 3 14:14:29 JST 1996 … … 38 38 //=================// 39 39 40 #include "G4VisManager.hh" 40 41 #include "G4FRClientServer.hh" 41 42 … … 119 120 120 121 #if defined DEBUG_CLIENT_SERVER 121 G4cerr << ">>>>> receivedMessage = " << fReceivedMessage << G4endl; 122 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 123 G4cout << ">>>>> receivedMessage = " << fReceivedMessage << G4endl; 122 124 #endif 123 125 … … 150 152 151 153 #if defined DEBUG_CLIENT_SERVER 152 G4cerr << "<<<<< SentMessage = " << fSendingMessage << G4endl; 154 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 155 G4cout << "<<<<< SentMessage = " << fSendingMessage << G4endl; 153 156 #endif 154 157 … … 255 258 256 259 // #if defined DEBUG_CLIENT_SERVER 257 G4cerr << "***** Trying connection to " << server_hostname << G4endl; 260 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 261 G4cout << "***** Trying connection to " << server_hostname << G4endl; 258 262 // #endif 259 263 -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRenderer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRenderer.cc,v 1. 9 2006/06/29 21:16:58 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRenderer.cc,v 1.10 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 43 43 #define __G_ANSI_C__ 44 44 45 #include "G4VisManager.hh" 45 46 //#include "G4VisFeaturesOfFukuiRenderer.hh" 46 47 #include "G4VSceneHandler.hh" … … 114 115 115 116 #if defined DEBUG_FR_SYSTEM 116 G4cerr << "***** Unix Inet Domain (AUTO mode)" << G4endl; 117 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 118 G4cout << "***** Unix Inet Domain (AUTO mode)" << G4endl; 117 119 #endif 118 120 fIPMode = G4FukuiRenderer::IP_UNIX ; … … 144 146 145 147 if(!flag_connected) { 146 G4cerr << "***** ERROR: Connection failed" << G4endl; 148 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 149 G4cout << "***** ERROR: Connection failed" << G4endl; 147 150 } 148 151 else { 149 G4cerr << "***** GEANT4 is connected to FukuiRenderer DAWN "; 150 G4cerr << "in the same host" << G4endl; 152 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 153 G4cout << "***** GEANT4 is connected to FukuiRenderer DAWN "; 154 G4cout << "in the same host" << G4endl; 155 } 151 156 } 152 157 … … 159 164 { 160 165 #if defined DEBUG_FR_SYSTEM 161 G4cerr << "***** INET Domain " << G4endl; 166 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 167 G4cout << "***** INET Domain " << G4endl; 162 168 #endif 163 169 fIPMode = G4FukuiRenderer::IP_INET ; … … 166 172 167 173 if(!flag_connected) { 168 G4cerr << "***** ERROR: Connection failed" << G4endl; 174 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 175 G4cout << "***** ERROR: Connection failed" << G4endl; 169 176 } 170 177 else { 171 G4cerr << "GEANT4 is connected to FukuiRenderer DAWN via socket" ; 172 G4cerr << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 179 G4cout << "GEANT4 is connected to FukuiRenderer DAWN via socket" ; 180 G4cout << G4endl; 181 } 173 182 } 174 183 … … 183 192 if ( ++connect_trial > max_port_incr ) { 184 193 this->flag_connected = 0 ; 185 G4cerr << "***** INET Connection failed." << G4endl; 186 G4cerr << " Maybe, you have not invoked DAWN yet," << G4endl; 187 G4cerr << " or too many DAWN's are already running" << G4endl; 188 G4cerr << " in the server host." << G4endl; 194 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 195 G4cout << "***** INET Connection failed." << G4endl; 196 G4cout << " Maybe, you have not invoked DAWN yet," << G4endl; 197 G4cout << " or too many DAWN's are already running" << G4endl; 198 G4cout << " in the server host." << G4endl; 199 } 189 200 fPrimDest.IncrementPortNumber( (- FR_MAX_PORT_INCR) ); 190 201 return ; … … 192 203 // INET domain connection is established 193 204 this->flag_connected = 1 ; 194 G4cerr << "***** GEANT4 is connected to port " ; 195 G4cerr << fPrimDest.GetPortNumber() ; 196 G4cerr << " of server" << G4endl; 205 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 206 G4cout << "***** GEANT4 is connected to port " ; 207 G4cout << fPrimDest.GetPortNumber() ; 208 G4cout << " of server" << G4endl; 209 } 197 210 break ; 198 211 } else { … … 200 213 this->flag_connected = 0 ; 201 214 fPrimDest.IncrementPortNumber(); 202 G4cerr << "***** GEANT4 incremented targeting port to " ; 203 G4cerr << fPrimDest.GetPortNumber() << G4endl; 215 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 216 G4cout << "***** GEANT4 incremented targeting port to " ; 217 G4cout << fPrimDest.GetPortNumber() << G4endl; 218 } 204 219 205 220 } // if-elseif-else … … 215 230 216 231 #if defined DEBUG_FR_SYSTEM 217 G4cerr << "***** UseBSDUnixDomainAuto " << G4endl; 232 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 233 G4cout << "***** UseBSDUnixDomainAuto " << G4endl; 218 234 #endif 219 235 fIPMode = G4FukuiRenderer::IP_UNIX ; // Unix domain … … 241 257 //----- display status 242 258 if(!flag_connected) { 243 G4cerr << "***** ERROR: Connection failed" << G4endl; 259 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 260 G4cout << "***** ERROR: Connection failed" << G4endl; 244 261 } else { 245 G4cerr << "*** GEANT4 is connected to FukuiRenderer DAWN "; 246 G4cerr << "in the same host" << G4endl; 262 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 263 G4cout << "*** GEANT4 is connected to FukuiRenderer DAWN "; 264 G4cout << "in the same host" << G4endl; 265 } 247 266 } 248 267 -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererSceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRendererSceneHandler.cc,v 1.1 4 2006/06/29 21:17:00 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRendererSceneHandler.cc,v 1.15 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 46 46 #include <string.h> 47 47 #include "globals.hh" 48 #include "G4VisManager.hh" 48 49 #include "G4FRConst.hh" 49 50 #include "G4FukuiRenderer.hh" … … 125 126 { 126 127 #if defined DEBUG_FR_SCENE 127 G4cerr << "***** ~G4FukuiRendererSceneHandler" << G4endl; 128 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 129 G4cout << "***** ~G4FukuiRendererSceneHandler" << G4endl; 128 130 #endif 129 131 ClearStore (); // clear current scene … … 137 139 { 138 140 #if defined DEBUG_FR_SCENE 139 G4cerr << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl; 141 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 142 G4cout << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl; 140 143 #endif 141 144 … … 173 176 // !SetCamera 174 177 #if defined DEBUG_FR_SCENE 175 G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 179 G4cout << "***** (!SetCamera in FRBeginModeling())" << G4endl; 176 180 #endif 177 181 SendStr( FR_SET_CAMERA ); … … 180 184 // !OpenDevice 181 185 #if defined DEBUG_FR_SCENE 182 G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 186 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 187 G4cout << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 183 188 #endif 184 189 SendStr( FR_OPEN_DEVICE ); … … 187 192 // !BeginModeling 188 193 #if defined DEBUG_FR_SCENE 189 G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 194 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 195 G4cout << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 190 196 #endif 191 197 SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ; -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRendererViewer.cc,v 1.1 1 2006/06/29 21:17:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRendererViewer.cc,v 1.12 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 47 47 #include <assert.h> 48 48 49 #include "G4VisManager.hh" 49 50 #include "G4Scene.hh" 50 51 #include "G4Vector3D.hh" … … 76 77 { 77 78 #if defined DEBUG_FR_VIEW 78 G4cerr << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl; 79 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 80 G4cout << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl; 79 81 #endif 80 82 // Do nothing, since DAWN is running as a different process. … … 87 89 { 88 90 #if defined DEBUG_FR_VIEW 89 G4cerr << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl; 91 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 92 G4cout << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl; 90 93 #endif 91 94 … … 97 100 { 98 101 #if defined DEBUG_FR_VIEW 99 G4cerr << "***** G4FukuiRendererViewer::DrawView () " << G4endl; 102 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 103 G4cout << "***** G4FukuiRendererViewer::DrawView () " << G4endl; 100 104 #endif 101 105 … … 116 120 { 117 121 #if defined DEBUG_FR_VIEW 118 G4cerr << "***** G4FukuiRendererViewer::ShowView () " << G4endl; 122 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 123 G4cout << "***** G4FukuiRendererViewer::ShowView () " << G4endl; 119 124 #endif 120 125 … … 137 142 { 138 143 #if defined DEBUG_FR_VIEW 139 G4cerr << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl; 144 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 145 G4cout << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl; 140 146 #endif 141 147 fSceneHandler.SendStr ( FR_WAIT ); 142 148 fSceneHandler.GetPrimDest().WaitSendBack( FR_WAIT ); 143 149 #if defined DEBUG_FR_VIEW 144 G4cerr << "***** G4FukuiRendererViewer::Wait () : end" << G4endl; 150 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 151 G4cout << "***** G4FukuiRendererViewer::Wait () : end" << G4endl; 145 152 #endif 146 153 … … 153 160 { 154 161 #if defined DEBUG_FR_VIEW 155 G4cerr << "***** G4FukuiRendererViewer::SendDevice() " << G4endl; 162 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 163 G4cout << "***** G4FukuiRendererViewer::SendDevice() " << G4endl; 156 164 #endif 157 165 … … 168 176 { 169 177 #if defined DEBUG_FR_VIEW 170 G4cerr << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 179 G4cout << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl; 171 180 #endif 172 181 … … 201 210 202 211 #if defined DEBUG_FR_VIEW 203 G4cerr << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl; 212 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 213 G4cout << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl; 204 214 #endif 205 215 … … 229 239 230 240 if ( camera_distance < radius ) { 231 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 232 G4cerr << " Camera cannot enter inside objects" << G4endl; 241 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 242 G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 243 G4cout << " Camera cannot enter inside objects" << G4endl; 244 } 233 245 camera_distance = radius ; 234 246 }
Note:
See TracChangeset
for help on using the changeset viewer.
