Changeset 609 for trunk/geant4/visualization
- Timestamp:
- Nov 16, 2007, 11:59:21 AM (18 years ago)
- Location:
- trunk/geant4/visualization
- Files:
-
- 11 edited
-
History (modified) (2 diffs)
-
OpenGL/History (modified) (3 diffs)
-
OpenInventor/History (modified) (2 diffs)
-
OpenInventor/include/SoG4Polyhedron.h (modified) (2 diffs)
-
OpenInventor/src/SoPolyhedron.cc (modified) (2 diffs)
-
management/History (modified) (2 diffs)
-
vis.mac (modified) (1 diff)
-
visTutor/exN03Vis12.loop (modified) (1 diff)
-
visTutor/exN03Vis12.mac (modified) (1 diff)
-
visTutor/exN03Vis13.loop (modified) (1 diff)
-
visTutor/gui.mac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/History
r593 r609 1 $Id: History,v 1.41 4 2007/07/10 17:54:09allison Exp $1 $Id: History,v 1.417 2007/11/15 10:18:32 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 24 24 History file for visualization category 25 25 --------------------------------------- 26 27 15th November 2007 John Allison 28 - opengl-V09-00-03: Re-introduced Qt files. (All files now properly protected.) 29 30 13th November 2007 John Allison (vis-V09-00-02) 31 - Removed OpenGL Qt files from tag. File are still at head - need fixing. 32 33 10th November 2007 John Allison (vis-V09-00-01) 34 - opengl-V09-00-01: Minor improvements in design and messaging. 35 - modeling-V09-00-00: Minor improvements in messaging. 36 - visman-V09-00-01:Minor improvement in messaging. 26 37 27 38 10th July 2007 John Allison (vis-V09-00-00) -
trunk/geant4/visualization/OpenGL/History
r593 r609 1 $Id: History,v 1. 94 2007/08/21 14:05:50 allisonExp $1 $Id: History,v 1.100 2007/11/16 10:41:54 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 21 21 ------------------------------------- 22 22 23 <<<<<<< History 24 15 Nov 2007, Laurent Garnier 25 - G4UIQt,G4Qt : Adding a GEANT4_QT_DEBUG flag to hide all debug messages 26 - G4UIQt,G4Qt : Compilation improvements for Qt3 27 - G4UIQt,G4Qt : Minors corrections on G4UIQt helpWidget 28 29 14 Nov 2007, Laurent Garnier 30 - G4OpenGLStoredQtViewer.cc : Correction of a bug with mouse move event in 31 Qt4 32 - G4OpenGLQtExportDialog_moc.cc, G4OpenGLQtViewer.cc, G4OpenGLQtViewer_moc.cc : 33 Adding protection for Qt version between 4.0 and 4.2 34 35 13 Nov 2007, Laurent Garnier 36 - G4UIQt,G4Qt : Moving all moc in one big file interface/G4UIQT_moc.cc, 37 including Qt3 and Qt4 moc support 38 39 09 Nov 2007, Laurent Garnier 40 - G4UIQt,G4Qt : Change all include directive to be compatible with Qt3 41 42 08 Nov 2007, Laurent Garnier 43 - moc_G4OpenGLQtExportDialog.cc move in G4OpenGLQtExportDialog_moc.cc 44 - moc_G4OpenGLQtViewer.cc move to G4OpenGLQtViewer_moc.cc 45 46 27 Sept 2007, Laurent Garnier 47 - Adding sur files for G4UIQt driver : 48 - G4OpenGLImmediateQt.cc 49 - G4OpenGLImmediateQtViewer.cc 50 - G4OpenGLQtExportDialog.cc 51 - G4OpenGLQtViewer.cc 52 - G4OpenGLStoredQt.cc 53 - G4OpenGLStoredQtViewer.cc 54 - moc_G4OpenGLQtExportDialog.cc 55 - moc_G4OpenGLQtViewer.cc 56 57 ======= 58 15th November 2007 John Allison (opengl-V09-00-03) 59 - Re-introduced Qt files, now properly protected by cpp flags. 60 - cpp flags also added to some other files not previously properly protected. 61 62 13th November 2007 John Allison (opengl-V09-00-02) 63 - Removed Qt files from tag. File are still at head - need fixing. 64 65 10th November 2007 John Allison (opengl-V09-00-01) 66 - Moved WinSize_x, y to base class G4OpenGLViewer. 67 - Minor improvement in guidance for /vis/ogl/printEPS. 68 69 28th September 2007 lgarnier 70 - first import of G4UI Qt files : Do not try to compil them 71 72 >>>>>>> 1.99 23 73 21st August 2007 John Allison (opengl-V09-00-00) 24 74 - Removed redundant G4OpenGLXViewerMessenger. … … 27 77 - G4OpenGLSceneHandler and G4OpenGLXViewerMessenger: 28 78 Fixed gcc-4.1.2 compiler warnings. 29 30 G4OpenGLXViewer: Trapped glXMakeCurrent in Initialise function.31 79 32 80 25th May 2007 John Allison (opengl-V08-03-02) -
trunk/geant4/visualization/OpenInventor/History
r593 r609 1 $Id: History,v 1.9 3 2007/04/03 13:35:48 allisonExp $1 $Id: History,v 1.94 2007/10/23 14:56:35 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 20 20 History file for visualization/OpenInventor 21 21 ------------------------------------------- 22 23 23rd October 2007 Gabriele Cosmo 24 - Initialise local vectors in SoPolyhedron.cc to fix compilation warnings 25 on gcc-4.2.2 for use of non-initialised values. 22 26 23 27 3rd April 2007 John Allison (openinventor-V08-02-02 - needs visman-V08-02-03) -
trunk/geant4/visualization/OpenInventor/include/SoG4Polyhedron.h
r593 r609 25 25 // 26 26 // 27 // $Id: SoG4Polyhedron.h,v 1. 2 2006/12/13 15:49:56 gunterExp $28 // GEANT4 tag $Name: geant4-09-00-ref-01$27 // $Id: SoG4Polyhedron.h,v 1.3 2007/09/17 16:08:00 gcosmo Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // John Allison 26th October 2006 … … 35 35 36 36 // Inheritance : 37 #include <Geant4_SoPolyhedron.h>37 #include "Geant4_SoPolyhedron.h" 38 38 #include "G4AttHolder.hh" 39 39 -
trunk/geant4/visualization/OpenInventor/src/SoPolyhedron.cc
r529 r609 129 129 SoTextureCoordinateElement::FUNCTION); 130 130 const SoTextureCoordinateElement *tce = NULL; 131 SbVec4f texCoord ;131 SbVec4f texCoord(0.,0.,0.,0.); 132 132 if (useTexFunction) { 133 133 tce = SoTextureCoordinateElement::getInstance(state); … … 416 416 int32_t* coords = new int32_t[ncoord]; 417 417 418 SbVec3f pvb ,pve;418 SbVec3f pvb(0.,0.,0.), pve(0.,0.,0.); 419 419 420 420 SbBool empty = TRUE; -
trunk/geant4/visualization/management/History
r593 r609 1 $Id: History,v 1.10 1 2007/07/10 17:52:25allison Exp $1 $Id: History,v 1.102 2007/11/10 15:05:46 allison Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 29 10th November 2007 John Allison (visman-V09-00-01) 30 - G4VisManager.cc: Minor improvement in messaging. 31 - G4VisCommandsScene.cc: Improvements in /vis/scene/endOfEventAction messaging. 28 32 29 33 10th July 2007 John Allison (visman-V09-00-00) -
trunk/geant4/visualization/vis.mac
r562 r609 18 18 # Use this open statement to get an .eps and .prim files 19 19 # suitable for viewing in DAWN. 20 /vis/open DAWNFILE20 ###/vis/open DAWNFILE 21 21 # 22 22 # Use this open statement instead for OpenGL in immediate mode. -
trunk/geant4/visualization/visTutor/exN03Vis12.loop
r562 r609 2 2 /vis/ogl/set/startTime {startTime} ns {timeRange} ns 3 3 # Print eps file 4 #/vis/ogl x/printEPS4 #/vis/ogl/printEPS -
trunk/geant4/visualization/visTutor/exN03Vis12.mac
r562 r609 1 1 ####################################################################### 2 # MACRO FILE NAME: exN03Vis12.mac #2 # MACRO FILE NAME: exN03Vis12.mac # 3 3 # # 4 # AUTHOR(S): Laurent Garnier#4 # AUTHOR(S): John Allison # 5 5 # # 6 # DATE: July 01, 2007#6 # DATE: 16th August 2006 # 7 7 # # 8 # CONTENTS: A basic macro for demonstrating Inventor driver#8 # CONTENTS: A basic macro for demonstrating time slicing # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac #10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac # 11 11 # # 12 # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL,Qt # 13 # HEPVis # 14 # Inventor (TGS or SoFree) # 12 # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL # 15 13 # # 16 # ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #17 # (See geant4/source/visualization/README for details.) #18 # #19 # % setenv G4VIS_BUILD_OIX_DRIVER 1 #20 # #21 # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #22 # (See geant4/source/visualization/README for details.) #23 # #24 # % setenv G4VIS_USE_OIQT 1 #25 # #26 14 # ADDITIONAL NOTES: # 27 15 # # 28 16 ####################################################################### 29 17 30 # Create "scene-0" 31 /vis/ scene/create18 /control/verbose 2 19 /vis/verbose confirmations 32 20 33 # Invoke the OpenInventor driver 34 /vis/sceneHandler/create OGLIQT 35 /vis/viewer/create 21 /vis/open OGLSX 22 /vis/drawVolume 23 /vis/scene/add/eventID 24 /vis/scene/add/trajectories rich 36 25 37 # Add the world volume to the current scene 38 /vis/scene/add/volume 39 #/vis/scene/add/volume Layer 40 # Name of the absorbers = name of their material (Lead) ! 41 #/vis/scene/add/volume Lead 42 # Name of the gaps = name of their material (liquidArgon) ! 43 #/vis/scene/add/volume liquidArgon 44 #/vis/scene/add/trajectories 45 /tracking/storeTrajectory 1 26 # Set up drawByCharge with time slicing 27 /vis/modeling/trajectories/create/drawByCharge 28 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 29 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5 30 /vis/modeling/trajectories/drawByCharge-0/default/setDrawAuxPts true 31 /vis/modeling/trajectories/drawByCharge-0/default/setAuxPtsSize 5 32 /vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 0.001 ns 33 /vis/modeling/trajectories/list 34 #/N03/det/setField 5 T 35 #/N03/det/update 36 /run/beamOn 46 37 47 # Bird-eye view of events 48 /vis/viewer/reset 49 /vis/viewer/set/viewpointThetaPhi 45 45 38 # Configure OpenGL for display-by-time 39 /vis/ogl/set/fade 1 40 /vis/ogl/set/displayHeadTime true 41 /control/alias timeRange 0.1 42 /vis/verbose warnings 43 /control/verbose 0 44 /control/loop visTutor/exN03Vis12.loop startTime -{timeRange} 0.7 0.005 45 /control/verbose 2 46 /vis/verbose confirmations 47 /vis/ogl/set/displayHeadTime false 50 48 51 /vis/scene/notifyHandlers 49 # Set up drawByParticleID with time slicing 50 /vis/modeling/trajectories/create/drawByParticleID 51 /vis/modeling/trajectories/drawByParticleID-0/set e- red 52 /vis/modeling/trajectories/drawByParticleID-0/set e+ blue 53 /vis/modeling/trajectories/drawByParticleID-0/set pi- cyan 54 /vis/modeling/trajectories/drawByParticleID-0/set pi+ magenta 55 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true 56 /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 5 57 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawAuxPts true 58 /vis/modeling/trajectories/drawByParticleID-0/default/setAuxPtsSize 5 59 /vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.001 ns 60 /vis/modeling/trajectories/list 52 61 62 # Remove gammas 63 /vis/filtering/trajectories/create/particleFilter 64 /vis/filtering/trajectories/particleFilter-0/add gamma 65 /vis/filtering/trajectories/particleFilter-0/invert true 66 67 /gun/energy 1 GeV 68 /run/beamOn 69 /control/alias timeRange 0.1 70 /vis/ogl/set/displayHeadTime true 71 /vis/ogl/set/displayLightFront true -90 0 0 mm 72 /vis/verbose warnings 73 /control/verbose 0 74 /control/loop visTutor/exN03Vis12.loop startTime -{timeRange} 0.7 0.001 53 75 /control/verbose 2 54 ####################################################################### 55 # Controls on an Inventor examiner viewer are : # 56 # - in picking mode (cursor is the upper left arrow) # 57 # Ctrl + pick a volume : see daughters. # 58 # Shift + pick a volume : see mother. # 59 # - in viewing mode (cursor is the hand) # 60 # Left-button + pointer move : rotate. # 61 # Ctrl+Left-button + pointer move : pane. # 62 # Ctrl+Shift+Left-button + pointer move : scale. # 63 # Middle-button + pointer move : pane. # 64 # # 65 ####################################################################### 76 /vis/verbose confirmations 77 /vis/ogl/set/displayLightFront false 78 /vis/ogl/set/displayHeadTime false 66 79 67 /vis/viewer/update 68 69 /run/beamOn 1 70 80 # To see pi -> mu -> e decay. 81 /gun/particle pi+ 82 /vis/filtering/trajectories/particleFilter-0/add anti_nu_mu 83 /vis/filtering/trajectories/particleFilter-0/add nu_mu 84 /vis/filtering/trajectories/particleFilter-0/add anti_nu_e 85 /vis/filtering/trajectories/particleFilter-0/add nu_e 86 # Accumulate several events for effect 87 # /vis/scene/endOfEventAction accumulate 88 /gun/energy 100 MeV 89 #/vis/viewer/set/globalLineWidthScale 2 90 /run/beamOn 91 /control/alias timeRange 1000 92 /vis/ogl/set/displayHeadTime true 93 /vis/verbose warnings 94 /control/verbose 0 95 /control/loop visTutor/exN03Vis12.loop startTime -{timeRange} 3000 5 96 /control/verbose 2 97 /vis/verbose confirmations -
trunk/geant4/visualization/visTutor/exN03Vis13.loop
r562 r609 5 5 /vis/viewer/refresh 6 6 # Print eps file 7 #/vis/ogl x/printEPS7 #/vis/ogl/printEPS -
trunk/geant4/visualization/visTutor/gui.mac
r562 r609 33 33 /gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac" 34 34 /gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac" 35 /gui/addButton vis Vis1 2(OGLIQT) "/control/execute visTutor/exN03Vis12.mac"35 /gui/addButton vis Vis15(OGLIQT) "/control/execute visTutor/exN03Vis15.mac" 36 36 /gui/addButton vis Vis14(OGLSQT) "/control/execute visTutor/exN03Vis14.mac" 37 37 /gui/addButton vis Vis5(OIX) "/control/execute visTutor/exN03Vis5.mac"
Note:
See TracChangeset
for help on using the changeset viewer.
