Changeset 921 for trunk/source/visualization/OpenGL/src
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r918 r921 48 48 #include "G4AttHolder.hh" 49 49 #include "G4AttCheck.hh" 50 51 #include "Geant4_gl2ps.h"52 50 53 51 #include <sstream> … … 118 116 fWinSize_x = fVP.GetWindowSizeHintX(); 119 117 fWinSize_y = fVP.GetWindowSizeHintY(); 118 119 fGL2PSAction = new G4OpenGL2PSAction(); 120 120 121 121 // glClearColor (0.0, 0.0, 0.0, 0.0); … … 883 883 884 884 // fGL2PSAction->enableFileWriting(); 885 886 887 ////////////// 888 if (!fGL2PSAction) return; 889 890 fGL2PSAction->setFileName("gl2psTest.ps"); 891 G4cout << "Produce " << aFile << "..." << G4endl; 892 if (fGL2PSAction->enableFileWriting()) { 893 DrawView(); 894 fGL2PSAction->disableFileWriting(); 895 } 896 ////////////// 897 885 898 FILE *fFile = fopen(aFile,"w"); 886 899 if(!fFile) { … … 930 943 15, 20, 10, buffsize, fFile, aFile); 931 944 DrawView(); 945 #ifdef G4DEBUG_VIS_OGL 946 printf("into While............\n"); 947 #endif 932 948 res = gl2psEndPage(); 933 949 }
Note: See TracChangeset
for help on using the changeset viewer.