Changeset 1039 for trunk/source/visualization/OpenGL/include
- Timestamp:
- May 12, 2009, 5:26:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh
r1038 r1039 59 59 virtual ~G4OpenGLViewer (); 60 60 void SetView (); 61 // Set view and lights, resize62 void RepaintGLView();63 // Refresh the view if needed64 61 void HaloingFirstPass (); 65 62 void HaloingSecondPass (); … … 68 65 void HLRThirdPass (); 69 66 void InitializeGLView (); 70 void ResizeGLView( unsigned int, unsigned int);71 // Resize the view and repaint if necessary67 void ResizeGLView(); 68 void ResizeWindow(unsigned int, unsigned int); 72 69 void Pick(GLdouble x, GLdouble y); 73 70 virtual void CreateFontLists () {} … … 75 72 //////////////////////////////Vectored PostScript production functions/// 76 73 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 79 76 unsigned int getWinWidth(); 77 G4bool sizeHasChanged(); 78 // return true if size has change since last redraw 80 79 unsigned int getWinHeight(); 81 80 GLdouble getSceneNearWidth(); … … 87 86 G4int fPrintSizeX; 88 87 G4int fPrintSizeY; 89 G4bool fNeedRepaint;90 // 0 : No need to repaint 1: Need Repaint91 88 92 89 G4OpenGLSceneHandler& fOpenGLSceneHandler; … … 109 106 110 107 private : 108 unsigned int fWinSize_x, fWinSize_y; 111 109 G4float fPointSize; 110 G4bool fSizeHasChanged; 111 // size of the OpenGL frame 112 112 bool printGl2PS(); 113 void ResizeGLView();114 113 GLubyte* grabPixels (int inColor, 115 114 unsigned int width, … … 120 119 bool printVectoredEPS(); 121 120 // print vectored EPS files 122 unsigned int fWinSize_x, fWinSize_y;123 // size of the OpenGL frame124 121 }; 125 122
Note: See TracChangeset
for help on using the changeset viewer.