Changeset 977


Ignore:
Timestamp:
Apr 10, 2009, 12:26:43 PM (15 years ago)
Author:
garnier
Message:

Ok en SXm, mais Pb sur le retore du contexte

Location:
trunk/source/visualization/OpenGL
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/include/G4OpenGLXViewer.hh

    r975 r977  
    5757  void SetView ();
    5858  void ShowView ();
     59  void printEPS();
    5960
    6061protected:
     
    6364  virtual void CreateMainWindow ();
    6465  virtual void CreateFontLists ();
    65   void printEPS();
    6666
    6767  static int snglBuf_RGBA[12];
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r975 r977  
    4949#include "G4AttHolder.hh"
    5050#include "G4AttCheck.hh"
     51
     52#include "G4OpenGLXViewer.hh"
    5153
    5254// GL2PS
     
    485487    res = printVectoredEPS();
    486488  } else {
    487     res = printNonVectoredEPS();
     489
     490    G4OpenGLXViewer* pOGLXViewer = dynamic_cast<G4OpenGLXViewer*>(this);
     491    if (pOGLXViewer) {
     492      pOGLXViewer->printEPS();
     493    } else {
     494      res = printNonVectoredEPS();
     495    }
    488496  }
    489497  if (res == false) {
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewerMessenger.cc

    r948 r977  
    261261      pOGLViewer->fPrintFilename = std::string(oss.str().c_str());
    262262      // Print eps file...
     263#ifdef G4DEBUG_VIS_OGL
     264      printf("G4OpenGLViewerMessenger::SetNewValue Call printEPS %s\n",std::string(oss.str().c_str()).c_str());
     265#endif
    263266      pOGLViewer->printEPS();
    264267      // Restore fPrintFilename for Xm...
  • trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc

    r975 r977  
    429429    printf("G4OpenGLXViewer::print non Vectored\n");
    430430#endif
     431    //    G4OpenGLViewer::printEPS();   
     432
     433
     434
     435
     436
     437
    431438//     G4StateManager* stateManager = G4StateManager::GetStateManager();
    432439//     G4ApplicationState oldState = stateManager->GetCurrentState();
     
    496503        file +=".eps";
    497504#else
    498         std::string file = "G4OpenGL_XPixmapTest.eps";
     505        std::string file = fPrintFilename.c_str();
    499506#endif
    500507
Note: See TracChangeset for help on using the changeset viewer.