Ignore:
Timestamp:
Jun 2, 2010, 10:23:13 AM (14 years ago)
Author:
garnier
Message:

CVS update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/tracking/src/G4VTrajectory.cc

    r1228 r1293  
    2525//
    2626//
    27 // $Id: G4VTrajectory.cc,v 1.12 2006/10/16 13:45:01 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4VTrajectory.cc,v 1.15 2010/05/29 21:31:03 allison Exp $
     28// GEANT4 tag $Name: tracking-V09-03-03 $
    2929//
    3030// ---------------------------------------------------------------
     
    116116}
    117117
     118void G4VTrajectory::DrawTrajectory() const
     119{
     120  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
     121
     122  if (0 != pVVisManager) {
     123    pVVisManager->DispatchToModel(*this);
     124  }
     125}
     126
    118127void G4VTrajectory::DrawTrajectory(G4int i_mode) const
    119128{
    120129  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
     130
     131  static G4bool warnedAboutIMode = false;
     132  if (!warnedAboutIMode) {
     133    G4Exception
     134        ("G4VTrajectory::DrawTrajectory",
     135         "",
     136         JustWarning,
     137"WARNING: DEPRECATED: The use of i_mode argument in DrawTrajectory"
     138"\n  is deprecated and will be removed at the next major release.");
     139    warnedAboutIMode = true;
     140  }
    121141
    122142  if (0 != pVVisManager) {
Note: See TracChangeset for help on using the changeset viewer.