Changeset 924


Ignore:
Timestamp:
Feb 16, 2009, 4:31:26 PM (15 years ago)
Author:
garnier
Message:

add gl2ps library and changes to include it. See History file

Location:
trunk/source/visualization
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/GNUmakefile

    r921 r924  
    1 # $Id: GNUmakefile,v 1.21 2005/06/04 14:53:18 gcosmo Exp $
     1# $Id: GNUmakefile,v 1.22 2009/02/16 15:31:05 lgarnier Exp $
    22# -----------------------------------------------------------------------
    33# GNUmakefile for visualization and modeling.  John Allison, 5/7/95.
  • trunk/source/visualization/History

    r912 r924  
    1 $Id: History,v 1.425 2009/01/22 15:39:54 lgarnier Exp $
     1$Id: History,v 1.426 2009/02/16 15:31:05 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2424History file for visualization category
    2525---------------------------------------
     26
     2716 February 2009, Laurent Garnier
     28 - Creation of this gl2ps library in order to have a gl2ps for all viewers.
     29 - Some modifications in GNUMakefile for gl2ps. Packages OpenInventor,
     30   OpenGL had also been modified for gl2ps.
    2631
    273222th January 2009  Laurent Garnier
  • trunk/source/visualization/OpenGL/GNUmakefile

    r921 r924  
    1 # $Id: GNUmakefile,v 1.8 2008/04/29 16:58:04 lgarnier Exp $
     1# $Id: GNUmakefile,v 1.9 2009/02/16 15:31:05 lgarnier Exp $
    22
    33name := G4OpenGL
     
    2121include $(G4INSTALL)/config/interactivity.gmk
    2222
    23 CPPFLAGS += -DG4DEBUG_VIS_OGL
    24 
    25 ifdef G4VIS_BUILD_OPENGL_DRIVER
    2623CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
    27 endif
    28 ifdef G4VIS_BUILD_OI_DRIVER
    29 CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
    30 endif
    3124CPPFLAGS += -I$(G4BASE)/visualization/management/include
    3225CPPFLAGS += -I$(G4BASE)/visualization/modeling/include
  • trunk/source/visualization/OpenGL/History

    r915 r924  
    1 $Id: History,v 1.125 2009/02/04 16:48:40 lgarnier Exp $
     1$Id: History,v 1.126 2009/02/16 15:31:05 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/OpenGL
    2121-------------------------------------
     22
     2316 February 2009, Laurent Garnier
     24 - Modifications in GNUMakefile for gl2ps.
     25 - G4OpenGLViewer,G4OpenGLViewerMessenger.cc,G4OpenGLXmMainMenubarCallbacks.cc
     26   ,G4OpenGLXmViewer.cc modified for gl2ps and some renaming "print" in
     27   "printVectoredEPS"
    2228
    23292nd February 2009  Laurent Garnier
  • trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh

    r923 r924  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.hh,v 1.26 2009/02/04 16:48:41 lgarnier Exp $
     27// $Id: G4OpenGLViewer.hh,v 1.27 2009/02/16 15:31:05 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r923 r924  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.cc,v 1.47 2009/02/04 16:48:41 lgarnier Exp $
     27// $Id: G4OpenGLViewer.cc,v 1.48 2009/02/16 15:31:05 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    812812  int components, pos, i;
    813813
    814   WritePostScript("1-PostScripTest.ps");
    815 
    816814  pixels = grabPixels (inColour, width, height);
    817815
     
    884882void G4OpenGLViewer::WritePostScript(const char *aFile) {
    885883
    886   G4cout << "Produce " << aFile << "..." << G4endl;
    887 
    888   //  fGL2PSAction->enableFileWriting();
    889 
    890 
    891   //////////////
    892884  if (!fGL2PSAction) return;
    893885
    894886  fGL2PSAction->setFileName("PostScriptViaGL2PS.ps");
    895   G4cout << "Produce " << aFile << "..." << G4endl;
    896887  if (fGL2PSAction->enableFileWriting()) {
    897888    DrawView();
    898889    fGL2PSAction->disableFileWriting();
    899890  }
    900   //////////////
    901 
    902   //  FILE *fFile = fopen(aFile,"w");
    903   FILE *fFile = fopen("PostScriptALaMain.ps","w");
     891  FILE *fFile = fopen(aFile,"w");
    904892  if(!fFile) {
    905893    G4cout << "G4OpenGLViewer::WritePostScript. Cannot open file " <<aFile << G4endl;
     
    948936                   15, 20, 10, buffsize, fFile, aFile);
    949937    DrawView();
    950 #ifdef G4DEBUG_VIS_OGL
    951     printf("into While............\n");
    952 #endif
    953938    res = gl2psEndPage();
    954939  }
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc

    r917 r924  
    2525//
    2626//
    27 // $Id: G4OpenGLViewerMessenger.cc,v 1.13 2009/01/19 16:53:42 lgarnier Exp $
     27// $Id: G4OpenGLViewerMessenger.cc,v 1.14 2009/02/16 15:31:05 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929
  • trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc

    r917 r924  
    2525//
    2626//
    27 // $Id: G4OpenGLXViewer.cc,v 1.48 2009/02/04 16:48:41 lgarnier Exp $
     27// $Id: G4OpenGLXViewer.cc,v 1.49 2009/02/16 15:31:05 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLXmMainMenubarCallbacks.cc

    r916 r924  
    2525//
    2626//
    27 // $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.15 2009/02/04 16:48:41 lgarnier Exp $
     27// $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.16 2009/02/16 15:31:05 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenInventor/GNUmakefile

    r921 r924  
    1 # $Id: GNUmakefile,v 1.8 2006/11/02 12:02:23 allison Exp $
     1# $Id: GNUmakefile,v 1.9 2009/02/16 15:31:05 lgarnier Exp $
    22
    33name := G4OpenInventor
     
    1818include $(G4INSTALL)/config/interactivity.gmk
    1919
    20 ifdef G4VIS_BUILD_OPENGL_DRIVER
    2120CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
    22 endif
    23 ifdef G4VIS_BUILD_OI_DRIVER
    24 CPPFLAGS += -I$(G4BASE)/visualization/externals/gl2ps/include
    25 endif
    26 
    2721CPPFLAGS += -I$(G4BASE)/visualization/management/include
    2822CPPFLAGS += -I$(G4BASE)/visualization/modeling/include
  • trunk/source/visualization/OpenInventor/History

    r849 r924  
    1 $Id: History,v 1.96 2008/04/30 10:05:31 allison Exp $
     1$Id: History,v 1.97 2009/02/16 15:31:05 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/OpenInventor
    2121-------------------------------------------
     22
     2316 February 2009, Laurent Garnier
     24 - Modifications in GNUMakefile for gl2ps.
     25 - SoGL2PSAction Modified.
     26 - G4OpenInventorViewer.cc add a protection on file writing in gl2ps
    2227
    232830th April 2008  John Allison  (openinventor-V09-01-01)
  • trunk/source/visualization/OpenInventor/src/G4OpenInventorViewer.cc

    r921 r924  
    2424// ********************************************************************
    2525//
    26 // $Id: G4OpenInventorViewer.cc,v 1.59 2007/04/03 13:35:48 allison Exp $
    27 // GEANT4 tag $Name: HEAD $
     26// $Id: G4OpenInventorViewer.cc,v 1.60 2009/02/16 15:31:05 lgarnier Exp $
     27// GEANT4 tag $Name: $
    2828
    2929#ifdef G4VIS_BUILD_OI_DRIVER
     
    5050#include "G4Scene.hh"
    5151#include "Geant4_SoPolyhedron.h"
    52 #include "G4AttValue.hh"#include "G4AttDef.hh"
     52#include "G4AttValue.hh"
     53#include "G4AttDef.hh"
    5354#include "G4AttCheck.hh"
    5455#include "G4AttHolder.hh"
  • trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc

    r923 r924  
    3333/*--------------------------------------------------------------------------*/
    3434
    35 
    3635// this :
    3736#include <HEPVis/actions/SoGL2PSAction.h>
     
    6059:SoGLRenderAction(aViewPortRegion)
    6160,G4OpenGL2PSAction()
     61,fFileName("out.ps")
     62,fFile(0)
    6263//////////////////////////////////////////////////////////////////////////////
    6364//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    6465{
    65   setFileName("out.ps");
    6666  SO_ACTION_CONSTRUCTOR(SoGL2PSAction);
    6767}
     
    7272//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    7373{
    74   // FIXME Useful ??
    75 
     74  // Useful ?? L.Garnier 02/2009
    7675#ifdef __COIN__
    7776#else //SGI
  • trunk/source/visualization/externals/gl2ps/History

    r919 r924  
     1$Id: History,v 1.106 2009/02/16 16:05:06 garnier Exp $
     2-------------------------------------------------------------------
     3
     4     =========================================================
     5     Geant4 - an Object-Oriented Toolkit for Simulation in HEP
     6     =========================================================
     7
     8                      Category History file
     9                      ---------------------
     10This file should be used by G4 developers and category coordinators
     11to briefly summarize all major modifications introduced in the code
     12and keep track of all category-tags.
     13It DOES NOT substitute the  CVS log-message one should put at every
     14committal in the CVS repository !
     15
     16     ----------------------------------------------------------
     17     * Reverse chronological order (last date on top), please *
     18     ----------------------------------------------------------
     19
     2016 February 2009, Laurent Garnier
     21 - Creation of this library in order to have a gl2ps for all viewers.
     22 - Copying gl2ps.cc and gl2ps.h files form OpenInventor/src
     23 - Add a new file G4OpenGL2PSAction.cc to be on the top of gl2ps
     24   external package. This file will be heritate/used by viewers
     25   in order to have gl2ps render.
Note: See TracChangeset for help on using the changeset viewer.