Ignore:
Timestamp:
May 12, 2009, 5:26:25 PM (15 years ago)
Author:
garnier
Message:

remise a jour

File:
1 edited

Legend:

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

    r1038 r1039  
    5959  virtual ~G4OpenGLViewer ();
    6060  void SetView    ();
    61   // Set view and lights, resize
    62   void RepaintGLView();
    63   // Refresh the view if needed
    6461  void HaloingFirstPass ();
    6562  void HaloingSecondPass ();
     
    6865  void HLRThirdPass ();
    6966  void InitializeGLView ();
    70   void ResizeGLView(unsigned int, unsigned int);
    71   // Resize the view and repaint if necessary
     67  void ResizeGLView();
     68  void ResizeWindow(unsigned int, unsigned int);
    7269  void Pick(GLdouble x, GLdouble y);
    7370  virtual void CreateFontLists () {}
     
    7572//////////////////////////////Vectored PostScript production functions///
    7673  void printEPS();
    77   // print EPS file. Depending of fVectoredPs, it will print Vectored or not 
    78 
     74  // print EPS file. Depending of fVectoredPs, it will print Vectored or not
     75 
    7976  unsigned int getWinWidth();
     77  G4bool sizeHasChanged();
     78  // return true if size has change since last redraw
    8079  unsigned int getWinHeight();
    8180  GLdouble getSceneNearWidth();
     
    8786  G4int                             fPrintSizeX;
    8887  G4int                             fPrintSizeY;
    89   G4bool                            fNeedRepaint;
    90   // 0 : No need to repaint    1: Need Repaint
    9188
    9289  G4OpenGLSceneHandler& fOpenGLSceneHandler;
     
    109106
    110107private :
     108  unsigned int fWinSize_x, fWinSize_y;
    111109  G4float                           fPointSize;
     110  G4bool fSizeHasChanged;
     111  // size of the OpenGL frame
    112112  bool printGl2PS();
    113   void ResizeGLView();
    114113  GLubyte* grabPixels (int inColor,
    115114                       unsigned int width,
     
    120119  bool printVectoredEPS();
    121120  // print vectored EPS files
    122   unsigned int fWinSize_x, fWinSize_y;
    123   // size of the OpenGL frame
    124121};
    125122
Note: See TracChangeset for help on using the changeset viewer.