Ignore:
Timestamp:
Feb 17, 2009, 10:42:37 AM (15 years ago)
Author:
garnier
Message:

marche, mais en cours de debug sur OI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc

    r924 r925  
    3333/*--------------------------------------------------------------------------*/
    3434
     35#define G4DEBUG_VIS_OGL 1
     36
    3537// this :
    3638#include <HEPVis/actions/SoGL2PSAction.h>
     
    5153//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    5254{
     55#ifdef G4DEBUG_VIS_OGL
     56  printf("SoGL2PSAction::initClass\n");
     57#endif
    5358  SO_ACTION_INIT_CLASS(SoGL2PSAction,SoGLRenderAction);
    5459}
     
    5964:SoGLRenderAction(aViewPortRegion)
    6065,G4OpenGL2PSAction()
    61 ,fFileName("out.ps")
    62 ,fFile(0)
    6366//////////////////////////////////////////////////////////////////////////////
    6467//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    6568{
     69#ifdef G4DEBUG_VIS_OGL
     70  printf("SoGL2PSAction::SoGL2PSAction\n");
     71#endif
     72  setFileName("out.ps");
    6673  SO_ACTION_CONSTRUCTOR(SoGL2PSAction);
    6774}
     
    7279//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    7380{
    74   // Useful ?? L.Garnier 02/2009
     81#ifdef G4DEBUG_VIS_OGL
     82  printf("SoGL2PSAction::setViewport\n");
     83#endif
     84  // Useful ? L.Garnier 02/2009
     85
    7586#ifdef __COIN__
    7687#else //SGI
     
    92103//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    93104{
     105#ifdef G4DEBUG_VIS_OGL
     106  printf("SoGL2PSAction::beginTraversal\n");
     107#endif
    94108  if(fFile) {
    95109#ifdef __COIN__
    96110    const SbViewportRegion& vpr = getViewportRegion();
    97111    SoViewportRegionElement::set(getState(),vpr);
     112#ifdef G4DEBUG_VIS_OGL
     113  printf("SoGL2PSAction::beginTraversal 1\n");
     114#endif
    98115    G4gl2psBegin();
     116#ifdef G4DEBUG_VIS_OGL
     117  printf("SoGL2PSAction::beginTraversal 2\n");
     118#endif
    99119    traverse(aNode);
     120#ifdef G4DEBUG_VIS_OGL
     121  printf("SoGL2PSAction::beginTraversal 3\n");
     122#endif
    100123    gl2psEndPage();       
     124#ifdef G4DEBUG_VIS_OGL
     125  printf("SoGL2PSAction::beginTraversal 4\n");
     126#endif
    101127#else //SGI
    102128    SoGLRenderAction::beginTraversal(aNode);
     
    105131    SoGLRenderAction::beginTraversal(aNode);
    106132  }
     133#ifdef G4DEBUG_VIS_OGL
     134  printf("SoGL2PSAction::beginTraversal 5\n");
     135#endif
    107136}
    108137
Note: See TracChangeset for help on using the changeset viewer.