Ignore:
Timestamp:
May 14, 2009, 5:40:34 PM (17 years ago)
Author:
garnier
Message:

en test

Location:
trunk/source/visualization/OpenGL/include
Files:
3 edited

Legend:

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

    r1040 r1041  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.hh,v 1.16 2009/03/05 16:36:13 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.hh,v 1.17 2009/05/13 10:28:00 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh

    r1040 r1041  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.hh,v 1.30 2009/04/08 16:55:44 lgarnier Exp $
     27// $Id: G4OpenGLViewer.hh,v 1.31 2009/05/13 10:28:00 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    7373  void printEPS();
    7474  // print EPS file. Depending of fVectoredPs, it will print Vectored or not
    75  
     75  void setPrintSize(G4int,G4int);
     76  // set the new print size.
     77  // -1 means 'print size' = 'window size'
     78  // Setting size greater than max OpenGL viewport size will set the size to
     79  // maximum
     80  void setPrintFilename(G4String name,G4bool inc);
     81  // set print filename.
     82  // if inc, then the filename will be increment by one each time
     83  std::string getRealPrintFilename();
    7684  unsigned int getWinWidth();
    7785  unsigned int getWinHeight();
     
    8189  GLdouble getSceneFarWidth();
    8290  GLdouble getSceneDepth();
    83   std::string                       fPrintFilename;
    8491  G4bool                            fPrintColour;
    8592  G4bool                            fVectoredPs;
    86   G4int                             fPrintSizeX;
    87   G4int                             fPrintSizeY;
    8893
    8994  G4OpenGLSceneHandler& fOpenGLSceneHandler;
     
    106111
    107112private :
     113  G4int                             fPrintSizeX;
     114  G4int                             fPrintSizeY;
     115  G4String                          fPrintFilename;
     116  G4int                             fPrintFilenameIndex;
    108117  unsigned int fWinSize_x, fWinSize_y;
    109118  G4float                           fPointSize;
     
    111120  // size of the OpenGL frame
    112121  bool printGl2PS();
     122  G4int getRealPrintSizeX();
     123  G4int getRealPrintSizeY();
    113124  GLubyte* grabPixels (int inColor,
    114125                       unsigned int width,
  • trunk/source/visualization/OpenGL/include/G4OpenGLViewerMessenger.hh

    r956 r1041  
    5353  G4UIdirectory* fpDirectory;
    5454  G4UIcmdWithoutParameter* fpCommandPrintEPS;
     55  G4UIcommand* fpCommandPrintSize;
     56  G4UIcommand* fpCommandPrintFilename;
    5557  G4UIdirectory* fpDirectorySet;
    5658  G4UIcommand* fpCommandDisplayHeadTime;
Note: See TracChangeset for help on using the changeset viewer.