[1350] | 1 | $Id: History,v 1.195 2010/12/27 12:57:43 allison Exp $ |
---|
| 2 | ------------------------------------------------------------------- |
---|
| 3 | |
---|
| 4 | ========================================================= |
---|
| 5 | Geant4 - an Object-Oriented Toolkit for Simulation in HEP |
---|
| 6 | ========================================================= |
---|
| 7 | |
---|
| 8 | Category History file for visualization/OpenGL |
---|
| 9 | ---------------------------------------------- |
---|
| 10 | This file should be used by G4 developers and category coordinators |
---|
| 11 | to briefly summarize all major modifications introduced in the code |
---|
| 12 | and keep track of all category-tags. |
---|
| 13 | It DOES NOT substitute the CVS log-message one should put at every |
---|
| 14 | committal in the CVS repository ! |
---|
| 15 | |
---|
| 16 | ---------------------------------------------------------- |
---|
| 17 | * Reverse chronological order (last date on top), please * |
---|
| 18 | ---------------------------------------------------------- |
---|
| 19 | |
---|
| 20 | 27th December 2010 John Allison (opengl-V09-04-00) |
---|
| 21 | - Tagged. |
---|
| 22 | |
---|
| 23 | 11th December 2010 John Allison |
---|
| 24 | - Fixed some Coverity warnings. |
---|
| 25 | |
---|
| 26 | 13th November 2010 John Allison (opengl-V09-03-10) |
---|
| 27 | - Tagged. |
---|
| 28 | |
---|
| 29 | 10th November 2010 John Allison |
---|
| 30 | - G4OpenGLStoredSceneHandler.cc: Added commented out debug lines. |
---|
| 31 | - G4OpenGLStoredSceneHandler.hh: Corrected misleading comment lines. |
---|
| 32 | - G4OpenGLXViewer.cc: Protected output with G4VisManager::GetVerbosity. |
---|
| 33 | |
---|
| 34 | 8th November 2010 John Allison (opengl-V09-03-09) |
---|
| 35 | - G4OpenGLStoredSceneHandler: |
---|
| 36 | o Removed fDisplayListBase (not needed; display list ids ARE re-used). |
---|
| 37 | o Improved display list limit message. |
---|
| 38 | |
---|
| 39 | 7th November 2010 John Allison |
---|
| 40 | - G4OpenGLViewerMessenger.cc: Improved messages. |
---|
| 41 | |
---|
| 42 | 6th November 2010 John Allison |
---|
| 43 | - G4OpenGLViewerMessenger.cc: displayListLimit>=10000. |
---|
| 44 | - G4OpenGLStoredSceneHandler: |
---|
| 45 | o Made all display list management variables static. |
---|
| 46 | o Bug fix: reset fMemoryForDisplayLists flag. |
---|
| 47 | |
---|
| 48 | 5th November 2010 John Allison |
---|
| 49 | - G4OpenGLStoredSceneHandler, G4OpenGLViewerMessenger: |
---|
| 50 | o Introduced a display list limit to avoid memory exhaustion. |
---|
| 51 | o Introduced /vis/ogl/set/displayListLimit. |
---|
| 52 | |
---|
| 53 | 8th October 2010 Laurent Garnier |
---|
| 54 | - G4OpenGQtViewer.cc: |
---|
| 55 | o Add menu for changing text color, default color, background color |
---|
| 56 | o Toogle projection now call directly command instead of redefinding it |
---|
| 57 | |
---|
| 58 | 6th October 2010 John Allison (opengl-V09-03-08 with co-working tags...) |
---|
| 59 | - Co-working tags: interfaces-V09-03-12 + config-V09-03-08 |
---|
| 60 | - G4OpenGLStoredViewer.cc: |
---|
| 61 | o Added default colour and default text colour to list of parameters |
---|
| 62 | that trigger a kernel visit. |
---|
| 63 | |
---|
| 64 | 5th October 2010 John Allison |
---|
| 65 | - G4OpenGLStoredViewer.cc: Time-slices fade to background colour. |
---|
| 66 | |
---|
| 67 | 5th October 2010 Laurent Garnier |
---|
| 68 | - Change lots of shortcuts in Qt |
---|
| 69 | - Add 'google earth like' rotation |
---|
| 70 | |
---|
| 71 | 23th June 2010 Laurent Garnier |
---|
| 72 | - G4OpenGLImmediate/StoredQtViewer : Fix compilation warnings |
---|
| 73 | - G4OpenGLQtViewer : Add protection on Vis Tab without UI Qt |
---|
| 74 | |
---|
| 75 | 4th June 2010 Laurent Garnier (opengl-V09-03-07) |
---|
| 76 | - G4OpenGLImmediate/StoredQtViewer : Add protection against multiple |
---|
| 77 | repaint call. Add protection against resizeGl with bad values |
---|
| 78 | |
---|
| 79 | 3rd June 2010 John Allison (opengl-V09-03-06) |
---|
| 80 | - G4OpenGLImmediateSceneHandler: Re-instate |
---|
| 81 | // Make sure screen corresponds to graphical database... |
---|
| 82 | if (fpViewer) { |
---|
| 83 | fpViewer -> SetView (); |
---|
| 84 | fpViewer -> ClearView (); |
---|
| 85 | fpViewer -> DrawView (); |
---|
| 86 | } |
---|
| 87 | I was wrong - it *is* necessary. If not there, events are not refreshed. |
---|
| 88 | So this and similar changes below are all back to geant4-09-03, including |
---|
| 89 | glFlush, which is still a big performance penalty on Mac's Snow Leopard. |
---|
| 90 | |
---|
| 91 | 3rd June 2010 John Allison (opengl-V09-03-05) |
---|
| 92 | - Restored following files to geant4-09-03 in interests of stable behaviour: |
---|
| 93 | o G4OpenGLStoredSceneHandler.cc |
---|
| 94 | Restored code removed in opengl-V09-03-03: |
---|
| 95 | // Make sure screen corresponds to graphical database... |
---|
| 96 | if (fpViewer) { |
---|
| 97 | fpViewer -> SetView (); |
---|
| 98 | fpViewer -> ClearView (); |
---|
| 99 | fpViewer -> DrawView (); |
---|
| 100 | } |
---|
| 101 | o G4OpenGLStoredXViewer.cc: |
---|
| 102 | Restore to geant4-09-03. Restored code removed in opengl-V09-03-03: |
---|
| 103 | } else { // ADD TO AVOID KernelVisit=1 and nothing to display |
---|
| 104 | DrawDisplayLists (); |
---|
| 105 | FinishView (); |
---|
| 106 | - Note: G4OpenGLImmediateSceneHandler: Same code commented out. I think |
---|
| 107 | it's not necessary for immediate mode. |
---|
| 108 | |
---|
| 109 | 30th May 2010 John Allison (opengl-V09-03-04) |
---|
| 110 | - G4OpenGLSceneHandler: Added AddCompound(const G4VDigi&). |
---|
| 111 | |
---|
| 112 | 29th May 2010 John Allison (opengl-V09-03-03) |
---|
| 113 | - G4OpenGLImmediateSceneHandler.cc, G4OpenGLStoredSceneHandler.cc: |
---|
| 114 | Removed the following from ClearTransientStrore (was causing |
---|
| 115 | unnecessary drawing and flipping buffers?): |
---|
| 116 | // Make sure screen corresponds to graphical database... |
---|
| 117 | if (fpViewer) { |
---|
| 118 | fpViewer -> SetView (); |
---|
| 119 | fpViewer -> ClearView (); |
---|
| 120 | fpViewer -> DrawView (); |
---|
| 121 | } |
---|
| 122 | - G4OpenGLStoredXViewer.cc: |
---|
| 123 | Commented out as follows in DrawView (was causing extra buffer swap, |
---|
| 124 | thus showing bad picture; can't recall why it was introduced): |
---|
| 125 | } else { // ADD TO AVOID KernelVisit=1 and nothing to display |
---|
| 126 | //DrawDisplayLists (); ????????? (JA) |
---|
| 127 | //FinishView (); ????????? (JA) |
---|
| 128 | |
---|
| 129 | 26th May 2010 Laurent Garnier (opengl-V09-03-02) |
---|
| 130 | - G4OpenGLQtViewer : Some improvments with auto rotation mode. |
---|
| 131 | |
---|
| 132 | 20th May 2010 Laurent Garnier (opengl-V09-03-01) |
---|
| 133 | Co-working tag : intercoms-V09-03-01, interfaces-V09-03-02 |
---|
| 134 | - GNUMakefile, G4OpenGLQtViewer : Better inclusion of new tabs in UI part |
---|
| 135 | |
---|
| 136 | 11th May 2010 John Allison (opengl-V09-03-00) |
---|
| 137 | - G4OpenGLSceneHandler: |
---|
| 138 | o Use generic section and cutaway algorithm. |
---|
| 139 | o Follow change in generic section and cutaway interface. |
---|
| 140 | - G4OpenGLViewer.cc: |
---|
| 141 | o Use generic section and cutaway algorithm. |
---|
| 142 | o Fix compiler warning (*p++). |
---|
| 143 | o Replace strdup by local inline code. |
---|
| 144 | |
---|
| 145 | 29th April 2010 Laurent Garnier |
---|
| 146 | - G4OpenGLSceneHandler : Speed Improvment by drawing vector of |
---|
| 147 | markers instead one by one |
---|
| 148 | |
---|
| 149 | 27th April 2010 Laurent Garnier |
---|
| 150 | - G4OpenGLStoredXmViewer : remove viewer form list at destruction |
---|
| 151 | - G4OpenGLViewer : Fix a problem when printing in gl2ps |
---|
| 152 | |
---|
| 153 | 9th March 2010 Laurent Garnier |
---|
| 154 | - G4OpenGLViewer : Fix clipping when resizing non square size windows |
---|
| 155 | Remove error message when no scene present. |
---|
| 156 | - G4OpenGLImmediateQtViewer, G4OpenGLStoredQtViewer : |
---|
| 157 | - Add some protections if viewer is in tab |
---|
| 158 | - fix some redraw probems when focus was outside frame |
---|
| 159 | - Add ShowView() and paintEvent() methods |
---|
| 160 | - DrawView method is now the same in Store and Immediate mode |
---|
| 161 | - G4OpenGLQtViewer : Add things for viewer in tabs |
---|
| 162 | |
---|
| 163 | 3rd March 2010 Laurent Garnier |
---|
| 164 | - G4OpenGLViewer : Add protection against null pointer scene |
---|
| 165 | |
---|
| 166 | 27th January 2010 Gabriele Cosmo |
---|
| 167 | - Fixed compilation warnings on G4OpenGLQtViewer and corrected compilation |
---|
| 168 | error when using Qt-3. |
---|
| 169 | |
---|
| 170 | 6th January 2010 Laurent Garnier (needs interfaces-V09-02-07 + laurent-QtUI_with_tabs_v1) |
---|
| 171 | - GNUMakefile : Add include for interfaces/basic |
---|
| 172 | - G4OpenGLQtWiewer : Integration into QtUI Tab |
---|
| 173 | |
---|
| 174 | 17th November 2009 John Allison (opengl-V09-02-10) |
---|
| 175 | - Tagged for vis tag. |
---|
| 176 | |
---|
| 177 | 17th November 2009 Gabriele Cosmo |
---|
| 178 | - Fixed problem in the generation of dependencies on Windows for some |
---|
| 179 | files, due to redefinition of min and max macros from windows.h in |
---|
| 180 | G4OpenGL.hh. |
---|
| 181 | - Fixed GNUmakefile. |
---|
| 182 | |
---|
| 183 | 3rd November 2009 John Allison (opengl-V09-02-09 coworks greps-V09-02-03) |
---|
| 184 | - Tagged for system testing. |
---|
| 185 | |
---|
| 186 | 3rd November 2009 Laurent Garnier |
---|
| 187 | - G4OpenGLImmediateQtViewer, G4OpenGLStoredQtViewer : Protec Qt4 method |
---|
| 188 | introduce 13rd october 09 by ifdef |
---|
| 189 | |
---|
| 190 | 3rd November 2009 John Allison |
---|
| 191 | - G4OpenGLXmPanningCallbacks: Fixed pView compilation problem. |
---|
| 192 | |
---|
| 193 | 21 October 2009 Laurent Garnier |
---|
| 194 | - G4OpenGLQtViewer : Prepare to attach viewer In UI |
---|
| 195 | |
---|
| 196 | 21st October 2009 John Allison (opengl-V09-02-08 coworks greps-V09-02-02) |
---|
| 197 | - Added default AddCompound (const G4THitsMap<G4double>&) methods. |
---|
| 198 | o Prevents warnings about hiding - calls G4VSceneHandler base class. |
---|
| 199 | |
---|
| 200 | 15 October 2009 Laurent Garnier |
---|
| 201 | - G4OpenGLViewer.cc : Fix a problem with printing. On mac OSX version |
---|
| 202 | > 10.5.7? or Ubuntu > 9.04? AND with user account configure in french |
---|
| 203 | (or canadian I believe), the decimal point character was defined by |
---|
| 204 | "," (see LC_NUMERIC). This cause a problem on reading eps files. |
---|
| 205 | Changed "," to "." |
---|
| 206 | |
---|
| 207 | 13 October 2009 Laurent Garnier |
---|
| 208 | - G4OpenGLImmediateQtViewer/StoredQtViewer : some cleaning |
---|
| 209 | - G4OpenGLImmediateQtViewer : Remove picking to true at initialisation |
---|
| 210 | - G4OpenGLQtViewer.cc : Fix a redraw problem on mac OS X 10.6 |
---|
| 211 | - G4OpenGLStoreQtViewer.cc,G4OpenGLImmediateQtViewer.cc : Fix width() |
---|
| 212 | and height() problem on mac OS X 10.6 |
---|
| 213 | |
---|
| 214 | 29 September 2009 John Allison (opengl-V09-02-07) |
---|
| 215 | - Tagged. |
---|
| 216 | |
---|
| 217 | 18 August 2009 Laurent Garnier |
---|
| 218 | - G4OpenGLXmViewer : Fix a wrong initialization introduce by the |
---|
| 219 | new way of handling window size hints (January 2009) |
---|
| 220 | |
---|
| 221 | 29 July 2009, Laurent Garnier |
---|
| 222 | - G4OpenGLQtViewer : Ensure the GL frame size will be correct |
---|
| 223 | by setting a 0 size margin around |
---|
| 224 | |
---|
| 225 | 27 July 2009, Laurent Garnier |
---|
| 226 | - G4OpenGLStoredQtViewer : Remove picking to true at initialisation |
---|
| 227 | |
---|
| 228 | 20 May 2009, Laurent Garnier (opengl-V09-02-06) |
---|
| 229 | - Fixed compilation errors on WIN32-VC for WIN32 specific drivers. |
---|
| 230 | |
---|
| 231 | 18 May 2009, Joseph Perl (opengl-V09-02-05) |
---|
| 232 | - Correct G4OpenGLViewerMessenger.hh |
---|
| 233 | |
---|
| 234 | 14 May 2009, Laurent Garnier (opengl-V09-02-04) |
---|
| 235 | - G4OpenGLViewer : Add methods to manage print size and filename |
---|
| 236 | - G4OpenGLViewerMessenger : Added /vis/ogl/set/printSize |
---|
| 237 | - G4OpenGLViewerMessenger : Added /vis/ogl/set/printFilename |
---|
| 238 | - G4OpenGLQtViewer.cc,G4OpenGLXmMainMenuBarCallback.cc, renaming |
---|
| 239 | according to first point. |
---|
| 240 | |
---|
| 241 | 13 May 2009, Laurent Garnier |
---|
| 242 | - G4OpenGLStoredQtViewer.cc: Fix a second view redraw at ShowView() call |
---|
| 243 | - G4OpenGLQtViewer : Remove unuseful variables, renaming others |
---|
| 244 | - G4OpenGLViewer : Add method for resizing properly windows. Add methods |
---|
| 245 | to get window width, height and to know if size has changed |
---|
| 246 | - G4OpenGLQtViewer, G4OpenGLStoredQtViewer, G4OpenGLImmediateQtViewer, |
---|
| 247 | G4OpenGLXmViewer, G4XmWindowsHandlingCallback, G4OpenGLXViewer : |
---|
| 248 | Apply the previous changes. |
---|
| 249 | |
---|
| 250 | 6 May 2009, Laurent Garnier |
---|
| 251 | - G4OpenGLQtViewer.cc: Fix compilation warning and error with gcc4.4 |
---|
| 252 | |
---|
| 253 | 28th April 2009, John Allison |
---|
| 254 | - G4OpenGLViewerMessenger.cc: Added return statement at end of every |
---|
| 255 | "if (command == ..." statement. (Because of test for OGLS, it is |
---|
| 256 | not elegant to use "if...else if...else" structure.) |
---|
| 257 | |
---|
| 258 | 28th April 2009, Laurent Garnier |
---|
| 259 | - G4OpenGLXViewer,G4OpenGLViewer : End of moving printEPS and associated |
---|
| 260 | functions from GLXViewer to GLViewer. |
---|
| 261 | - G4OpenGLXViewer : |
---|
| 262 | - Remove debug methods |
---|
| 263 | - Add check in SetView() method |
---|
| 264 | - G4OpenGLViewer : Add a glReadBuffer before glReadPixel in grabPixel method |
---|
| 265 | |
---|
| 266 | 8th April 2009, Laurent Garnier |
---|
| 267 | - G4OpenGLBitmapStore.hh : BugFix correction for windows (introduce 2nd February ?) |
---|
| 268 | - G4OpenGLViewer.hh : move methods in private |
---|
| 269 | - G4OpenGLXViewer.hh : Add debug methods |
---|
| 270 | - G4OpenGLImmediateXmViewer.cc, G4OpenGLStoredViewer.cc, G4OpenGLStoredXmViewer.cc, |
---|
| 271 | G4OpenGLStoredXViewer.cc, G4OpenGLViewer.cc : Add debug messages |
---|
| 272 | - G4OpenGLStoredXmViewer.cc,G4OpenGLStoredXViewer.cc, G4OpenGLStoredWin32Viewer.cc : |
---|
| 273 | - Add a DrawDisplay list in case of KernelVisit=1 and nothing new to display. |
---|
| 274 | - Add a flush at the end of the view. |
---|
| 275 | - G4OpenGLViewer.cc : |
---|
| 276 | - Improve the fix and resizing when X/Y size was even (lack of precision |
---|
| 277 | in a /2) |
---|
| 278 | - Set line/point size at a default size when printing. |
---|
| 279 | - G4OpenGLXmWindowsHandlingCallbacks.cc : print method rename in printEPS |
---|
| 280 | - G4OpenGLXViewer.cc : Lot of changes, try to debug it. Pb when printing in pixmap |
---|
| 281 | mode on some windows size |
---|
| 282 | |
---|
| 283 | 6th April 2009, Joseph Perl (opengl-V09-02-02, then opengl-V09-02-03) |
---|
| 284 | - New tag to clean up all of the cases of files that changed only in the cvs id. |
---|
| 285 | |
---|
| 286 | 24th March 2009, Laurent Garnier (opengl-V09-02-01) |
---|
| 287 | - G4OpenGLViewer : Add a fix and resizing when X/Y size was even (lack of precision |
---|
| 288 | in a /2) |
---|
| 289 | |
---|
| 290 | 18th March 2009 John Allison |
---|
| 291 | - G4OpenGLViewerMessenger.cc: printMode and transparency are available |
---|
| 292 | for all OGL windows (they were previously inadvertently hidden by |
---|
| 293 | an OGLS requirement). |
---|
| 294 | |
---|
| 295 | 16th March 2009, Laurent Garnier |
---|
| 296 | - G4OpenGLViewer : Add a check on max viewport dimensions when setting size. |
---|
| 297 | |
---|
| 298 | 4rd March 2009, Laurent Garnier |
---|
| 299 | - G4OpenGLQtViewer: |
---|
| 300 | - Suppress some warnings when saving file |
---|
| 301 | - Changing size is now allowed when saving (to save with better resolution than screen size) |
---|
| 302 | - G4OpenGLViewer: |
---|
| 303 | - Some renaming for print methods to be more clear about Vectored and non Vectored |
---|
| 304 | - Now using Gl2PS method to do PS (changes also in G4OpenGLXViewer and G4OpenGLQtViewer) |
---|
| 305 | - Suppress unuseful printX methods (heritated form XViewer) |
---|
| 306 | - Add methods to handle printVectored and NonVector cases |
---|
| 307 | - G4OpenGLViewerMessanger : Changes methods to get new G4OpenGLViewer methods to print |
---|
| 308 | |
---|
| 309 | 1st March 2009, Laurent Garnier |
---|
| 310 | - Remplacing glBitmap by GL_POINTS to draw marker : Speed improvment |
---|
| 311 | and gl2ps can now draw Markers. |
---|
| 312 | |
---|
| 313 | 16 February 2009, Laurent Garnier |
---|
| 314 | - Modifications in GNUMakefile for gl2ps. |
---|
| 315 | - G4OpenGLViewer,G4OpenGLViewerMessenger.cc,G4OpenGLXmMainMenubarCallbacks.cc |
---|
| 316 | ,G4OpenGLXmViewer.cc modified for gl2ps and some renaming "print" in |
---|
| 317 | "printVectoredEPS" |
---|
| 318 | |
---|
| 319 | 2nd February 2009 Laurent Garnier |
---|
| 320 | - Improve Anticipate headers declaration in all files |
---|
| 321 | - Factorize grabPixels function in G4OpenGLViewer |
---|
| 322 | - Begin of refactoring printEPS function |
---|
| 323 | |
---|
| 324 | 22th January 2009 Laurent Garnier |
---|
| 325 | - Fix bug in ratio and geometry on X/Xm/Qt/Win32 viewers |
---|
| 326 | |
---|
| 327 | 19th January 2009 Laurent Garnier |
---|
| 328 | - Change G4DEBUG definition by G4DEBUG_VIS_OGL |
---|
| 329 | |
---|
| 330 | 12th January 2009 John Allison |
---|
| 331 | - G4OpenGLViewer.cc: Pick up X and Y window size hints to define viewport. |
---|
| 332 | |
---|
| 333 | 2 December, Laurent Garnier |
---|
| 334 | - G4OpenGLImmediateXmViewer,G4OpenGLStoredXmViewer,G4OpenGLXmViewer |
---|
| 335 | G4OpenGLImmediateXViewer, G4OpenGLStoredXViewer, G4OpenGLXViewer, |
---|
| 336 | G4OpenGLXmWindowHandlingCallbacks, |
---|
| 337 | G4OpenGLImmediateQtViewer.cc, G4OpenGLStoredQtViewer, G4OpenGLQtViewer |
---|
| 338 | G4OpenGLImmediateWin32Viewer.cc, G4OpenGLStoredWin32Viewer, G4OpenGLWin32Viewer |
---|
| 339 | -> Replace WinSize by fWinSize and some improvments about size initialization |
---|
| 340 | |
---|
| 341 | - G4OpenGLQtViewer.hh : Suppress WinSize private variable |
---|
| 342 | - Now Could pass XString like 400x600-0+0 to viewers and set position and location. It |
---|
| 343 | will work for Qt, X, Win32 for the moment. |
---|
| 344 | |
---|
| 345 | 24 October, Laurent Garnier (opengl-V09-01-03) |
---|
| 346 | - Change GEANT4_QT_DEBUG flag by QTDEBUG |
---|
| 347 | - Suppress unuseful DEBUG messages |
---|
| 348 | |
---|
| 349 | 12th October Laurent Garnier |
---|
| 350 | - G4OpenGLQtExportDialog : improvments for Qt3" |
---|
| 351 | - G4OpenGLQtViewer,G4OpenGLImmediateQtViewer,G4OpenGLStoreQtViewer : Add the name on OpenGlQt viewers |
---|
| 352 | - G4OpenGLStoredQtViewer,G4OpenGLImmediateQt, G4OpenGLStoredQt : Change OGLSQT and OGLIQT by OGLSQt and OGLIQt |
---|
| 353 | |
---|
| 354 | 2 October Laurent Garnier |
---|
| 355 | - Fix a crash when there was no scene. |
---|
| 356 | |
---|
| 357 | 28 July Laurent Garnier |
---|
| 358 | - Fix a bug in XmRotation panel introduce in last commit by myself. |
---|
| 359 | |
---|
| 360 | 20th June 2008 Laurent Garnier |
---|
| 361 | - Correct some warnings |
---|
| 362 | - Move rotation code of Xm and Qt in G4OpenGLViewer::rotateScene. Same code in now shared |
---|
| 363 | |
---|
| 364 | 12th June 2008 Laurent Garnier |
---|
| 365 | - Emit signals when moving/rotate scene, in order to get them in external app |
---|
| 366 | |
---|
| 367 | 28th Mai 2008 Laurent Garnier |
---|
| 368 | - Add mouse wheel zoom commands |
---|
| 369 | |
---|
| 370 | 28th April 2008 Laurent Garnier |
---|
| 371 | - Add better moc control/compilation step in GNUmakefile |
---|
| 372 | - Fix a problem when launching QT VIS without QT UI (N02 for example) |
---|
| 373 | |
---|
| 374 | 28th April 2008 John Allison (opengl-V09-01-02) |
---|
| 375 | - G4OpenGLStoredSceneHandler: Tidied constructors of nested classes. |
---|
| 376 | |
---|
| 377 | 4th April 2008 John Allison (opengl-V09-01-01) |
---|
| 378 | - Fixed DBL_MAX problem in 2D drawing: |
---|
| 379 | o changed G4OPENGL_DBL_MAX to G4OPENGL_FLT_BIG. |
---|
| 380 | - Fix gcc-4.3.0 compiler warnings. |
---|
| 381 | |
---|
| 382 | 11th March 2008, Laurent Garnier |
---|
| 383 | - Resolve QT3 compilation errors |
---|
| 384 | |
---|
| 385 | 10th March 2008, Laurent Garnier |
---|
| 386 | - Add a dialog panel to make movies (Right button->Actions->Movie parameters) |
---|
| 387 | - Add ability to "auto rotate" volume launched with quick mouse move |
---|
| 388 | - Lots of improvments for Qt3 |
---|
| 389 | - Improvments on moving steps with shortcuts |
---|
| 390 | - Could now select between orthogonal/perspective view mode |
---|
| 391 | |
---|
| 392 | 1st February 2008 John Allison |
---|
| 393 | - G4OpenGLQtViewer.cc: Fix #ifdef QT protection. |
---|
| 394 | - G4OpenGLSceneHandler.cc: Small improvement to logic of setting GL_LIGHTING. |
---|
| 395 | |
---|
| 396 | 30th January 2008, Laurent Garnier |
---|
| 397 | - Add moving camera on left/right/up/down arrown, going forward/backward |
---|
| 398 | on SHIFT+up/down, zoom in with +/- keys |
---|
| 399 | - Add a context menu entry for projection perspective/orthographic |
---|
| 400 | - Fix some bugs on windows in export dialog |
---|
| 401 | |
---|
| 402 | 15th January 2008, Laurent Garnier |
---|
| 403 | - Fixed some layout problems on export dialog box |
---|
| 404 | - Some improvements on exports formats |
---|
| 405 | - Fix a bug in the help command : The clic callback on a item was not |
---|
| 406 | working on windows |
---|
| 407 | - Fix a crash at exit when launched on a MAC. |
---|
| 408 | - EPS export format is now ready for Qt3 |
---|
| 409 | - Add Vectoriel EPS export format |
---|
| 410 | - Fix an aspect ratio deformation when resize the widget |
---|
| 411 | - Fix a crash at launch with leopard |
---|
| 412 | - When selecting the "move" mouse action, this action was set even when |
---|
| 413 | mouse button was released. Fixed : Now we should clic to have the move action |
---|
| 414 | - GNUmakefile : Added a macro for moc file |
---|
| 415 | - Moc files : Suppression of all theses files. They are now autogenerated |
---|
| 416 | thanks to config/common.gmk |
---|
| 417 | |
---|
| 418 | 4th January 2008 John Allison (opengl-V09-01-00) |
---|
| 419 | - Implemented extended 2D interface. |
---|
| 420 | |
---|
| 421 | 30th November 2007 Laurent Garnier |
---|
| 422 | - Improvements for Qt3 |
---|
| 423 | - moc files : Adding other versions for QT_MOC_REVISION 28,58 and |
---|
| 424 | 59, but this is not the right solution.. |
---|
| 425 | |
---|
| 426 | 19th November 2007 Joseph Perl (for Laurent Garnier) (opengl-V09-00-04) |
---|
| 427 | - Added GEANT4_QT_DEBUG flag to more places |
---|
| 428 | |
---|
| 429 | 15th November 2007 John Allison (opengl-V09-00-03) |
---|
| 430 | - Re-introduced Qt files, now properly protected by cpp flags. |
---|
| 431 | - cpp flags also added to some other files not previously properly protected. |
---|
| 432 | |
---|
| 433 | 15 Nov 2007, Laurent Garnier |
---|
| 434 | - G4UIQt,G4Qt : Adding a GEANT4_QT_DEBUG flag to hide all debug messages |
---|
| 435 | - G4UIQt,G4Qt : Compilation improvements for Qt3 |
---|
| 436 | - G4UIQt,G4Qt : Minors corrections on G4UIQt helpWidget |
---|
| 437 | |
---|
| 438 | 14 Nov 2007, Laurent Garnier |
---|
| 439 | - G4OpenGLStoredQtViewer.cc : Correction of a bug with mouse move event in |
---|
| 440 | Qt4 |
---|
| 441 | - G4OpenGLQtExportDialog_moc.cc, G4OpenGLQtViewer.cc, G4OpenGLQtViewer_moc.cc : |
---|
| 442 | Adding protection for Qt version between 4.0 and 4.2 |
---|
| 443 | |
---|
| 444 | 13th November 2007 John Allison (opengl-V09-00-02) |
---|
| 445 | - Removed Qt files from tag. File are still at head - need fixing. |
---|
| 446 | |
---|
| 447 | 13 Nov 2007, Laurent Garnier |
---|
| 448 | - G4UIQt,G4Qt : Moving all moc in one big file interface/G4UIQT_moc.cc, |
---|
| 449 | including Qt3 and Qt4 moc support |
---|
| 450 | |
---|
| 451 | 10th November 2007 John Allison (opengl-V09-00-01) |
---|
| 452 | - Moved WinSize_x, y to base class G4OpenGLViewer. |
---|
| 453 | - Minor improvement in guidance for /vis/ogl/printEPS. |
---|
| 454 | |
---|
| 455 | 09 Nov 2007, Laurent Garnier |
---|
| 456 | - G4UIQt,G4Qt : Change all include directive to be compatible with Qt3 |
---|
| 457 | |
---|
| 458 | 08 Nov 2007, Laurent Garnier |
---|
| 459 | - moc_G4OpenGLQtExportDialog.cc move in G4OpenGLQtExportDialog_moc.cc |
---|
| 460 | - moc_G4OpenGLQtViewer.cc move to G4OpenGLQtViewer_moc.cc |
---|
| 461 | |
---|
| 462 | 27 Sept 2007, Laurent Garnier |
---|
| 463 | - Adding sur files for G4UIQt driver : |
---|
| 464 | - G4OpenGLImmediateQt.cc |
---|
| 465 | - G4OpenGLImmediateQtViewer.cc |
---|
| 466 | - G4OpenGLQtExportDialog.cc |
---|
| 467 | - G4OpenGLQtViewer.cc |
---|
| 468 | - G4OpenGLStoredQt.cc |
---|
| 469 | - G4OpenGLStoredQtViewer.cc |
---|
| 470 | - moc_G4OpenGLQtExportDialog.cc |
---|
| 471 | - moc_G4OpenGLQtViewer.cc |
---|
| 472 | |
---|
| 473 | 28th September 2007 lgarnier |
---|
| 474 | - first import of G4UI Qt files : Do not try to compil them |
---|
| 475 | |
---|
| 476 | 21st August 2007 John Allison (opengl-V09-00-00) |
---|
| 477 | - Removed redundant G4OpenGLXViewerMessenger. |
---|
| 478 | |
---|
| 479 | 25th May 2007 John Allison (opengl-V08-03-03) |
---|
| 480 | - G4OpenGLSceneHandler and G4OpenGLXViewerMessenger: |
---|
| 481 | Fixed gcc-4.1.2 compiler warnings. |
---|
| 482 | |
---|
| 483 | 25th May 2007 John Allison (opengl-V08-03-02) |
---|
| 484 | - G4OpenGLXViewer: Trapped glXMakeCurrent in Initialise function. |
---|
| 485 | |
---|
| 486 | 24th May 2007 John Allison (opengl-V08-03-01) |
---|
| 487 | - Fixes for SUN. |
---|
| 488 | |
---|
| 489 | 16th May 2007 John Allison (opengl-V08-03-00) |
---|
| 490 | - Fix compiler warnings on SLC4. |
---|
| 491 | - Bug fixes: |
---|
| 492 | o Correct path /vis/ogl/set/printMode. |
---|
| 493 | o Add SetView to pixmap screen dump ("/vis/ogl/set/printMode pixmap" |
---|
| 494 | and "/vis/ogl/printEPS"). |
---|
| 495 | |
---|
| 496 | 8th May 2007 John Allison (opengl-V08-02-06) |
---|
| 497 | - Moved vectored PostScript printing to G4OpenGLViewer. |
---|
| 498 | - /vis/ogl/printEPS should work for all viewers, including Win32. |
---|
| 499 | - Introduced /vis/ogl/set/printMode vectored|pixmap, currently only |
---|
| 500 | effective on X windows (and still somewhat buggy). |
---|
| 501 | |
---|
| 502 | 4th April 2007 John Allison (opengl-V08-02-05 - needs visman-V08-02-04) |
---|
| 503 | - Implemented picking for OGLSX ( as well as OGLIX). Hopefully works |
---|
| 504 | for OGL*Win32. Still doesn't work for OGL*Xm. |
---|
| 505 | |
---|
| 506 | 3rd April 2007 John Allison (opengl-V08-02-04 - needs visman-V08-02-03) |
---|
| 507 | - G4OpenGLStoredSceneHandler: |
---|
| 508 | o Re-organised display lists on a per-primitive basis, i.e., one |
---|
| 509 | display list per primitive. (This is so that, except for text, |
---|
| 510 | the colour - or, rather, intensity - can be brought out of the |
---|
| 511 | display list into the TOList (Transient Object List) and |
---|
| 512 | controlled for the Display-by-Time feature. Previously, if more |
---|
| 513 | than one primitive were drawn between BeginPrimitives and |
---|
| 514 | EndPrimitives, it would finish up all in one display list, colour |
---|
| 515 | commands included. Rationalises and fixes a rare bug in the |
---|
| 516 | Display-by-Time feature - see August 2006.) |
---|
| 517 | o Added AddPrimitive(const G4Polymarker&) so that it is treated as |
---|
| 518 | one primoitive to fit with the above re-organisation. |
---|
| 519 | - Implemented picking for OGLIX. |
---|
| 520 | |
---|
| 521 | 25th March 2007 John Allison (opengl-V08-02-03) |
---|
| 522 | - Fix compiler warnings. |
---|
| 523 | |
---|
| 524 | 8th February 2007 John Allison (opengl-V08-02-02) |
---|
| 525 | - Fixed Windows problem with DBL_MAX. (Introduced G4OPENGL_DBL_MAX.) |
---|
| 526 | - G4OpenGLXViewer.cc: Small bug fix in print(). (Context was switched |
---|
| 527 | .but not switched back. Not serious, because context was always set |
---|
| 528 | before normal drawing.) |
---|
| 529 | |
---|
| 530 | 9th January 2007 John Allison (opengl-V08-02-01) |
---|
| 531 | - Implemented bitmap markers for MarkerSizeType == screen. (The old |
---|
| 532 | polygon implementation remains for MarkerSizeType == world.) |
---|
| 533 | - Added G4OpenGLBitMapStore to assist the above. |
---|
| 534 | - G4OpenGLXViewer::CreateGLXContext: |
---|
| 535 | o Bug fix: Added missing break in colormap lookup routine. |
---|
| 536 | |
---|
| 537 | 5th January 2007 John Allison (opengl-V08-02-00) |
---|
| 538 | - G4OpenGLSceneHandler.cc: |
---|
| 539 | o Followed change of signature of GetLineWidth in visman-V08-02-00. |
---|
| 540 | o Minor efficiency improvements. |
---|
| 541 | |
---|
| 542 | 21st November 2006 John Allison (opengl-V08-01-09) |
---|
| 543 | - Fixed compiler warnings. |
---|
| 544 | |
---|
| 545 | 1st November 2006 John Allison (opengl-V08-01-08) |
---|
| 546 | - Replace /vis/oglx/set/printEPS by /vis/oglx/printEPS. The new command |
---|
| 547 | actually initiates a print, rather than set a flag for printing. |
---|
| 548 | |
---|
| 549 | 24th October 2006 John Allison (opengl-V08-01-07) |
---|
| 550 | - G4OpenGLStoredViewer.cc: Calculate light front horizon properly. |
---|
| 551 | - G4OpenGLViewerMessenger.cc: Make refresh depend on auto-refresh. |
---|
| 552 | |
---|
| 553 | 19th September 2006 John Allison (opengl-V08-01-06) |
---|
| 554 | - Added time origin for light front. |
---|
| 555 | - Added /vis/ogl/set/transparency. |
---|
| 556 | - G4OpenGLStoredViewer.cc: Bug fix in time range acceptance. |
---|
| 557 | |
---|
| 558 | 4th September 2006 John Allison (opengl-V08-01-05) |
---|
| 559 | - Implement cutaways. |
---|
| 560 | - Immediate mode: G4OpenGLImmediateSceneHandler.cc: Flush all |
---|
| 561 | primitives (see detector being drawn). |
---|
| 562 | - /vis/oglx/set/printEPS: change parameter default to true. |
---|
| 563 | |
---|
| 564 | 30th August 2006 John Allison (opengl-V08-01-04) |
---|
| 565 | - G4OpenGLSceneHandler: |
---|
| 566 | o Implemented line width. |
---|
| 567 | o Switched off back face culling when clipping so that the inside of |
---|
| 568 | volumes can be seen. |
---|
| 569 | o Added CreateSection/CutawayPolyhedron to exploit generic |
---|
| 570 | sectioning (DCUT) and cutaways. Currently not activated due to |
---|
| 571 | instabilities in BooleanProcessor. Local sectioning still active |
---|
| 572 | but broken (at least on Mac) due to apparent change in effect of |
---|
| 573 | clipping planes (polyhedron edges not reconstructed). |
---|
| 574 | o Rationalised calculation of marker size. |
---|
| 575 | - G4OpenGLStoredSceneHandler: |
---|
| 576 | o Fixed bug due to recursive calls of AddPrimitive (polymarkers -> markers). |
---|
| 577 | o Pick up time range from G4VisAttributes. |
---|
| 578 | - G4OpenGLViewer(Messenger): |
---|
| 579 | o Added position and colour to /vis/ogl/set/displayHeadTime. |
---|
| 580 | o Added /vis/ogl/set/displayLightFront. |
---|
| 581 | - G4OpenGLStoredViewer.cc: |
---|
| 582 | o Rationalised CompareForKernelVisit. (Local sectioning still active.) |
---|
| 583 | o Added position and colour to DisplayHeadTime. |
---|
| 584 | o Added DisplayLightFront. |
---|
| 585 | |
---|
| 586 | 16th August 2006 John Allison (opengl-V08-01-03) |
---|
| 587 | - Corrected Solaris compilation error. |
---|
| 588 | - Added /vis/ogl/set/fade and displayHeadTime. |
---|
| 589 | |
---|
| 590 | 14th August 2006 John Allison (opengl-V08-01-02) |
---|
| 591 | - Needs visman-V08-01-02. |
---|
| 592 | - G4OpenGLStored: Implemented display-by-time. Only available in |
---|
| 593 | stored mode at present. Only implemented for circle, square, |
---|
| 594 | polyline and polymarker at present, enough for currently available |
---|
| 595 | trajectory models. Time is communicated via G4AttValues. |
---|
| 596 | - Added G4OpenGLViewerMessenger. |
---|
| 597 | - Added /vis/ogl/set/startTime and endTime of displayed objects. |
---|
| 598 | - All factories: Instantiated G4OpenGLViewerMessenger. |
---|
| 599 | - G4OpenGLViewer: Added fStart/EndTime. |
---|
| 600 | - G4OpenGLXViewer.cc: Graceful recovery from unexpected tokens in |
---|
| 601 | spewPrimitiveEPS and spewSortedFeedback. |
---|
| 602 | |
---|
| 603 | 17th July John Allison (opengl-V08-01-01) |
---|
| 604 | - Added /vis/oglx/set/printEPS (prints eps file on every update). |
---|
| 605 | |
---|
| 606 | 3rd July 2006 John Allison (opengl-V08-01-00) |
---|
| 607 | - Elimination of redundant variable doublebuffer and implementation of |
---|
| 608 | FinishView in all viewers. |
---|
| 609 | |
---|
| 610 | 30th May 2006 Joseph Perl (opengl-V08-00-08) |
---|
| 611 | - G4OpenGLImmediateWin32Viewer: Removed tests on doublebuffer since that |
---|
| 612 | variable seems to have random behavior and should be assumed false for |
---|
| 613 | this viewer. |
---|
| 614 | |
---|
| 615 | 29th May 2006 Joseph Perl (opengl-V08-00-07) |
---|
| 616 | - G4OpenGLWin32Viewer, G4OpenGLImmediateWin32Viewer, G4OpenGLStoredWin32Viewer: |
---|
| 617 | Removed common FinishView and instead made separate FinishView for the two different |
---|
| 618 | versions of this viewer since each wants a different buffer swapping behaviour. |
---|
| 619 | |
---|
| 620 | 12th May 2006 John Allison (opengl-V08-00-06) |
---|
| 621 | - G4OpenGLWin32Viewer: Fixed buffer swapping behaviour. |
---|
| 622 | |
---|
| 623 | 28th April 2006 John Allison (opengl-V08-00-05 - needs visman-V08-00-14) |
---|
| 624 | - G4OpenGLStoredX/Xm/Win32Viewer.cc: Fixed buffer swapping problem when |
---|
| 625 | recomputing transients. |
---|
| 626 | |
---|
| 627 | 24th April 2006 John Allison (opengl-V08-00-04) |
---|
| 628 | - Fixed compilation problem on Windows. |
---|
| 629 | |
---|
| 630 | 19th April 2006 John Allison (opengl-V08-00-03) |
---|
| 631 | - G4OpenGLSceneHandler, G4OpenGLStoredSceneHandler and |
---|
| 632 | G4OpenGLImmediateSceneHandler: |
---|
| 633 | o Implemented Begin/EndPrimitives2D (needs visman-V08-00-12 and |
---|
| 634 | greps-V08-00-02). |
---|
| 635 | o Migrated to direct access to G4PhysicalVolumeModel. |
---|
| 636 | - G4OpenGLStoredX/Xm/Win32Viewer.cc: bug fix for conditional drawing |
---|
| 637 | of display lists in DrawView. |
---|
| 638 | |
---|
| 639 | 14th March 2006 John Allison (opengl-V08-00-02) |
---|
| 640 | - Refined display list building and re-drawing algorithm. |
---|
| 641 | o G4OpenGLStoredSceneHandler::EndModeling: Changed to GL_COMPILE_AND_EXECUTE. |
---|
| 642 | o Avoided unnecessary re-execution in DrawView (X, Xm and Win32). |
---|
| 643 | - G4OpenGLStoredSceneHandler::RequestPrimitives: Refined display list |
---|
| 644 | re-use algorithm. In test19 with global culling off, numbers of |
---|
| 645 | display lists used are: |
---|
| 646 | o 191 No re-use: |
---|
| 647 | o 73 Before this change: re-use except replicas (includes parameterised). |
---|
| 648 | o 33 After this change: re-use except parameterised and replicas in radius. |
---|
| 649 | |
---|
| 650 | 26th January 2006 John Allison (opengl-V08-00-01) |
---|
| 651 | - Coworks with visman-V08-00-04 (removed fModified). |
---|
| 652 | - Removed references to fModified. |
---|
| 653 | - Tidying: Removed unnecessary ClearView. |
---|
| 654 | - G4OpenGLSceneHandler.cc: Added some (commented out) code for |
---|
| 655 | possible future implementation of 2D drawing. |
---|
| 656 | - G4OpenGLXViewer.cc: Improved exception printing. |
---|
| 657 | |
---|
| 658 | 11th January 2006 John Allison (opengl-V08-00-00) |
---|
| 659 | - Improved efficiency: all DrawView's: |
---|
| 660 | o Don't call ClearView. |
---|
| 661 | o Set flag so SetView will not be called in ProcessView. |
---|
| 662 | o Leave background colour to ClearView. |
---|
| 663 | - Used dynamic_cast<G4OpenGLViewer*>, no need for G4OpenGLViewerDataStore. |
---|
| 664 | - G4OpenGLXmViewerMessenger: Made a smart singleton; interrogates vis manager |
---|
| 665 | for current viewer. |
---|
| 666 | |
---|
| 667 | 24th November 2005 John Allison (opengl-V07-01-09) |
---|
| 668 | - Protected G4OpenGLXmViewerMessenger with #ifdef G4VIS_BUILD_OPENGLXM_DRIVER. |
---|
| 669 | |
---|
| 670 | 22nd November 2005 John Allison (opengl-V07-01-08) |
---|
| 671 | - Added G4OpenGLXmViewerMessenger. |
---|
| 672 | - Corrected text position. |
---|
| 673 | - Made depth test for polyhedron GL_LEQUAL (slightly dominant). |
---|
| 674 | |
---|
| 675 | 17th November 2005 Gabriele Cosmo |
---|
| 676 | - Fixed settings of background style for WIN32 viewers. |
---|
| 677 | |
---|
| 678 | 13th November 2005 John Allison (opengl-V07-01-07) |
---|
| 679 | - Implemented X-Window-style geometry hints in G4OpenGLXViewer. |
---|
| 680 | |
---|
| 681 | 13th October 2005 John Allison (opengl-V07-01-06) |
---|
| 682 | - Allowed any colour background. |
---|
| 683 | - Implemented non-uniform scaling. |
---|
| 684 | - Migration to <sstream>. |
---|
| 685 | |
---|
| 686 | 29th September 2005 John Allison (opengl-V07-01-05) |
---|
| 687 | - Added G4OpenGLViewerDataStore to facilitate access of viewer data by |
---|
| 688 | scene handler. |
---|
| 689 | - Re-implemented transparency button in OpenGLXm. |
---|
| 690 | |
---|
| 691 | 13th September 2005 John Allison (opengl-V07-01-04 - needs visman-V07-01-02) |
---|
| 692 | - Implemented white background for all OGL viewers. |
---|
| 693 | - G4OpenGLSceneHandler.cc: |
---|
| 694 | o Fixed hidden line removal (bug introduced in opengl-V07-01-02). |
---|
| 695 | o Fixed treatment of triangular polygons for drawing of auxiliary/soft lines. |
---|
| 696 | o Corrected GetTextColour(text). |
---|
| 697 | o Corrected GetColour(polyhedron). |
---|
| 698 | |
---|
| 699 | 5th September 2005 John Allison (opengl-V07-01-03) |
---|
| 700 | - Bug fix: stored transparent objects were being lost. |
---|
| 701 | |
---|
| 702 | 2nd September 2005 John Allison (opengl-V07-01-02 - needs visman-V07-01-01) |
---|
| 703 | - Bug fix: edgeflags problem introduced with smooth shading in |
---|
| 704 | opengl-V07-01-00. |
---|
| 705 | - Implementation of a "better algorithm" for the rendering of |
---|
| 706 | transparent polyhedron objects. It renders all opaque objects |
---|
| 707 | first, then renders the transparent objects with the depth buffer in |
---|
| 708 | read-only mode (see OpenGL Programming Guide). It uses the new |
---|
| 709 | facility in G4VSceneHandler::ProcessScene for an optional second pass |
---|
| 710 | of the run-duration models in the scene. Note this algorithm is |
---|
| 711 | still only an approximation. It will still give the wrong blended |
---|
| 712 | colour if two transparent objects are rendered front first. For |
---|
| 713 | nested transparent objects, this is unfortunate, because |
---|
| 714 | G4PhysicalVolumeModel traverses Geant4's mother-daughter hierarchy |
---|
| 715 | in such a way that mothers come first. Also, there is no guaranteed |
---|
| 716 | relationship between the order of rendering and the depth of two |
---|
| 717 | transparent objects if they are at the same level or in different |
---|
| 718 | branches of the hierarchy. Still, the only error will be an |
---|
| 719 | incorrect colour - the objects will still give the appearance of |
---|
| 720 | transparency, so it's a pretty good algorithm. (An even better |
---|
| 721 | algorithm would be to attempt to render the facets in depth order, |
---|
| 722 | deepest first. But how do you calculate the depth - centre of area, |
---|
| 723 | deepest corner? One can still imagine pathalogical cases that would |
---|
| 724 | sometimes give the wrong colour. Also, for stored mode, the order |
---|
| 725 | is fixed in a display list so when the user rotates the view, one |
---|
| 726 | would lose the depth ordering. I think we have to accept that |
---|
| 727 | blending in OpenGL is only ever an approximation. For accurate |
---|
| 728 | blending, use RayTracer.) |
---|
| 729 | |
---|
| 730 | 28th August 2005 John Allison (opengl-V07-01-01) |
---|
| 731 | - Half-way implementation of rendering of transparent polyhedron |
---|
| 732 | objects. In this implementation, no account is taken of the order |
---|
| 733 | of rendering. Transparent objects are rendered with depth testing |
---|
| 734 | off so that objects behind can still be seen. But this means that |
---|
| 735 | opaque objects in front do not obscure them - and they jolly well |
---|
| 736 | should! A better algorithm is to render all opaque objects first, |
---|
| 737 | then render the transparent objects with the depth buffer in |
---|
| 738 | read-only mode (see OpenGL Programming Guide). This is going to |
---|
| 739 | take a little more thought - see opengl-V07-01-02. |
---|
| 740 | |
---|
| 741 | 20th July 2005 John Allison (opengl-V07-01-00) |
---|
| 742 | - Introduced smooth shading, taking advantage of hitherto un-noticed |
---|
| 743 | feature of HepPolyhedron::GetNextFacet that calculates the normals |
---|
| 744 | at each vertex so that curved surfaces are rendered more |
---|
| 745 | realistically (Gouraud shading). |
---|
| 746 | - G4OpenGLImmediateSceneHandler.cc: Removed unnecessary #include's. |
---|
| 747 | - G4OpenGLXmViewer.cc: Fixed to use window size hints. This changes |
---|
| 748 | the default window size. It used to be 400x400, hardcoded in |
---|
| 749 | G4OpenGLXmViewer.cc, but now it picks up the |
---|
| 750 | G4ViewParameters::GetWindowSizeHintX/Y, which defaults to 600x600. |
---|
| 751 | The user may change it on the command line, e.g: |
---|
| 752 | /vis/open OGLSXm 500 |
---|
| 753 | or |
---|
| 754 | /vis/viewer/create ! ! 500 |
---|
| 755 | |
---|
| 756 | 30th May 2005 John Allison (opengl-V07-00-03) |
---|
| 757 | - Fixed compilation problem in OpenGL on SUN. (Replaced multimap by |
---|
| 758 | map of vectors in G4OpenGLFontBaseStore.) |
---|
| 759 | |
---|
| 760 | 4th May 2005 John Allison (opengl-V07-00-02) |
---|
| 761 | - Restored sequence Set/Clear/DrawView in ClearTransientStore. (It |
---|
| 762 | was taken out to prevent recursive calling, but that seems to be OK, |
---|
| 763 | and it is needed to implement refresh at end of event/run.) |
---|
| 764 | |
---|
| 765 | 22nd April 2005 John Allison (opengl-V07-00-01) |
---|
| 766 | - Rationalised work of opengl-V07-00-00. Functionality unchanged. |
---|
| 767 | o G4OpenGLViewer.hh: Created virtual void CreateFontLists(){}. |
---|
| 768 | o In all concrete viewers, added call to CreateFontLists(). |
---|
| 769 | o Moved font code for X to G4OpenGLXViewer::CreateFontLists(). |
---|
| 770 | o There is no longer a need to implement in the XmViewer, since it |
---|
| 771 | now inherits. Thus the font code now only appears once for X. |
---|
| 772 | o Awaiting implementation for WIN32. |
---|
| 773 | |
---|
| 774 | 17th April 2005 John Allison (opengl-V07-00-00) |
---|
| 775 | - Based on vis-V07-00-13. |
---|
| 776 | - Implemented text for X-Windows viewers. Uses glXUseXFont, which |
---|
| 777 | creates display lists for nominated fonts. Simple-minded scheme in |
---|
| 778 | which each viewer creates its own font display lists for a variety |
---|
| 779 | of sizes, which are accessed by the scene handler through a new |
---|
| 780 | class, G4OpenGLFontBaseStore. Affected methods: |
---|
| 781 | G4OpenGLXViewer::CreateMainWindow() |
---|
| 782 | G4OpenGLXmViewer::CreateMainWindow() |
---|
| 783 | G4OpenGLSceneHandler::AddPrimitive (const G4Text& text) |
---|
| 784 | |
---|
| 785 | 18th November 2004 John Allison (opengl-V06-02-07) |
---|
| 786 | - Removed redundant fLastVP from G4OpenGLStoredSceneHandler. |
---|
| 787 | |
---|
| 788 | 15th November 2004 Guy Barrand |
---|
| 789 | - G4OpenGLWin32Viewer::ShowView : glFlush was not sufficient |
---|
| 790 | to see trajectories (for example with N03). Correct so that |
---|
| 791 | ShowView do a FinishView that does : glFlush, wglSwapBuffer |
---|
| 792 | and empty the Windows message queue. |
---|
| 793 | |
---|
| 794 | 22nd September 2004 John Allison (opengl-V06-02-06) |
---|
| 795 | - doxygen output to tmp area. |
---|
| 796 | - Trap non-regular polyhedrons. |
---|
| 797 | |
---|
| 798 | 13th September 2004 Gabriele Cosmo (opengl-V06-02-05) |
---|
| 799 | - G4OpenGLTransform3D.cc: simplified implementation for GetMatrix() |
---|
| 800 | to allow for porting on CLHEP-1.9.X series. |
---|
| 801 | |
---|
| 802 | 23rd July 2004 John Allison |
---|
| 803 | - Draws auxiliary edges if required. |
---|
| 804 | - Added auxiliary edge button. |
---|
| 805 | |
---|
| 806 | 16th July 2004 John Allison (opengl-V06-02-04) |
---|
| 807 | - Refinements to hidden line, hidden surface removal. |
---|
| 808 | |
---|
| 809 | 14th July 2004 John Allison (opengl-V06-02-03) |
---|
| 810 | - Removed superfluous #include "G4VisManager.hh" from G4OpenGLXmViewer.cc. |
---|
| 811 | |
---|
| 812 | 13th July 2004 John Allison (opengl-V06-02-02) |
---|
| 813 | - Hidden line *and* hidden surface removal now works. |
---|
| 814 | |
---|
| 815 | 9th July 2004 John Allison (opengl-V06-02-01) |
---|
| 816 | - Fixed long-standing problem with hidden line removal. |
---|
| 817 | - Improved messages on failure to get visual. |
---|
| 818 | - Added GLX_STENCIL_SIZE explicit request to visual attributes - most |
---|
| 819 | systems provided by default anyway, so no effect. |
---|
| 820 | |
---|
| 821 | 1st July 2004 John Allison (opengl-V06-02-00) |
---|
| 822 | - Rationalised G4OpenGLSceneHandler ready for hidden line removal. |
---|
| 823 | - Bug fix in G4OpenGLXmPanningCallbacks.cc for dolly control. |
---|
| 824 | |
---|
| 825 | 18th June 2004 Gunter Folger (geant4-06-02) |
---|
| 826 | 9th June 2004 Gabriele Cosmo (vis-V06-01-03) |
---|
| 827 | 7th June 2004 Gabriele Cosmo (vis-V06-01-02) |
---|
| 828 | - GNUmakefile and disclaimer changes - see visualization/History. |
---|
| 829 | |
---|
| 830 | 9th April 2004 John Allison (vis-V06-01-01 + interfaces-V06-01-00) |
---|
| 831 | - Tagged OpenGL as below. Joint with interfaces-V06-01-00. |
---|
| 832 | |
---|
| 833 | 7th April 2004 Guy Barrand |
---|
| 834 | - visualization/OpenGL/* : use the G4OpenGL.hh file. |
---|
| 835 | - Added : visualization/OpenGL/include/G4OpenGL.hh to encapsulate |
---|
| 836 | the include of gl/gl.h and gl/glu.h that may be platform dependant. |
---|
| 837 | It permits to rm some #ifdef WIN32 spread in the code. It opens also |
---|
| 838 | the way to the usage of the Apple OpenGL on a Mac. |
---|
| 839 | |
---|
| 840 | 17th February 2004 John Allison (opengl-V06-00-00) |
---|
| 841 | - Fixed bug #581: wrong order of statements in |
---|
| 842 | G4OpenGLXViewer::~G4OpenGLXViewer (see bug report). |
---|
| 843 | |
---|
| 844 | 4th October 2003 Gabriele Cosmo (vis-V05-02-01) |
---|
| 845 | - GNUmakefile: |
---|
| 846 | o replaced "digits+hits" with "digits_hits". |
---|
| 847 | - Coworks with "geometry-V05-02-00" and "digits_hits-V05-02-00". |
---|
| 848 | |
---|
| 849 | 22nd September 2003 John Allison (vis-V05-02-00, greps-V05-02-00) |
---|
| 850 | - Cosmetic change to regularise names: |
---|
| 851 | o changed _Feedback3Dcolo to G4OpenGLXViewerFeedback3Dcolor. |
---|
| 852 | o changed _DepthIndex to G4OpenGLXViewerDepthIndex. |
---|
| 853 | |
---|
| 854 | 23rd June 2003 Guy Barrand (opengl-V05-01-02) |
---|
| 855 | - Commit a first implementation of G4OpenGLWin32Viewer. |
---|
| 856 | |
---|
| 857 | 10th June 2003 Gabriele Cosmo (opengl-V05-01-01) |
---|
| 858 | - More fixes for warnings in viewers classes. |
---|
| 859 | - Added inclusion of <windows.h> for WIN32 platforms when GL headers |
---|
| 860 | are included. |
---|
| 861 | |
---|
| 862 | 05th June 2003 Gabriele Cosmo (opengl-V05-01-00) |
---|
| 863 | - Fixes for porting compilation on WIN32: |
---|
| 864 | o G4OpenGLWin32Viewer[.hh.cc]: removed inclusion of <GL/glx.h>. |
---|
| 865 | o G4OpenGLViewer.cc: replaced local variables near/far with pnear/pfar |
---|
| 866 | since declared 'obsolete' in WIN32 platforms. |
---|
| 867 | |
---|
| 868 | 27th November 2002 John Allison (vis-V04-01-08) |
---|
| 869 | - Improved algorithm of CompareForKernelVisit. |
---|
| 870 | |
---|
| 871 | 11th November 2002 John Allison (opengl-V04-01-02) |
---|
| 872 | - Corrected inclusion of G4OpenGLXViewer #ifdef X_DRIVER. |
---|
| 873 | - Added G4OpenGLSceneHandler::AddThis for trajectories and hits - simply |
---|
| 874 | call default but there as a marker and encourager. |
---|
| 875 | - Added tracking and digits+hits/hits to GNUmakefile. |
---|
| 876 | |
---|
| 877 | 16th October 2002 John Allison (opengl-V04-01-01) |
---|
| 878 | - Fix for WIN32. Now compiles but viewer not implemented. |
---|
| 879 | |
---|
| 880 | 24th June 2002 John Allison (opengl-V04-01-00) |
---|
| 881 | - Further cosmetic changes in G4OpenGLXViewer.cc for DEC compiler. |
---|
| 882 | |
---|
| 883 | 10th June 2002 John Allison (opengl-V04-00-03) |
---|
| 884 | - Cosmetic changes for SUN-CC in G4OpenGLXmConvenienceRoutines.cc. |
---|
| 885 | |
---|
| 886 | 6th June 2002 John Allison (opengl-V04-00-02) |
---|
| 887 | - Cosmetic changes for GNU compiler in G4OpenGLXViewer.cc. |
---|
| 888 | |
---|
| 889 | 23rd February 2002 John Allison (opengl-V04-00-01) |
---|
| 890 | - Changes to encourage compilation on Windows in preparation for |
---|
| 891 | implementation of G4OpenGLWin32Viewer. Removed spurious includes of |
---|
| 892 | glx.h, unistd.h and assert.h. |
---|
| 893 | |
---|
| 894 | 24th August 2001 John Allison (vis-V03-02-13) |
---|
| 895 | - Limited the printing of warnings in |
---|
| 896 | G4OpenGLSceneHandler::AddPrimitive (const G4Text& text). |
---|
| 897 | |
---|
| 898 | 14th August 2001 John Allison (vis-V03-02-11) |
---|
| 899 | - Improved KernelVisitDecision. |
---|
| 900 | - Fixed a few small bugs in multiple "stored" viewers, but see next item. |
---|
| 901 | - There's an outstanding bug in OpenGL Stored. If there is more than |
---|
| 902 | one viewer controlled by a scene handler, after a ClearStore on the |
---|
| 903 | scene handler, e.g., with /vis/scene/notifyHandlers, the first |
---|
| 904 | viewer to get refreshed should trigger the display list rebuild, but |
---|
| 905 | the second need not. However, when the second viewer's turn comes, |
---|
| 906 | the display lists are there, and are called, e.g., |
---|
| 907 | G4OpenGLStoredXViewer::DrawView calls |
---|
| 908 | G4OpenGLStoredViewer::DrawDisplayLists that calls glCallList, but |
---|
| 909 | nothing appears on the screen. To overcome this there is some |
---|
| 910 | temporary code in G4VViewer::NeedKernelVisit which marks *all* |
---|
| 911 | viewers to force a rebuild. To see the symptoms, comment out that |
---|
| 912 | temporary code and issue these commands: |
---|
| 913 | /vis/verbose c |
---|
| 914 | /control/verbose 2 |
---|
| 915 | /vis/scene/create |
---|
| 916 | /vis/scene/add/volume |
---|
| 917 | /vis/sceneHandler/create OGLSX |
---|
| 918 | /vis/viewer/create ! ! 1 |
---|
| 919 | /run/beamOn |
---|
| 920 | /vis/viewer/create ! ! 1 |
---|
| 921 | /vis/viewer/select viewer-0 |
---|
| 922 | /vis/viewer/viewpointThetaPhi 20 20 |
---|
| 923 | /vis/viewer/select viewer-1 |
---|
| 924 | /vis/viewer/viewpointThetaPhi 40 40 |
---|
| 925 | /vis/viewer/set/style surface |
---|
| 926 | /vis/viewer/refresh |
---|
| 927 | /vis/viewer/select viewer-0 |
---|
| 928 | /vis/viewer/refresh |
---|
| 929 | /vis/viewer/select viewer-1 |
---|
| 930 | /vis/viewer/set/style wireframe |
---|
| 931 | /vis/scene/notifyHandlers |
---|
| 932 | You may have to do this too: |
---|
| 933 | /vis/viewer/select viewer-0 |
---|
| 934 | /vis/scene/notifyHandlers |
---|
| 935 | One of the viewers is empty. Curious!! |
---|
| 936 | |
---|
| 937 | 9th August 2001 John Allison (vis-V03-02-10-00) |
---|
| 938 | - Implemented G4OpenGLStoredSceneHandler::ClearTransientStore() |
---|
| 939 | - Removed G4OpenGLSceneHandler::AddPrimitive (const G4Polymarker&) (it only |
---|
| 940 | invoked G4VSceneHandler::AddPrimitive (const G4Polymarker&) which is |
---|
| 941 | picked up by inheritance anyway. |
---|
| 942 | - Removed lots of unnecessary header files from G4OpenGLStoredSceneHandler.cc. |
---|
| 943 | - Corrected order of calling base class functions in |
---|
| 944 | G4OpenGLStoredSceneHandler::Begin/EndModeling. |
---|
| 945 | |
---|
| 946 | 24th July 2001 John Allison (vis-V03-02-06) |
---|
| 947 | - G4OpenGLSceneHandler::AddPrimitive (const G4Text&) handles transformation. |
---|
| 948 | |
---|
| 949 | 14th July 2001 John Allison (opengl-V03-02-00) |
---|
| 950 | - Fixed crash in optimised mode: added Initialise() to viewers so |
---|
| 951 | that windows are opened after viewers are fully constructed. |
---|
| 952 | |
---|
| 953 | 2nd April 2001 John Allison (opengl-V03-00-01 wrt vis-V03-00-09) |
---|
| 954 | - Tidied G4OpenGLXmViewer callback code. Removed superfluous header files. |
---|
| 955 | |
---|
| 956 | 7th March 2001 John Allison |
---|
| 957 | - Changed char* to const char* in many places and that gave problems in |
---|
| 958 | calls to Xt and Xm. Hope all's OK. Differences: |
---|
| 959 | cvs diff -r vis-V03-00-06 vis-V03-00-07 |
---|
| 960 | |
---|
| 961 | 25th January 2001 John Allison (opengl-V03-00-00) |
---|
| 962 | - Implemented running re-calculation of up-vector in the case of "object |
---|
| 963 | rotation" (lights move with camera) to prevent "flipping" of view when |
---|
| 964 | camera passes through up-vector. Note that the default is "camera |
---|
| 965 | rotation" (lights do not move with camera, i.e., remain fixed relative |
---|
| 966 | to object) so the default is that this "flipping" can happen. To set |
---|
| 967 | "object rotation" (lights move with camera) use |
---|
| 968 | /vis/lights/move_with_camera true (soon to be |
---|
| 969 | /vis/viewer/set/lights move-with-camera) or click "Object" radio button |
---|
| 970 | on Rotation Panel in OpenGLXm mode. |
---|
| 971 | - Changed some objects to references for efficiency. E.g.: |
---|
| 972 | const G4Vector3D& vp = pView->fVP.GetViewpointDirection ().unit (); |
---|
| 973 | |
---|
| 974 | 22nd May 2000 John Allison (opengl-V01-01-00) |
---|
| 975 | - Fixed slow response of 2nd window of OpenGLXm. Worked around Mesa bug |
---|
| 976 | by sharing static visuals in G4OpenGLXViewer (Guy Barrand): |
---|
| 977 | static XVisualInfo* vi_single_buffer; |
---|
| 978 | static XVisualInfo* vi_double_buffer; |
---|
| 979 | - Removed ChooseVisual from G4OpenGLXmViewer.cc - done in base class |
---|
| 980 | G4OpenGLXViewer. |
---|
| 981 | - Protected double deletion of window in destructors of G4OpenGLXmViewer |
---|
| 982 | and G4OpenGLXViewer (Guy Barrand). |
---|
| 983 | - Changed requested bits per colour to r,g,b = 1,1,1 in G4OpenGLViewer.cc. |
---|
| 984 | - Corrected order of CreateMainWindow() and InitializeGLView() in X*Viewer |
---|
| 985 | constructors. |
---|