Changeset 921 for trunk/source/visualization/OpenGL
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/GNUmakefile
r916 r921 22 22 23 23 CPPFLAGS += -DG4DEBUG_VIS_OGL 24 25 ifdef G4VIS_BUILD_OPENGL_DRIVER 26 CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include 27 endif 28 ifdef G4VIS_BUILD_OI_DRIVER 29 CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include 30 endif 24 31 CPPFLAGS += -I$(G4BASE)/visualization/management/include 25 32 CPPFLAGS += -I$(G4BASE)/visualization/modeling/include … … 35 42 CPPFLAGS += -I$(G4BASE)/digits_hits/hits/include 36 43 44 INTYLIBS += -L$(G4LIBDIR) -lG4gl2ps 45 37 46 include $(G4INSTALL)/config/moc.gmk 38 47 include $(G4INSTALL)/config/common.gmk -
trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh
r918 r921 38 38 39 39 #include "G4VViewer.hh" 40 #include <GL/gl.h>40 #include "G4OpenGL2PSAction.hh" 41 41 42 42 class G4OpenGLSceneHandler; … … 108 108 fDisplayLightFrontT; 109 109 G4double fDisplayLightFrontRed, fDisplayLightFrontGreen, fDisplayLightFrontBlue; 110 G4OpenGL2PSAction* fGL2PSAction; 110 111 111 112 private : -
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.