source: trunk/source/visualization/OpenGL/History @ 1324

Last change on this file since 1324 was 1324, checked in by garnier, 14 years ago

fix warnings

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