[610] | 1 | $Id: History,v 1.101 2007/11/16 11:15:43 lgarnier Exp $ |
---|
[529] | 2 | ------------------------------------------------------------------- |
---|
| 3 | |
---|
| 4 | ========================================================= |
---|
| 5 | Geant4 - an Object-Oriented Toolkit for Simulation in HEP |
---|
| 6 | ========================================================= |
---|
| 7 | |
---|
| 8 | Category History file |
---|
| 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 | History file for visualization/OpenGL |
---|
| 21 | ------------------------------------- |
---|
| 22 | |
---|
[610] | 23 | 15th November 2007 John Allison (opengl-V09-00-03) |
---|
| 24 | - Re-introduced Qt files, now properly protected by cpp flags. |
---|
| 25 | - cpp flags also added to some other files not previously properly protected. |
---|
| 26 | |
---|
[609] | 27 | 15 Nov 2007, Laurent Garnier |
---|
| 28 | - G4UIQt,G4Qt : Adding a GEANT4_QT_DEBUG flag to hide all debug messages |
---|
| 29 | - G4UIQt,G4Qt : Compilation improvements for Qt3 |
---|
| 30 | - G4UIQt,G4Qt : Minors corrections on G4UIQt helpWidget |
---|
| 31 | |
---|
| 32 | 14 Nov 2007, Laurent Garnier |
---|
| 33 | - G4OpenGLStoredQtViewer.cc : Correction of a bug with mouse move event in |
---|
| 34 | Qt4 |
---|
| 35 | - G4OpenGLQtExportDialog_moc.cc, G4OpenGLQtViewer.cc, G4OpenGLQtViewer_moc.cc : |
---|
| 36 | Adding protection for Qt version between 4.0 and 4.2 |
---|
| 37 | |
---|
[610] | 38 | 13th November 2007 John Allison (opengl-V09-00-02) |
---|
| 39 | - Removed Qt files from tag. File are still at head - need fixing. |
---|
| 40 | |
---|
[609] | 41 | 13 Nov 2007, Laurent Garnier |
---|
| 42 | - G4UIQt,G4Qt : Moving all moc in one big file interface/G4UIQT_moc.cc, |
---|
| 43 | including Qt3 and Qt4 moc support |
---|
| 44 | |
---|
[610] | 45 | 10th November 2007 John Allison (opengl-V09-00-01) |
---|
| 46 | - Moved WinSize_x, y to base class G4OpenGLViewer. |
---|
| 47 | - Minor improvement in guidance for /vis/ogl/printEPS. |
---|
| 48 | |
---|
[609] | 49 | 09 Nov 2007, Laurent Garnier |
---|
| 50 | - G4UIQt,G4Qt : Change all include directive to be compatible with Qt3 |
---|
| 51 | |
---|
| 52 | 08 Nov 2007, Laurent Garnier |
---|
| 53 | - moc_G4OpenGLQtExportDialog.cc move in G4OpenGLQtExportDialog_moc.cc |
---|
| 54 | - moc_G4OpenGLQtViewer.cc move to G4OpenGLQtViewer_moc.cc |
---|
| 55 | |
---|
| 56 | 27 Sept 2007, Laurent Garnier |
---|
| 57 | - Adding sur files for G4UIQt driver : |
---|
| 58 | - G4OpenGLImmediateQt.cc |
---|
| 59 | - G4OpenGLImmediateQtViewer.cc |
---|
| 60 | - G4OpenGLQtExportDialog.cc |
---|
| 61 | - G4OpenGLQtViewer.cc |
---|
| 62 | - G4OpenGLStoredQt.cc |
---|
| 63 | - G4OpenGLStoredQtViewer.cc |
---|
| 64 | - moc_G4OpenGLQtExportDialog.cc |
---|
| 65 | - moc_G4OpenGLQtViewer.cc |
---|
| 66 | |
---|
| 67 | 28th September 2007 lgarnier |
---|
| 68 | - first import of G4UI Qt files : Do not try to compil them |
---|
| 69 | |
---|
[593] | 70 | 21st August 2007 John Allison (opengl-V09-00-00) |
---|
| 71 | - Removed redundant G4OpenGLXViewerMessenger. |
---|
| 72 | |
---|
| 73 | 25th May 2007 John Allison (opengl-V08-03-03) |
---|
| 74 | - G4OpenGLSceneHandler and G4OpenGLXViewerMessenger: |
---|
| 75 | Fixed gcc-4.1.2 compiler warnings. |
---|
| 76 | |
---|
| 77 | 25th May 2007 John Allison (opengl-V08-03-02) |
---|
| 78 | - G4OpenGLXViewer: Trapped glXMakeCurrent in Initialise function. |
---|
| 79 | |
---|
| 80 | 24th May 2007 John Allison (opengl-V08-03-01) |
---|
| 81 | - Fixes for SUN. |
---|
| 82 | |
---|
| 83 | 16th May 2007 John Allison (opengl-V08-03-00) |
---|
| 84 | - Fix compiler warnings on SLC4. |
---|
| 85 | - Bug fixes: |
---|
| 86 | o Correct path /vis/ogl/set/printMode. |
---|
| 87 | o Add SetView to pixmap screen dump ("/vis/ogl/set/printMode pixmap" |
---|
| 88 | and "/vis/ogl/printEPS"). |
---|
| 89 | |
---|
| 90 | 8th May 2007 John Allison (opengl-V08-02-06) |
---|
| 91 | - Moved vectored PostScript printing to G4OpenGLViewer. |
---|
| 92 | - /vis/ogl/printEPS should work for all viewers, including Win32. |
---|
| 93 | - Introduced /vis/ogl/set/printMode vectored|pixmap, currently only |
---|
| 94 | effective on X windows (and still somewhat buggy). |
---|
| 95 | |
---|
| 96 | 4th April 2007 John Allison (opengl-V08-02-05 - needs visman-V08-02-04) |
---|
| 97 | - Implemented picking for OGLSX ( as well as OGLIX). Hopefully works |
---|
| 98 | for OGL*Win32. Still doesn't work for OGL*Xm. |
---|
| 99 | |
---|
| 100 | 3rd April 2007 John Allison (opengl-V08-02-04 - needs visman-V08-02-03) |
---|
| 101 | - G4OpenGLStoredSceneHandler: |
---|
| 102 | o Re-organised display lists on a per-primitive basis, i.e., one |
---|
| 103 | display list per primitive. (This is so that, except for text, |
---|
| 104 | the colour - or, rather, intensity - can be brought out of the |
---|
| 105 | display list into the TOList (Transient Object List) and |
---|
| 106 | controlled for the Display-by-Time feature. Previously, if more |
---|
| 107 | than one primitive were drawn between BeginPrimitives and |
---|
| 108 | EndPrimitives, it would finish up all in one display list, colour |
---|
| 109 | commands included. Rationalises and fixes a rare bug in the |
---|
| 110 | Display-by-Time feature - see August 2006.) |
---|
| 111 | o Added AddPrimitive(const G4Polymarker&) so that it is treated as |
---|
| 112 | one primoitive to fit with the above re-organisation. |
---|
| 113 | - Implemented picking for OGLIX. |
---|
| 114 | |
---|
| 115 | 25th March 2007 John Allison (opengl-V08-02-03) |
---|
| 116 | - Fix compiler warnings. |
---|
| 117 | |
---|
| 118 | 8th February 2007 John Allison (opengl-V08-02-02) |
---|
| 119 | - Fixed Windows problem with DBL_MAX. (Introduced G4OPENGL_DBL_MAX.) |
---|
| 120 | - G4OpenGLXViewer.cc: Small bug fix in print(). (Context was switched |
---|
| 121 | .but not switched back. Not serious, because context was always set |
---|
| 122 | before normal drawing.) |
---|
| 123 | |
---|
| 124 | 9th January 2007 John Allison (opengl-V08-02-01) |
---|
| 125 | - Implemented bitmap markers for MarkerSizeType == screen. (The old |
---|
| 126 | polygon implementation remains for MarkerSizeType == world.) |
---|
| 127 | - Added G4OpenGLBitMapStore to assist the above. |
---|
| 128 | - G4OpenGLXViewer::CreateGLXContext: |
---|
| 129 | o Bug fix: Added missing break in colormap lookup routine. |
---|
| 130 | |
---|
| 131 | 5th January 2007 John Allison (opengl-V08-02-00) |
---|
| 132 | - G4OpenGLSceneHandler.cc: |
---|
| 133 | o Followed change of signature of GetLineWidth in visman-V08-02-00. |
---|
| 134 | o Minor efficiency improvements. |
---|
| 135 | |
---|
[529] | 136 | 21st November 2006 John Allison (opengl-V08-01-09) |
---|
| 137 | - Fixed compiler warnings. |
---|
| 138 | |
---|
| 139 | 1st November 2006 John Allison (opengl-V08-01-08) |
---|
| 140 | - Replace /vis/oglx/set/printEPS by /vis/oglx/printEPS. The new command |
---|
| 141 | actually initiates a print, rather than set a flag for printing. |
---|
| 142 | |
---|
| 143 | 24th October 2006 John Allison (opengl-V08-01-07) |
---|
| 144 | - G4OpenGLStoredViewer.cc: Calculate light front horizon properly. |
---|
| 145 | - G4OpenGLViewerMessenger.cc: Make refresh depend on auto-refresh. |
---|
| 146 | |
---|
| 147 | 19th September 2006 John Allison (opengl-V08-01-06) |
---|
| 148 | - Added time origin for light front. |
---|
| 149 | - Added /vis/ogl/set/transparency. |
---|
| 150 | - G4OpenGLStoredViewer.cc: Bug fix in time range acceptance. |
---|
| 151 | |
---|
| 152 | 4th September 2006 John Allison (opengl-V08-01-05) |
---|
| 153 | - Implement cutaways. |
---|
| 154 | - Immediate mode: G4OpenGLImmediateSceneHandler.cc: Flush all |
---|
| 155 | primitives (see detector being drawn). |
---|
| 156 | - /vis/oglx/set/printEPS: change parameter default to true. |
---|
| 157 | |
---|
| 158 | 30th August 2006 John Allison (opengl-V08-01-04) |
---|
| 159 | - G4OpenGLSceneHandler: |
---|
| 160 | o Implemented line width. |
---|
| 161 | o Switched off back face culling when clipping so that the inside of |
---|
| 162 | volumes can be seen. |
---|
| 163 | o Added CreateSection/CutawayPolyhedron to exploit generic |
---|
| 164 | sectioning (DCUT) and cutaways. Currently not activated due to |
---|
| 165 | instabilities in BooleanProcessor. Local sectioning still active |
---|
| 166 | but broken (at least on Mac) due to apparent change in effect of |
---|
| 167 | clipping planes (polyhedron edges not reconstructed). |
---|
| 168 | o Rationalised calculation of marker size. |
---|
| 169 | - G4OpenGLStoredSceneHandler: |
---|
| 170 | o Fixed bug due to recursive calls of AddPrimitive (polymarkers -> markers). |
---|
| 171 | o Pick up time range from G4VisAttributes. |
---|
| 172 | - G4OpenGLViewer(Messenger): |
---|
| 173 | o Added position and colour to /vis/ogl/set/displayHeadTime. |
---|
| 174 | o Added /vis/ogl/set/displayLightFront. |
---|
| 175 | - G4OpenGLStoredViewer.cc: |
---|
| 176 | o Rationalised CompareForKernelVisit. (Local sectioning still active.) |
---|
| 177 | o Added position and colour to DisplayHeadTime. |
---|
| 178 | o Added DisplayLightFront. |
---|
| 179 | |
---|
| 180 | 16th August 2006 John Allison (opengl-V08-01-03) |
---|
| 181 | - Corrected Solaris compilation error. |
---|
| 182 | - Added /vis/ogl/set/fade and displayHeadTime. |
---|
| 183 | |
---|
| 184 | 14th August 2006 John Allison (opengl-V08-01-02) |
---|
| 185 | - Needs visman-V08-01-02. |
---|
| 186 | - G4OpenGLStored: Implemented display-by-time. Only available in |
---|
| 187 | stored mode at present. Only implemented for circle, square, |
---|
| 188 | polyline and polymarker at present, enough for currently available |
---|
| 189 | trajectory models. Time is communicated via G4AttValues. |
---|
| 190 | - Added G4OpenGLViewerMessenger. |
---|
| 191 | - Added /vis/ogl/set/startTime and endTime of displayed objects. |
---|
| 192 | - All factories: Instantiated G4OpenGLViewerMessenger. |
---|
| 193 | - G4OpenGLViewer: Added fStart/EndTime. |
---|
| 194 | - G4OpenGLXViewer.cc: Graceful recovery from unexpected tokens in |
---|
| 195 | spewPrimitiveEPS and spewSortedFeedback. |
---|
| 196 | |
---|
| 197 | 17th July John Allison (opengl-V08-01-01) |
---|
| 198 | - Added /vis/oglx/set/printEPS (prints eps file on every update). |
---|
| 199 | |
---|
| 200 | 3rd July 2006 John Allison (opengl-V08-01-00) |
---|
| 201 | - Elimination of redundant variable doublebuffer and implementation of |
---|
| 202 | FinishView in all viewers. |
---|
| 203 | |
---|
| 204 | 30th May 2006 Joseph Perl (opengl-V08-00-08) |
---|
| 205 | - G4OpenGLImmediateWin32Viewer: Removed tests on doublebuffer since that |
---|
| 206 | variable seems to have random behavior and should be assumed false for |
---|
| 207 | this viewer. |
---|
| 208 | |
---|
| 209 | 29th May 2006 Joseph Perl (opengl-V08-00-07) |
---|
| 210 | - G4OpenGLWin32Viewer, G4OpenGLImmediateWin32Viewer, G4OpenGLStoredWin32Viewer: |
---|
| 211 | Removed common FinishView and instead made separate FinishView for the two different |
---|
| 212 | versions of this viewer since each wants a different buffer swapping behaviour. |
---|
| 213 | |
---|
| 214 | 12th May 2006 John Allison (opengl-V08-00-06) |
---|
| 215 | - G4OpenGLWin32Viewer: Fixed buffer swapping behaviour. |
---|
| 216 | |
---|
| 217 | 28th April 2006 John Allison (opengl-V08-00-05 - needs visman-V08-00-14) |
---|
| 218 | - G4OpenGLStoredX/Xm/Win32Viewer.cc: Fixed buffer swapping problem when |
---|
| 219 | recomputing transients. |
---|
| 220 | |
---|
| 221 | 24th April 2006 John Allison (opengl-V08-00-04) |
---|
| 222 | - Fixed compilation problem on Windows. |
---|
| 223 | |
---|
| 224 | 19th April 2006 John Allison (opengl-V08-00-03) |
---|
| 225 | - G4OpenGLSceneHandler, G4OpenGLStoredSceneHandler and |
---|
| 226 | G4OpenGLImmediateSceneHandler: |
---|
| 227 | o Implemented Begin/EndPrimitives2D (needs visman-V08-00-12 and |
---|
| 228 | greps-V08-00-02). |
---|
| 229 | o Migrated to direct access to G4PhysicalVolumeModel. |
---|
| 230 | - G4OpenGLStoredX/Xm/Win32Viewer.cc: bug fix for conditional drawing |
---|
| 231 | of display lists in DrawView. |
---|
| 232 | |
---|
| 233 | 14th March 2006 John Allison (opengl-V08-00-02) |
---|
| 234 | - Refined display list building and re-drawing algorithm. |
---|
| 235 | o G4OpenGLStoredSceneHandler::EndModeling: Changed to GL_COMPILE_AND_EXECUTE. |
---|
| 236 | o Avoided unnecessary re-execution in DrawView (X, Xm and Win32). |
---|
| 237 | - G4OpenGLStoredSceneHandler::RequestPrimitives: Refined display list |
---|
| 238 | re-use algorithm. In test19 with global culling off, numbers of |
---|
| 239 | display lists used are: |
---|
| 240 | o 191 No re-use: |
---|
| 241 | o 73 Before this change: re-use except replicas (includes parameterised). |
---|
| 242 | o 33 After this change: re-use except parameterised and replicas in radius. |
---|
| 243 | |
---|
| 244 | 26th January 2006 John Allison (opengl-V08-00-01) |
---|
| 245 | - Coworks with visman-V08-00-04 (removed fModified). |
---|
| 246 | - Removed references to fModified. |
---|
| 247 | - Tidying: Removed unnecessary ClearView. |
---|
| 248 | - G4OpenGLSceneHandler.cc: Added some (commented out) code for |
---|
| 249 | possible future implementation of 2D drawing. |
---|
| 250 | - G4OpenGLXViewer.cc: Improved exception printing. |
---|
| 251 | |
---|
| 252 | 11th January 2006 John Allison (opengl-V08-00-00) |
---|
| 253 | - Improved efficiency: all DrawView's: |
---|
| 254 | o Don't call ClearView. |
---|
| 255 | o Set flag so SetView will not be called in ProcessView. |
---|
| 256 | o Leave background colour to ClearView. |
---|
| 257 | - Used dynamic_cast<G4OpenGLViewer*>, no need for G4OpenGLViewerDataStore. |
---|
| 258 | - G4OpenGLXmViewerMessenger: Made a smart singleton; interrogates vis manager |
---|
| 259 | for current viewer. |
---|
| 260 | |
---|
| 261 | 24th November 2005 John Allison (opengl-V07-01-09) |
---|
| 262 | - Protected G4OpenGLXmViewerMessenger with #ifdef G4VIS_BUILD_OPENGLXM_DRIVER. |
---|
| 263 | |
---|
| 264 | 22nd November 2005 John Allison (opengl-V07-01-08) |
---|
| 265 | - Added G4OpenGLXmViewerMessenger. |
---|
| 266 | - Corrected text position. |
---|
| 267 | - Made depth test for polyhedron GL_LEQUAL (slightly dominant). |
---|
| 268 | |
---|
| 269 | 17th November 2005 Gabriele Cosmo |
---|
| 270 | - Fixed settings of background style for WIN32 viewers. |
---|
| 271 | |
---|
| 272 | 13th November 2005 John Allison (opengl-V07-01-07) |
---|
| 273 | - Implemented X-Window-style geometry hints in G4OpenGLXViewer. |
---|
| 274 | |
---|
| 275 | 13th October 2005 John Allison (opengl-V07-01-06) |
---|
| 276 | - Allowed any colour background. |
---|
| 277 | - Implemented non-uniform scaling. |
---|
| 278 | - Migration to <sstream>. |
---|
| 279 | |
---|
| 280 | 29th September 2005 John Allison (opengl-V07-01-05) |
---|
| 281 | - Added G4OpenGLViewerDataStore to facilitate access of viewer data by |
---|
| 282 | scene handler. |
---|
| 283 | - Re-implemented transparency button in OpenGLXm. |
---|
| 284 | |
---|
| 285 | 13th September 2005 John Allison (opengl-V07-01-04 - needs visman-V07-01-02) |
---|
| 286 | - Implemented white background for all OGL viewers. |
---|
| 287 | - G4OpenGLSceneHandler.cc: |
---|
| 288 | o Fixed hidden line removal (bug introduced in opengl-V07-01-02). |
---|
| 289 | o Fixed treatment of triangular polygons for drawing of auxiliary/soft lines. |
---|
| 290 | o Corrected GetTextColour(text). |
---|
| 291 | o Corrected GetColour(polyhedron). |
---|
| 292 | |
---|
| 293 | 5th September 2005 John Allison (opengl-V07-01-03) |
---|
| 294 | - Bug fix: stored transparent objects were being lost. |
---|
| 295 | |
---|
| 296 | 2nd September 2005 John Allison (opengl-V07-01-02 - needs visman-V07-01-01) |
---|
| 297 | - Bug fix: edgeflags problem introduced with smooth shading in |
---|
| 298 | opengl-V07-01-00. |
---|
| 299 | - Implementation of a "better algorithm" for the rendering of |
---|
| 300 | transparent polyhedron objects. It renders all opaque objects |
---|
| 301 | first, then renders the transparent objects with the depth buffer in |
---|
| 302 | read-only mode (see OpenGL Programming Guide). It uses the new |
---|
| 303 | facility in G4VSceneHandler::ProcessScene for an optional second pass |
---|
| 304 | of the run-duration models in the scene. Note this algorithm is |
---|
| 305 | still only an approximation. It will still give the wrong blended |
---|
| 306 | colour if two transparent objects are rendered front first. For |
---|
| 307 | nested transparent objects, this is unfortunate, because |
---|
| 308 | G4PhysicalVolumeModel traverses Geant4's mother-daughter hierarchy |
---|
| 309 | in such a way that mothers come first. Also, there is no guaranteed |
---|
| 310 | relationship between the order of rendering and the depth of two |
---|
| 311 | transparent objects if they are at the same level or in different |
---|
| 312 | branches of the hierarchy. Still, the only error will be an |
---|
| 313 | incorrect colour - the objects will still give the appearance of |
---|
| 314 | transparency, so it's a pretty good algorithm. (An even better |
---|
| 315 | algorithm would be to attempt to render the facets in depth order, |
---|
| 316 | deepest first. But how do you calculate the depth - centre of area, |
---|
| 317 | deepest corner? One can still imagine pathalogical cases that would |
---|
| 318 | sometimes give the wrong colour. Also, for stored mode, the order |
---|
| 319 | is fixed in a display list so when the user rotates the view, one |
---|
| 320 | would lose the depth ordering. I think we have to accept that |
---|
| 321 | blending in OpenGL is only ever an approximation. For accurate |
---|
| 322 | blending, use RayTracer.) |
---|
| 323 | |
---|
| 324 | 28th August 2005 John Allison (opengl-V07-01-01) |
---|
| 325 | - Half-way implementation of rendering of transparent polyhedron |
---|
| 326 | objects. In this implementation, no account is taken of the order |
---|
| 327 | of rendering. Transparent objects are rendered with depth testing |
---|
| 328 | off so that objects behind can still be seen. But this means that |
---|
| 329 | opaque objects in front do not obscure them - and they jolly well |
---|
| 330 | should! A better algorithm is to render all opaque objects first, |
---|
| 331 | then render the transparent objects with the depth buffer in |
---|
| 332 | read-only mode (see OpenGL Programming Guide). This is going to |
---|
| 333 | take a little more thought - see opengl-V07-01-02. |
---|
| 334 | |
---|
| 335 | 20th July 2005 John Allison (opengl-V07-01-00) |
---|
| 336 | - Introduced smooth shading, taking advantage of hitherto un-noticed |
---|
| 337 | feature of HepPolyhedron::GetNextFacet that calculates the normals |
---|
| 338 | at each vertex so that curved surfaces are rendered more |
---|
| 339 | realistically (Gouraud shading). |
---|
| 340 | - G4OpenGLImmediateSceneHandler.cc: Removed unnecessary #include's. |
---|
| 341 | - G4OpenGLXmViewer.cc: Fixed to use window size hints. This changes |
---|
| 342 | the default window size. It used to be 400x400, hardcoded in |
---|
| 343 | G4OpenGLXmViewer.cc, but now it picks up the |
---|
| 344 | G4ViewParameters::GetWindowSizeHintX/Y, which defaults to 600x600. |
---|
| 345 | The user may change it on the command line, e.g: |
---|
| 346 | /vis/open OGLSXm 500 |
---|
| 347 | or |
---|
| 348 | /vis/viewer/create ! ! 500 |
---|
| 349 | |
---|
| 350 | 30th May 2005 John Allison (opengl-V07-00-03) |
---|
| 351 | - Fixed compilation problem in OpenGL on SUN. (Replaced multimap by |
---|
| 352 | map of vectors in G4OpenGLFontBaseStore.) |
---|
| 353 | |
---|
| 354 | 4th May 2005 John Allison (opengl-V07-00-02) |
---|
| 355 | - Restored sequence Set/Clear/DrawView in ClearTransientStore. (It |
---|
| 356 | was taken out to prevent recursive calling, but that seems to be OK, |
---|
| 357 | and it is needed to implement refresh at end of event/run.) |
---|
| 358 | |
---|
| 359 | 22nd April 2005 John Allison (opengl-V07-00-01) |
---|
| 360 | - Rationalised work of opengl-V07-00-00. Functionality unchanged. |
---|
| 361 | o G4OpenGLViewer.hh: Created virtual void CreateFontLists(){}. |
---|
| 362 | o In all concrete viewers, added call to CreateFontLists(). |
---|
| 363 | o Moved font code for X to G4OpenGLXViewer::CreateFontLists(). |
---|
| 364 | o There is no longer a need to implement in the XmViewer, since it |
---|
| 365 | now inherits. Thus the font code now only appears once for X. |
---|
| 366 | o Awaiting implementation for WIN32. |
---|
| 367 | |
---|
| 368 | 17th April 2005 John Allison (opengl-V07-00-00) |
---|
| 369 | - Based on vis-V07-00-13. |
---|
| 370 | - Implemented text for X-Windows viewers. Uses glXUseXFont, which |
---|
| 371 | creates display lists for nominated fonts. Simple-minded scheme in |
---|
| 372 | which each viewer creates its own font display lists for a variety |
---|
| 373 | of sizes, which are accessed by the scene handler through a new |
---|
| 374 | class, G4OpenGLFontBaseStore. Affected methods: |
---|
| 375 | G4OpenGLXViewer::CreateMainWindow() |
---|
| 376 | G4OpenGLXmViewer::CreateMainWindow() |
---|
| 377 | G4OpenGLSceneHandler::AddPrimitive (const G4Text& text) |
---|
| 378 | |
---|
| 379 | 18th November 2004 John Allison (opengl-V06-02-07) |
---|
| 380 | - Removed redundant fLastVP from G4OpenGLStoredSceneHandler. |
---|
| 381 | |
---|
| 382 | 15th November 2004 Guy Barrand |
---|
| 383 | - G4OpenGLWin32Viewer::ShowView : glFlush was not sufficient |
---|
| 384 | to see trajectories (for example with N03). Correct so that |
---|
| 385 | ShowView do a FinishView that does : glFlush, wglSwapBuffer |
---|
| 386 | and empty the Windows message queue. |
---|
| 387 | |
---|
| 388 | 22nd September 2004 John Allison (opengl-V06-02-06) |
---|
| 389 | - doxygen output to tmp area. |
---|
| 390 | - Trap non-regular polyhedrons. |
---|
| 391 | |
---|
| 392 | 13th September 2004 Gabriele Cosmo (opengl-V06-02-05) |
---|
| 393 | - G4OpenGLTransform3D.cc: simplified implementation for GetMatrix() |
---|
| 394 | to allow for porting on CLHEP-1.9.X series. |
---|
| 395 | |
---|
| 396 | 23rd July 2004 John Allison |
---|
| 397 | - Draws auxiliary edges if required. |
---|
| 398 | - Added auxiliary edge button. |
---|
| 399 | |
---|
| 400 | 16th July 2004 John Allison (opengl-V06-02-04) |
---|
| 401 | - Refinements to hidden line, hidden surface removal. |
---|
| 402 | |
---|
| 403 | 14th July 2004 John Allison (opengl-V06-02-03) |
---|
| 404 | - Removed superfluous #include "G4VisManager.hh" from G4OpenGLXmViewer.cc. |
---|
| 405 | |
---|
| 406 | 13th July 2004 John Allison (opengl-V06-02-02) |
---|
| 407 | - Hidden line *and* hidden surface removal now works. |
---|
| 408 | |
---|
| 409 | 9th July 2004 John Allison (opengl-V06-02-01) |
---|
| 410 | - Fixed long-standing problem with hidden line removal. |
---|
| 411 | - Improved messages on failure to get visual. |
---|
| 412 | - Added GLX_STENCIL_SIZE explicit request to visual attributes - most |
---|
| 413 | systems provided by default anyway, so no effect. |
---|
| 414 | |
---|
| 415 | 1st July 2004 John Allison (opengl-V06-02-00) |
---|
| 416 | - Rationalised G4OpenGLSceneHandler ready for hidden line removal. |
---|
| 417 | - Bug fix in G4OpenGLXmPanningCallbacks.cc for dolly control. |
---|
| 418 | |
---|
| 419 | 18th June 2004 Gunter Folger (geant4-06-02) |
---|
| 420 | 9th June 2004 Gabriele Cosmo (vis-V06-01-03) |
---|
| 421 | 7th June 2004 Gabriele Cosmo (vis-V06-01-02) |
---|
| 422 | - GNUmakefile and disclaimer changes - see visualization/History. |
---|
| 423 | |
---|
| 424 | 9th April 2004 John Allison (vis-V06-01-01 + interfaces-V06-01-00) |
---|
| 425 | - Tagged OpenGL as below. Joint with interfaces-V06-01-00. |
---|
| 426 | |
---|
| 427 | 7th April 2004 Guy Barrand |
---|
| 428 | - visualization/OpenGL/* : use the G4OpenGL.hh file. |
---|
| 429 | - Added : visualization/OpenGL/include/G4OpenGL.hh to encapsulate |
---|
| 430 | the include of gl/gl.h and gl/glu.h that may be platform dependant. |
---|
| 431 | It permits to rm some #ifdef WIN32 spread in the code. It opens also |
---|
| 432 | the way to the usage of the Apple OpenGL on a Mac. |
---|
| 433 | |
---|
| 434 | 17th February 2004 John Allison (opengl-V06-00-00) |
---|
| 435 | - Fixed bug #581: wrong order of statements in |
---|
| 436 | G4OpenGLXViewer::~G4OpenGLXViewer (see bug report). |
---|
| 437 | |
---|
| 438 | 4th October 2003 Gabriele Cosmo (vis-V05-02-01) |
---|
| 439 | - GNUmakefile: |
---|
| 440 | o replaced "digits+hits" with "digits_hits". |
---|
| 441 | - Coworks with "geometry-V05-02-00" and "digits_hits-V05-02-00". |
---|
| 442 | |
---|
| 443 | 22nd September 2003 John Allison (vis-V05-02-00, greps-V05-02-00) |
---|
| 444 | - Cosmetic change to regularise names: |
---|
| 445 | o changed _Feedback3Dcolo to G4OpenGLXViewerFeedback3Dcolor. |
---|
| 446 | o changed _DepthIndex to G4OpenGLXViewerDepthIndex. |
---|
| 447 | |
---|
| 448 | 23rd June 2003 Guy Barrand (opengl-V05-01-02) |
---|
| 449 | - Commit a first implementation of G4OpenGLWin32Viewer. |
---|
| 450 | |
---|
| 451 | 10th June 2003 Gabriele Cosmo (opengl-V05-01-01) |
---|
| 452 | - More fixes for warnings in viewers classes. |
---|
| 453 | - Added inclusion of <windows.h> for WIN32 platforms when GL headers |
---|
| 454 | are included. |
---|
| 455 | |
---|
| 456 | 05th June 2003 Gabriele Cosmo (opengl-V05-01-00) |
---|
| 457 | - Fixes for porting compilation on WIN32: |
---|
| 458 | o G4OpenGLWin32Viewer[.hh.cc]: removed inclusion of <GL/glx.h>. |
---|
| 459 | o G4OpenGLViewer.cc: replaced local variables near/far with pnear/pfar |
---|
| 460 | since declared 'obsolete' in WIN32 platforms. |
---|
| 461 | |
---|
| 462 | 27th November 2002 John Allison (vis-V04-01-08) |
---|
| 463 | - Improved algorithm of CompareForKernelVisit. |
---|
| 464 | |
---|
| 465 | 11th November 2002 John Allison (opengl-V04-01-02) |
---|
| 466 | - Corrected inclusion of G4OpenGLXViewer #ifdef X_DRIVER. |
---|
| 467 | - Added G4OpenGLSceneHandler::AddThis for trajectories and hits - simply |
---|
| 468 | call default but there as a marker and encourager. |
---|
| 469 | - Added tracking and digits+hits/hits to GNUmakefile. |
---|
| 470 | |
---|
| 471 | 16th October 2002 John Allison (opengl-V04-01-01) |
---|
| 472 | - Fix for WIN32. Now compiles but viewer not implemented. |
---|
| 473 | |
---|
| 474 | 24th June 2002 John Allison (opengl-V04-01-00) |
---|
| 475 | - Further cosmetic changes in G4OpenGLXViewer.cc for DEC compiler. |
---|
| 476 | |
---|
| 477 | 10th June 2002 John Allison (opengl-V04-00-03) |
---|
| 478 | - Cosmetic changes for SUN-CC in G4OpenGLXmConvenienceRoutines.cc. |
---|
| 479 | |
---|
| 480 | 6th June 2002 John Allison (opengl-V04-00-02) |
---|
| 481 | - Cosmetic changes for GNU compiler in G4OpenGLXViewer.cc. |
---|
| 482 | |
---|
| 483 | 23rd February 2002 John Allison (opengl-V04-00-01) |
---|
| 484 | - Changes to encourage compilation on Windows in preparation for |
---|
| 485 | implementation of G4OpenGLWin32Viewer. Removed spurious includes of |
---|
| 486 | glx.h, unistd.h and assert.h. |
---|
| 487 | |
---|
| 488 | 24th August 2001 John Allison (vis-V03-02-13) |
---|
| 489 | - Limited the printing of warnings in |
---|
| 490 | G4OpenGLSceneHandler::AddPrimitive (const G4Text& text). |
---|
| 491 | |
---|
| 492 | 14th August 2001 John Allison (vis-V03-02-11) |
---|
| 493 | - Improved KernelVisitDecision. |
---|
| 494 | - Fixed a few small bugs in multiple "stored" viewers, but see next item. |
---|
| 495 | - There's an outstanding bug in OpenGL Stored. If there is more than |
---|
| 496 | one viewer controlled by a scene handler, after a ClearStore on the |
---|
| 497 | scene handler, e.g., with /vis/scene/notifyHandlers, the first |
---|
| 498 | viewer to get refreshed should trigger the display list rebuild, but |
---|
| 499 | the second need not. However, when the second viewer's turn comes, |
---|
| 500 | the display lists are there, and are called, e.g., |
---|
| 501 | G4OpenGLStoredXViewer::DrawView calls |
---|
| 502 | G4OpenGLStoredViewer::DrawDisplayLists that calls glCallList, but |
---|
| 503 | nothing appears on the screen. To overcome this there is some |
---|
| 504 | temporary code in G4VViewer::NeedKernelVisit which marks *all* |
---|
| 505 | viewers to force a rebuild. To see the symptoms, comment out that |
---|
| 506 | temporary code and issue these commands: |
---|
| 507 | /vis/verbose c |
---|
| 508 | /control/verbose 2 |
---|
| 509 | /vis/scene/create |
---|
| 510 | /vis/scene/add/volume |
---|
| 511 | /vis/sceneHandler/create OGLSX |
---|
| 512 | /vis/viewer/create ! ! 1 |
---|
| 513 | /run/beamOn |
---|
| 514 | /vis/viewer/create ! ! 1 |
---|
| 515 | /vis/viewer/select viewer-0 |
---|
| 516 | /vis/viewer/viewpointThetaPhi 20 20 |
---|
| 517 | /vis/viewer/select viewer-1 |
---|
| 518 | /vis/viewer/viewpointThetaPhi 40 40 |
---|
| 519 | /vis/viewer/set/style surface |
---|
| 520 | /vis/viewer/refresh |
---|
| 521 | /vis/viewer/select viewer-0 |
---|
| 522 | /vis/viewer/refresh |
---|
| 523 | /vis/viewer/select viewer-1 |
---|
| 524 | /vis/viewer/set/style wireframe |
---|
| 525 | /vis/scene/notifyHandlers |
---|
| 526 | You may have to do this too: |
---|
| 527 | /vis/viewer/select viewer-0 |
---|
| 528 | /vis/scene/notifyHandlers |
---|
| 529 | One of the viewers is empty. Curious!! |
---|
| 530 | |
---|
| 531 | 9th August 2001 John Allison (vis-V03-02-10-00) |
---|
| 532 | - Implemented G4OpenGLStoredSceneHandler::ClearTransientStore() |
---|
| 533 | - Removed G4OpenGLSceneHandler::AddPrimitive (const G4Polymarker&) (it only |
---|
| 534 | invoked G4VSceneHandler::AddPrimitive (const G4Polymarker&) which is |
---|
| 535 | picked up by inheritance anyway. |
---|
| 536 | - Removed lots of unnecessary header files from G4OpenGLStoredSceneHandler.cc. |
---|
| 537 | - Corrected order of calling base class functions in |
---|
| 538 | G4OpenGLStoredSceneHandler::Begin/EndModeling. |
---|
| 539 | |
---|
| 540 | 24th July 2001 John Allison (vis-V03-02-06) |
---|
| 541 | - G4OpenGLSceneHandler::AddPrimitive (const G4Text&) handles transformation. |
---|
| 542 | |
---|
| 543 | 14th July 2001 John Allison (opengl-V03-02-00) |
---|
| 544 | - Fixed crash in optimised mode: added Initialise() to viewers so |
---|
| 545 | that windows are opened after viewers are fully constructed. |
---|
| 546 | |
---|
| 547 | 2nd April 2001 John Allison (opengl-V03-00-01 wrt vis-V03-00-09) |
---|
| 548 | - Tidied G4OpenGLXmViewer callback code. Removed superfluous header files. |
---|
| 549 | |
---|
| 550 | 7th March 2001 John Allison |
---|
| 551 | - Changed char* to const char* in many places and that gave problems in |
---|
| 552 | calls to Xt and Xm. Hope all's OK. Differences: |
---|
| 553 | cvs diff -r vis-V03-00-06 vis-V03-00-07 |
---|
| 554 | |
---|
| 555 | 25th January 2001 John Allison (opengl-V03-00-00) |
---|
| 556 | - Implemented running re-calculation of up-vector in the case of "object |
---|
| 557 | rotation" (lights move with camera) to prevent "flipping" of view when |
---|
| 558 | camera passes through up-vector. Note that the default is "camera |
---|
| 559 | rotation" (lights do not move with camera, i.e., remain fixed relative |
---|
| 560 | to object) so the default is that this "flipping" can happen. To set |
---|
| 561 | "object rotation" (lights move with camera) use |
---|
| 562 | /vis/lights/move_with_camera true (soon to be |
---|
| 563 | /vis/viewer/set/lights move-with-camera) or click "Object" radio button |
---|
| 564 | on Rotation Panel in OpenGLXm mode. |
---|
| 565 | - Changed some objects to references for efficiency. E.g.: |
---|
| 566 | const G4Vector3D& vp = pView->fVP.GetViewpointDirection ().unit (); |
---|
| 567 | |
---|
| 568 | 22nd May 2000 John Allison (opengl-V01-01-00) |
---|
| 569 | - Fixed slow response of 2nd window of OpenGLXm. Worked around Mesa bug |
---|
| 570 | by sharing static visuals in G4OpenGLXViewer (Guy Barrand): |
---|
| 571 | static XVisualInfo* vi_single_buffer; |
---|
| 572 | static XVisualInfo* vi_double_buffer; |
---|
| 573 | - Removed ChooseVisual from G4OpenGLXmViewer.cc - done in base class |
---|
| 574 | G4OpenGLXViewer. |
---|
| 575 | - Protected double deletion of window in destructors of G4OpenGLXmViewer |
---|
| 576 | and G4OpenGLXViewer (Guy Barrand). |
---|
| 577 | - Changed requested bits per colour to r,g,b = 1,1,1 in G4OpenGLViewer.cc. |
---|
| 578 | - Corrected order of CreateMainWindow() and InitializeGLView() in X*Viewer |
---|
| 579 | constructors. |
---|