Index: trunk/source/visualization/OpenGL/GNUmakefile
===================================================================
--- trunk/source/visualization/OpenGL/GNUmakefile	(revision 923)
+++ trunk/source/visualization/OpenGL/GNUmakefile	(revision 924)
@@ -1,3 +1,3 @@
-# $Id: GNUmakefile,v 1.8 2008/04/29 16:58:04 lgarnier Exp $
+# $Id: GNUmakefile,v 1.9 2009/02/16 15:31:05 lgarnier Exp $
 
 name := G4OpenGL
@@ -21,12 +21,5 @@
 include $(G4INSTALL)/config/interactivity.gmk
 
-CPPFLAGS += -DG4DEBUG_VIS_OGL
-
-ifdef G4VIS_BUILD_OPENGL_DRIVER
 CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
-endif
-ifdef G4VIS_BUILD_OI_DRIVER
-CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
-endif
 CPPFLAGS += -I$(G4BASE)/visualization/management/include
 CPPFLAGS += -I$(G4BASE)/visualization/modeling/include
Index: trunk/source/visualization/OpenGL/History
===================================================================
--- trunk/source/visualization/OpenGL/History	(revision 923)
+++ trunk/source/visualization/OpenGL/History	(revision 924)
@@ -1,3 +1,3 @@
-$Id: History,v 1.125 2009/02/04 16:48:40 lgarnier Exp $
+$Id: History,v 1.126 2009/02/16 15:31:05 lgarnier Exp $
 -------------------------------------------------------------------
 
@@ -20,4 +20,10 @@
 History file for visualization/OpenGL
 -------------------------------------
+
+16 February 2009, Laurent Garnier
+ - Modifications in GNUMakefile for gl2ps.
+ - G4OpenGLViewer,G4OpenGLViewerMessenger.cc,G4OpenGLXmMainMenubarCallbacks.cc
+   ,G4OpenGLXmViewer.cc modified for gl2ps and some renaming "print" in 
+   "printVectoredEPS"
 
 2nd February 2009  Laurent Garnier
Index: trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh
===================================================================
--- trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh	(revision 923)
+++ trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh	(revision 924)
@@ -25,5 +25,5 @@
 //
 //
-// $Id: G4OpenGLViewer.hh,v 1.26 2009/02/04 16:48:41 lgarnier Exp $
+// $Id: G4OpenGLViewer.hh,v 1.27 2009/02/16 15:31:05 lgarnier Exp $
 // GEANT4 tag $Name:  $
 //
Index: trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
===================================================================
--- trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc	(revision 923)
+++ trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc	(revision 924)
@@ -25,5 +25,5 @@
 //
 //
-// $Id: G4OpenGLViewer.cc,v 1.47 2009/02/04 16:48:41 lgarnier Exp $
+// $Id: G4OpenGLViewer.cc,v 1.48 2009/02/16 15:31:05 lgarnier Exp $
 // GEANT4 tag $Name:  $
 //
@@ -812,6 +812,4 @@
   int components, pos, i;
 
-  WritePostScript("1-PostScripTest.ps");
-
   pixels = grabPixels (inColour, width, height);
 
@@ -884,22 +882,12 @@
 void G4OpenGLViewer::WritePostScript(const char *aFile) {
 
-  G4cout << "Produce " << aFile << "..." << G4endl;
-
-  //  fGL2PSAction->enableFileWriting();
-
-
-  //////////////
   if (!fGL2PSAction) return;
 
   fGL2PSAction->setFileName("PostScriptViaGL2PS.ps");
-  G4cout << "Produce " << aFile << "..." << G4endl;
   if (fGL2PSAction->enableFileWriting()) {
     DrawView();
     fGL2PSAction->disableFileWriting();
   }
-  //////////////
-
-  //  FILE *fFile = fopen(aFile,"w");
-  FILE *fFile = fopen("PostScriptALaMain.ps","w");
+  FILE *fFile = fopen(aFile,"w");
   if(!fFile) {
     G4cout << "G4OpenGLViewer::WritePostScript. Cannot open file " <<aFile << G4endl;
@@ -948,7 +936,4 @@
                    15, 20, 10, buffsize, fFile, aFile);
     DrawView();
-#ifdef G4DEBUG_VIS_OGL
-    printf("into While............\n");
-#endif
     res = gl2psEndPage();
   }
Index: trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc
===================================================================
--- trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc	(revision 923)
+++ trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc	(revision 924)
@@ -25,5 +25,5 @@
 //
 //
-// $Id: G4OpenGLViewerMessenger.cc,v 1.13 2009/01/19 16:53:42 lgarnier Exp $
+// $Id: G4OpenGLViewerMessenger.cc,v 1.14 2009/02/16 15:31:05 lgarnier Exp $
 // GEANT4 tag $Name:  $
 
Index: trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc
===================================================================
--- trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc	(revision 923)
+++ trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc	(revision 924)
@@ -25,5 +25,5 @@
 //
 //
-// $Id: G4OpenGLXViewer.cc,v 1.48 2009/02/04 16:48:41 lgarnier Exp $
+// $Id: G4OpenGLXViewer.cc,v 1.49 2009/02/16 15:31:05 lgarnier Exp $
 // GEANT4 tag $Name:  $
 //
Index: trunk/source/visualization/OpenGL/src/G4OpenGLXmMainMenubarCallbacks.cc
===================================================================
--- trunk/source/visualization/OpenGL/src/G4OpenGLXmMainMenubarCallbacks.cc	(revision 923)
+++ trunk/source/visualization/OpenGL/src/G4OpenGLXmMainMenubarCallbacks.cc	(revision 924)
@@ -25,5 +25,5 @@
 //
 //
-// $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.15 2009/02/04 16:48:41 lgarnier Exp $
+// $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.16 2009/02/16 15:31:05 lgarnier Exp $
 // GEANT4 tag $Name:  $
 //
