source: trunk/source/visualization/OpenInventor/History@ 1092

Last change on this file since 1092 was 1090, checked in by garnier, 16 years ago

update

File size: 17.0 KB
Line 
1$Id: History,v 1.100 2009/07/24 10:21:14 lgarnier Exp $
2-------------------------------------------------------------------
3
4 =========================================================
5 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
6 =========================================================
7
8 Category History file
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
20History file for visualization/OpenInventor
21-------------------------------------------
22
2324 July 2009, Laurent Garnier
24 - Remove Geant4_gl2ps.h gl2ps.cc gl2ps.h which were copied in external/gl2ps
25 in february but forgot to remove them from OpenInventor
26
2718 February 2009, Laurent Garnier (openinventor-V09-02-01)
28 - Bug fix in gl2ps drawing
29
3016 February 2009, Laurent Garnier
31 - Modifications in GNUMakefile for gl2ps.
32 - SoGL2PSAction Modified.
33 - G4OpenInventorViewer.cc add a protection on file writing in gl2ps
34
3530th April 2008 John Allison (openinventor-V09-01-01)
36- Fixes more gcc-4.3.0 compiler warnings.
37
384th April 2008 John Allison (openinventor-V09-01-00)
39- Fixes most gcc-4.3.0 compiler warnings.
40
4123rd October 2007 Gabriele Cosmo
42- Initialise local vectors in SoPolyhedron.cc to fix compilation warnings
43 on gcc-4.2.2 for use of non-initialised values.
44
453rd April 2007 John Allison (openinventor-V08-02-02 - needs visman-V08-02-03)
46- Introduced picking control. Default is "true" for Open Inventor.
47
4825th March 2007 John Allison (openinventor-V08-02-01)
49- G4OpenInventorSceneHandler: Introduced AddProperties. Rationalises.
50- G4OpenInventorViewer.cc: Added scale factor to list of changes
51 requiring kernel visit.
52
535th January 2007 John Allison (openinventor-V08-02-00)
54- Moved LoadAtts to vis management.
55
565th November 2006 John Allison (openinventor-V08-01-04)
57- Protected against zero material pointer.
58
592nd November 2006 John Allison (openinventor-V08-01-03)
60- Rationalised G4Att loading and extended picking to hits.
61
621st November 2006 John Allison (openinventor-V08-01-02)
63- Follow changes to greps-V08-01-09: G4AttCheck/Holder rationalisation.
64
6526th October 2006 John Allison (openinventor-V08-01-01)
66- Added SoG4LineSet, SoG4MarkerSet and SoG4Polyhedron - classes extended to
67 include G4Atts (G4AttValues and G4AttDefs) for picking.
68- G4OpenInventorSceneHandler.cc: Load lines, markers and polyhedron objects
69 with G4Atts.
70- G4OpenInventorViewer.cc: print G4Atts on picking.
71
7229th August 2006 John Allison (openinventor-V08-01-00)
73- G4OpenInventorViewer::CompareForKernelVisit: Rationalisation. This
74 assumes use of generic clipping (sectioning, slicing, DCUT,
75 cutaway). If a decision is made to implement locally, this will
76 need changing. See G4OpenGLViewer::SetView,
77 G4OpenGLStoredViewer.cc::CompareForKernelVisit and
78 G4OpenGLStoredSceneHander::CreateSection/CutawayPolyhedron.
79
804th June 2006 Joseph Perl (openinventor-V08-00-05)
81- This tag includes all the changes below.
82
832 June 2006 Guy Barrand :
84- G4OpenInvenot, G4OpenInvenotXt, G4OpenInvenotWin : have an Initialize
85 method in order to init Xt and Inventor only is really used
86 (when creating a viewer or a scene handler).
87
8819th April 2006 Gabriele Cosmo (openinventor-V08-00-04)
89- Use cmath instead of math.h.
90
9128th March John Allison (openinventor-V08-00-03)
92- Cosmetic.
93
9421st March John Allison (openinventor-V08-00-02)
95- Rationalised G4OpenInventorSceneHandler:
96 o Introduced GeneratePrerequisites.
97 o Uses dynamic_cast<G4PhysicalVolumeModel*>(fpModel) instead
98 of fpCurrentPV, etc.
99 o Uses G4VSceneHandler utility functions,
100 GetApplicableVisAttributes, GetColour, GetTextColour,
101 GetMarkerSize, GetDrawingStyle, GetAuxEdgeVisible, where possible.
102 o Revision 1.43: messy version with original code commented out.
103 o Revision 1.44 (.cc) and 1.28 (.hh) (tagged): tidied versions.
104- Investigated G4OpenInventorViewer:
105 o Changed: DrawDetector and UpdateScene. No noticeable effect!
106
10720th March John Allison
108- G4OpenInventorSceneHandler:
109 o Bug fix for transient solids.
110 o Replaced some code in AddPrimitive(const G4Polymarker&) by GetMarkerSize.
111 o Attempt to finish AddPrimitive (const G4Text&) - still draws at origin.
112
11330th January 2006 John Allison (openinventor-V08-00-01)
114- Implemented drawn volume path. Needs modeling-V08-00-01. Scene
115 graph now corresponds to drawn, i.e., non-culled geometry.
116 Inability to find (drawn) mothers shouldn't happen now, and it
117 triggers an error message.
118
11926th January 2006 John Allison (openinventor-V08-00-00)
120- Coworks with visman-V08-00-04 (removed fModified).
121- Removed references to fModified.
122
12320th December 2005 Guy Barrand
124- SoAlternateRepAction.cc : add the #ifdef G4VIS_BUILD_OI_DRIVER.
125
12612th December 2005 John Allison
127- G4OpenInventorSceneHandler.cc: Pick up colour and transformation
128 correctly for non-physical-volume solids.
129 o G4OpenInventorSceneHandler::AddPrimitive (const G4Polyhedron&):
130 Added code to pick up colour if LV and PV pointers are zero.
131 o G4OpenInventorSceneHandler::BeginPrimitives: Pick up
132 transformation if LV and PV pointers are zero.
133 o G4OpenInventorSceneHandler::PreAddSolid: Added code to pick up
134 colour if LV and PV pointers are zero and removed return statement
135 so that transformation is picked up too.
136
13730th November 2005 Gabriele Cosmo (openinventor-V07-01-04)
138- Trivial fix to SoPolyhedron for support of CLHEP-2.0.X series.
139
14015th November 2005 Guy Barrand (openinventor-V07-01-03)
141- G4OpenInventorXtViewer : handle fVP.GetXGeometryString().
142- G4OpenInventorSceneHandler : handle global scale view parameter.
143 Done in BeginPrimitives and PreAddSolid by doing a
144 SbMatrix::multRight(sbScale) to the incoming global G4Transform3D matrix.
145- G4OpenInventor[Xt,Win]Viewer : handle set background. Done
146 in the overloaded SetView method.
147
14817th October 2005 Guy Barrand
149- G4OpenInventorViewer::G4OpenInventorViewer : read a g4view.iv
150 file at creating of a view. If found, the scene graph in g4view.iv
151 if added at head of the overall scene graph. This permits easy
152 out of band customization of the scene without having to touch
153 the code.
154- Modification in order to save geometry in an Inventor file.
155 Addition of an "alternateRep" for the SoPolyhedron (see Inventor doc).
156 Addition of an "alternateRep" for the SoDetectorTreeKit.
157 Addition of the SoAlternaterRepAction to traverse a scene graph
158 and construct / delete the alternate reps.
159 Modification of G4OpenInventorViewer::WriteInventor to write the
160 alternateRep of the SoPolyhedron and then save geometry in a
161 .iv file by using Inventor standard lib. In particular the produced
162 .iv files are readable by the ivview standard tool.
163
1642nd September 2005 John Allison (openinventor-V07-01-02)
165- Corrected treatment of edgeflags.
166
1671st August 2005 Gabriele Cosmo (openinventor-V07-01-01)
168- Fixed compilation errors and warnings on gcc-4.0.0. Modified files:
169 SoDetectorTreeKit.cc, gl2ps[.h.cc].
170
17120th July 2005 John Allison (openinventor-V07-01-00)
172- Changed Geant4_SoPolyhedron to construct from G4Polyhedron rather
173 than its base class, HepPolyhedron, for possible future
174 developments. Functionality unchanged.
175
1762nd June 2005 John Allison (openinventor-V07-00-02)
177- Changed char* to const char* in gl2psMsg.
178
17927th May 2005 John Allison (openinventor-V07-00-01)
180- Implemented marker sizes.
181
18225th May 2005 Guy Barrand (openinventor-V07-00-00)
183- G4OpenInventorTransform3D.cc : use the CLHEP::Transform3D::operator(i,j)
184 to initialize the m array in order to be compatible with new versions
185 of CLHEP.
186
18719th March 2005 Guy Barrand
188- SoCounterAction.cc : remove extra ';' at end of SO_ACTION_SOURCE.
189 Code with ';;' does not compile with the "-pedantic" mode of g++-3.4.
190
19126th November 2004 Guy Barrand (openinventor-V06-02-02)
192- G4OpenInventorXtViewer, SoPolyhedron, SoCounterAction.h :
193 correct some warnings on g++-3.2.1 (reported by Tom Roberts).
194
19525th November 2004 Guy Barrand
196- G4OpenInventor[Viewer,SceneHandle] : handle aux edges.
197- G4OpenInventorViewer : in SetSolid, etc... avoid to do a FinishView
198 that will do a viewAll that may displace the camera.
199- G4OpenInventorViewer : put the camera under a group and put
200 a sensor (fGroupCameraSensor) on the group to detect that the viewer
201 changed the camera type.
202- G4OpenInventor[Xt,Win]Viewer : GetCamera() to get camera of the viewer.
203- G4OpenInventorViewer : delete fSoCameraSensor.
204
20524th November 2004 John Allison
206- Fixed SetView to respond to view parameters and CameraSensorCB to
207 provide view parameters. Target point not quite right. Only for
208 orthogonal view so far.
209
21024th November 2004 Guy Barrand
211- So*.cc : have #ifdef G4VIS_BUILD_OI_DRIVER instead of OIX_DRIVER !!!
212- G4OpenInventor[Xt,Win]Viewer, SceneHandler : handle reduced wire frame
213 at the level of the view.
214- SoPolyhedron : reducedWireFramw field.
215
21623th November 2004 Guy Barrand
217- So*.cc : have #ifdef G4VIS_BUILD_OIX_DRIVER.
218
21922th November 2004 Guy Barrand
220- G4OpenInventor[Xt,Win]Viewer : "Set preview", "Set preview and full"
221 menu items.
222- G4OpenInventorViewer : count nodes and shapes.
223- SoCounterAction : to count nodes.
224- G4OpenInventorViewer : SetSolid, SetWireFrame : arrange to avoid a SetView
225 for the moment. It will move the camera ! Arrange to not clear the
226 transient store.
227- G4OpenInventorViewer : commit commented SoNodeSensor on fSoCamera.
228- G4OpenInventorXtViewer : have a help dialog.
229- G4OpenInventorSceneHandler : delete the SbMatrix returned
230 by G4OpenInventorTransform3D::GetSbMatrix. Not done before !
231- G4OpenInventorTransform3D : use SbMatrix instead of SoSFMatrix.
232- G4OpenInventorSceneHandler : cache SoResetTransform.
233- SoStyleCache : destructor protected.
234- G4OpenInventor[Xt,Win]Viewer : Help pulldown menu.
235- G4OpenInventorViewer : in "Scene graph stats", count triangles,lines,points.
236- G4OpenInventorViewer : set auto refresh by default.
237
23821th November 2004 Guy Barrand
239- G4OpenInventor[Xt,Win]Viewer, SceneHandler : add a simple picking that
240 dumps picked SoNode address, type and name.
241- G4OpenInventor[Xt,Win]Viewer : "Help controls" menu item.
242- G4OpenInventorSceneHandler::PreAddThis : comment the "ERROR leaf protocal"
243 message. Misleading to users.
244
24519th November 2004 Guy Barrand
246- G4OpenInventorSceneHandler::ClearStore: clear the fSeparatorMap.
247
24818th November 2004 Guy Barrand
249- G4OpenInventorSceneHandler::PreAddThis : handle viewer style.
250- G4OpenInventorView : have an SoOrthographicCamera
251 and a first implementation of SetView.
252- Removed redundant fLastVP from G4OpenInventorSceneHandler (JA).
253
25417th November 2004 Guy Barrand
255- G4OpenInventorSceneHandler : rm the AddThis(G4Box,....). We use
256 then only the generic AddPrimitive(G4Polyhedron). Much simpler.
257
25815th November 2004 Guy Barrand
259- G4OpenInventorViewer : //FIXME comment out on
260 f[Default]VP.SetCulling(false) by default. Not convinced that it is
261 the right thing to do.
262- G4OpenInventorViewer : have f[Default]VP.SetCulling(false) by default.
263- On viewer have "Erase detector, event" menuitems for Xt and Win.
264- G4OpenInventorWinViewer : have it inheriting G4OpenInventorViewer.
265- G4OpenInventorSceneHandler : WIN32 : correct some warnings.
266
26714th November 2004 Guy Barrand
268- G4OpenInventorSceneHandler.cc : handle transparency.
269- SoImageWriter, SbPainter, SbPainterPS : material to produce pixmap PS.
270- G4OpenInventorViewer : base class for Inventor viewers.
271- Menuitem "Etc/Triangles" : to count rendered triangles.
272- Menuitem "File/IV" : to write the scene in an inventor file.
273
27414th November 2004 John Allison (openinventor-V06-02-01)
275- Tag on branch openinventor-V06-02-01-branch.
276- Consolidating the changes below, plus:
277 - forcing culling off by default;
278 - forcing solid mode;
279 so that the user:
280 - sees all of the requested geometry volume tree;
281 - can use pointer button and CTRL-left-click to uncover (SHIFT-left-click
282 to re-cover);
283 - can use the hand button and right-click to get wireframe.
284- Removed G4OpenInventorSceneHandler::EndModeling (empty function).
285
28612th November 2004 Guy Barrand
287- G4OpenInventor.cc : initClass of Geant4_SoPolyhedron.
288- G4OpenInventorWinViewer.cc : WM_COMMAND : filter only messages
289 from the window viewer menu.
290- G4OpenInventorSceneHandler.cc : rm G4Polymarker::line handling.
291
29211th November 2004 Guy Barrand
293- Add SoPolyhedron that permits to visualize directly HepPolyhedron.
294- G4OpenInventorSceneHandler::AddThis : uses the generic
295 SoPolyhedron. Modeling is wireFrame by default.
296 Solid modeling is used only in case visAtb.SetForceSolid(true).
297- G4OpenInventorSceneHandler::PreAddThis : correct a flaw
298 in the non-leaf part ; in case mother not found in fSeparatorMap
299 the SoDetectorTreeKit were added nowhere ! This induced that
300 exaN03Vis5 displayed no gemetry.
301- SoStyleCache : permit to cache commonly used colors, line styles and
302 light models.
303- G4OpenInventorSceneHandler : use SoStyleCache to minimize number of nodes.
304- End of the first world war.
305- Death of Arrafat.
306
30710th November 2004 Guy Barrand
308- SoMarkerSet, SoGL2PSAction : corrections to work with SGI Inventor.
309- gl2ps : gl2psPrintPostScriptPixmap : fix nbit=2,4 width truncation.
310 (On SoMarkerSet, the last column of pixmapswere missing ).
311
3129th November 2004 Guy Barrand
313- WIN32 : G4OpenInventorWinViewer : have a File pulldown menu
314 with an Escape button to quit secondary Windows event loops.
315- Xt : G4OpenInventorXtViewer : in destructor comment (and //FIXME)
316 the "delete fViewer". With SGI, it hangs.
317- Xt : Have a menubar and put escape button in the File pulldown menu.
318- SoGL2PSAction, gl2ps : action to handle PostScript production with gl2ps.
319- Xt : "PostScript" menu item.
320- WIN32 : "PostScript" menu item.
321
3228th November 2004 Guy Barrand
323- WIN32 : Have HEPVis/SbGL.h to access GL.h properly on Windows.
324 Use by SoMarkerSet.cc.
325- G4OpenInventor.cc : initialize SoMarkerSet.
326- G4OpenInventorWinViewer : correct bad viewer look and feel.
327
3287th November 2004 Guy Barrand
329- Have SoMarkerSet.h, .cc in the repository.
330- G4OpenInventorSceneHandler :
331 Have a AddPrimitive(G4Polymarker) using SoMarkerSet.
332 SoMarkerSet draws markers in the frame buffer. It is much
333 more performant than having SoSphere and SoCube for markers.
334
3356th November 2004 Guy Barrand
336- G4OpenInventorXtViewer : restore the escape button.
337 This button is put in the "app buttons" of the SoXtExaminerViewer.
338 (The "app buttons" are put in the left border of decoration).
339 It is ok with SGI-2.1.510 and recent SoXt of Coin,
340
34121th July 2004 Guy Barrand (openinventor-V06-02-00)
342- G4OpenInventorXtViewer : add include X11/Shell.h to have
343 XtNgeometry that may not come throught the includes of some
344 Inventor implementation.
345
34608th April 2004 Guy Barrand (openinventor-V06-01-00)
347- Bring in the repository the necessary HEPVis code. In fact few of HEPVis
348 is used in this G4 driver. Then HEPVis is no more needed.
349 Note that, to avoid clashes of G4/vis within experiments, the HEPVis
350 node are protected by some : #define Geant4_<node> <node>. Then, for
351 example, within the G4OpenInventor lib there are Geant4_SoBox, etc...
352 (and not SoBox,... that may clash with other HEPVis code in experiments).
353- Have code to run on Windows.
354- Split Viewer to have G4OpenInventorXtViewer and G4OpenInventorWinViewer.
355- Split G4OpenInventor to have G4OpenInventorXt and G4OpenInventorWin.
356 Xt and Win (and not X and Win32 like in vis/OpenGL) to follow
357 the conventions found in the OpenInventor world.
358
35929th October 2003 Cosmo Gabriele (openinventor-V05-02-00)
360- Patch in G4OpenInventorSceneHandler in PreAddThis() to cope with changes
361 introduced in G4VPhysicalVolume in "geant4-05-02-ref-04", where pointer to
362 mother physical-volume was removed.
363 Separators map now refers to logical-volumes and is no longer built
364 iteratively for each call to the method as it was done in an attempt
365 implemented previously.
366 NOTE: requires more investigation and eventually a revision of the
367 adopted algorithm.
368- Cleared usage of 'NULL' in favour of '0'.
369
3704th October 2003 Cosmo Gabriele (vis-V05-02-01)
371- Simplified GNUmakefile.
372
37314th January 2003 John Allison (openinventor-V05-00-00)
374- Removed vertex.transform (*fpObjectTransformation) from
375 G4OpenInventorSceneHandler::AddPrimitive (const G4Polyhedron& polyhedron).
376 Symptom was that polyhedron objects were being transformed twice.
377 The transformation is stored in
378 G4OpenInventorSceneHandler::PreAddThis
379 ...
380 G4OpenInventorTransform3D oiTran (objectTransformation);
381 SoSFMatrix* oiMat = oiTran.GetOIMatrix();
382 SoMatrixTransform* xform = new SoMatrixTransform;
383 xform->matrix.setValue(oiMat->getValue());
384 currentSeparator->addChild(new SoResetTransform);
385 currentSeparator->addChild(xform);
386}
387
38827th November 2002 John Allison (vis-V04-01-08)
389- Improved algorithm of CompareForKernelVisit.
390
39114th August 2001 John Allison (vis-V03-02-11)
392- Improved KernelVisitDecision - but see note therein.
Note: See TracBrowser for help on using the repository browser.