Changeset 1208 for trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/enhanceddrawing.xml
- Timestamp:
- Nov 30, 2009, 3:52:24 PM (15 years ago)
- Location:
- trunk/documents/UserDoc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/documents/UserDoc
-
Property
svn:ignore
set to
CVS
-
Property
svn:ignore
set to
-
trunk/documents/UserDoc/DocBookUsersGuides
-
Property
svn:ignore
set to
CVS
-
Property
svn:ignore
set to
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper
-
Property
svn:ignore
set to
CVS
-
Property
svn:ignore
set to
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml
-
Property
svn:ignore
set to
CVS
-
Property
svn:ignore
set to
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization
-
Property
svn:ignore
set to
CVS
-
Property
svn:ignore
set to
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/enhanceddrawing.xml
r904 r1208 81 81 </entry> 82 82 <entry> 83 0 83 2 pixels or mm* 84 </entry> 85 </row> 86 <row> 87 <entry> 88 Auxiliary point size type 89 </entry> 90 <entry> 91 screen 84 92 </entry> 85 93 </row> … … 129 137 </entry> 130 138 <entry> 131 0 139 2 pixels or mm* 140 </entry> 141 </row> 142 <row> 143 <entry> 144 Step point size type 145 </entry> 146 <entry> 147 screen 132 148 </entry> 133 149 </row> … … 167 183 </tgroup> 168 184 </informaltable> 185 </para> 186 187 <para> 188 * Depending on size type. If size type == screen, pixels are assumed and no unit need be supplied. If size type == world, a unit must be supplied, e.g., 10 cm. 169 189 </para> 170 190 … … 176 196 The context approach is intended to replace the configuration 177 197 through the imode parameter. The use of imode is depreciated and 178 will be removed in Geant4 v 9.0.198 will be removed in Geant4 v10.0. 179 199 </para></listitem> 180 200 <listitem><para> … … 581 601 582 602 <para> 583 To draw by time, you need to use a trajectory that records the 584 track time at the beginning and end of each step. To do this, write 585 a tracking action that sets G4RichTrajectory, for example: 586 587 <informalexample> 588 <programlisting> 589 #include "G4UserTrackingAction.hh" 590 class G4Track; 591 class MyTrackingAction : public G4UserTrackingAction 592 { 593 public: 594 virtual void PreUserTrackingAction(const G4Track* aTrack); 595 }; 596 #include "G4RichTrajectory.hh" 597 #include "G4TrackingManager.hh" 598 #include "G4IdentityTrajectoryFilter.hh" 599 #include "G4TransportationManager.hh" 600 #include "G4PropagatorInField.hh" 601 void MyTrackingAction::PreUserTrackingAction(const G4Track* aTrack) 602 { 603 // Require rich trajectory... 604 fpTrackingManager->SetTrajectory(new G4RichTrajectory(aTrack)); 605 606 // Activate storing of auxiliary points for smoother trajectory... 607 static G4IdentityTrajectoryFilter curvedFilter; 608 G4TransportationManager::GetTransportationManager()-> 609 GetPropagatorInField()->SetTrajectoryFilter(&curvedFilter); 610 } 611 </programlisting> 612 </informalexample> 613 614 and register an instance of this with the run manager (this can be 615 done once and for all as soon as the run manager is instantiated, 616 probably in your main program): 617 618 <informalexample> 619 <programlisting> 620 #include "MyTrackingAction.hh" 621 ... 622 runManager -> SetUserAction (new MyTrackingAction); 603 To draw by time, you need to use G4RichTrajectory, for example: 604 605 <informalexample> 606 <programlisting> 607 /vis/scene/add/trajectories rich 608 </programlisting> 609 </informalexample> 610 611 or 612 613 <informalexample> 614 <programlisting> 615 /vis/scene/add/trajectories rich smooth 623 616 </programlisting> 624 617 </informalexample> … … 648 641 /vis/open OGLSX 649 642 /vis/drawVolume 650 /vis/scene/add/trajectories 643 /vis/scene/add/trajectories rich 651 644 /vis/ogl/set/startTime 0.5 ns 652 645 /vis/ogl/set/endTime 0.8 ns
Note: See TracChangeset
for help on using the changeset viewer.