Ignore:
Timestamp:
Feb 17, 2009, 12:24:27 PM (15 years ago)
Author:
garnier
Message:

OI marche, mais en debug

Location:
trunk/source/visualization/OpenInventor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenInventor/include/HEPVis/actions/SoGL2PSAction.h

    r921 r926  
    4444public: /*SoINTERNAL*/
    4545  static void initClass();
     46  void enableFileWriting();
    4647protected:
    4748  virtual void beginTraversal(SoNode*);
  • trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc

    r925 r926  
    7373  SO_ACTION_CONSTRUCTOR(SoGL2PSAction);
    7474}
     75
     76void SoGL2PSAction::enableFileWriting(
     77)
     78//////////////////////////////////////////////////////////////////////////////
     79//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
     80{
     81  fFile = ::fopen(fFileName,"w");
     82  if(!fFile) {
     83    SoDebugError::post("SoGL2PSAction::enableFileWriting",
     84                       "Cannot open file %s",fFileName);
     85    return;
     86  }
     87#ifdef __COIN__
     88#else //SGI
     89  const SbViewportRegion& vpr = getViewportRegion();
     90  SoViewportRegionElement::set(getState(),vpr);
     91  gl2psBegin();
     92#endif
     93}
     94
    7595//////////////////////////////////////////////////////////////////////////////
    7696void SoGL2PSAction::setViewport(
Note: See TracChangeset for help on using the changeset viewer.