Changeset 977 for trunk/source/visualization
- Timestamp:
- Apr 10, 2009, 12:26:43 PM (15 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/include/G4OpenGLXViewer.hh
r975 r977 57 57 void SetView (); 58 58 void ShowView (); 59 void printEPS(); 59 60 60 61 protected: … … 63 64 virtual void CreateMainWindow (); 64 65 virtual void CreateFontLists (); 65 void printEPS();66 66 67 67 static int snglBuf_RGBA[12]; -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r975 r977 49 49 #include "G4AttHolder.hh" 50 50 #include "G4AttCheck.hh" 51 52 #include "G4OpenGLXViewer.hh" 51 53 52 54 // GL2PS … … 485 487 res = printVectoredEPS(); 486 488 } else { 487 res = printNonVectoredEPS(); 489 490 G4OpenGLXViewer* pOGLXViewer = dynamic_cast<G4OpenGLXViewer*>(this); 491 if (pOGLXViewer) { 492 pOGLXViewer->printEPS(); 493 } else { 494 res = printNonVectoredEPS(); 495 } 488 496 } 489 497 if (res == false) { -
trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc
r948 r977 261 261 pOGLViewer->fPrintFilename = std::string(oss.str().c_str()); 262 262 // Print eps file... 263 #ifdef G4DEBUG_VIS_OGL 264 printf("G4OpenGLViewerMessenger::SetNewValue Call printEPS %s\n",std::string(oss.str().c_str()).c_str()); 265 #endif 263 266 pOGLViewer->printEPS(); 264 267 // Restore fPrintFilename for Xm... -
trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc
r975 r977 429 429 printf("G4OpenGLXViewer::print non Vectored\n"); 430 430 #endif 431 // G4OpenGLViewer::printEPS(); 432 433 434 435 436 437 431 438 // G4StateManager* stateManager = G4StateManager::GetStateManager(); 432 439 // G4ApplicationState oldState = stateManager->GetCurrentState(); … … 496 503 file +=".eps"; 497 504 #else 498 std::string file = "G4OpenGL_XPixmapTest.eps";505 std::string file = fPrintFilename.c_str(); 499 506 #endif 500 507
Note: See TracChangeset
for help on using the changeset viewer.