- Timestamp:
- Mar 19, 2009, 11:04:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc
r941 r946 177 177 fpCommandFade->SetDefaultValue(0.); 178 178 179 179 180 fpCommandPrintMode = new G4UIcmdWithAString 180 181 ("/vis/ogl/set/printMode",this); … … 228 229 (G4UIcommand* command, G4String newValue) 229 230 { 231 230 232 G4VisManager* pVisManager = G4VisManager::GetInstance(); 233 231 234 232 235 G4VViewer* pVViewer = pVisManager->GetCurrentViewer(); … … 250 253 } 251 254 252 if (command == fpCommandPrintEPS) 255 if (command == fpCommandPrintEPS) 253 256 { 254 257 // Keep copy of fPrintFilename to preserve Xm behaviour... … … 261 264 pOGLViewer->fPrintFilename = std::string(oss.str().c_str()); 262 265 // Print eps file... 266 printf("G4OpenGLViewerMessenger : Call printEPS \n"); 263 267 pOGLViewer->printEPS(); 264 268 // Restore fPrintFilename for Xm... 265 269 pOGLViewer->fPrintFilename = tmp_string; 266 270 return; 271 } 272 273 if (command == fpCommandPrintMode) 274 { 275 if (newValue == "vectored") pOGLViewer->fVectoredPs = true; 276 if (newValue == "pixmap") pOGLViewer->fVectoredPs = false; 267 277 } 268 278 … … 343 353 } 344 354 345 if (command == fpCommandPrintMode)346 {347 if (newValue == "vectored") pViewer->fVectoredPs = true;348 if (newValue == "pixmap") pViewer->fVectoredPs = false;349 }350 351 355 if (command == fpCommandStartTime) 352 356 {
Note: See TracChangeset
for help on using the changeset viewer.