Ignore:
Timestamp:
May 20, 2010, 11:49:26 AM (14 years ago)
Author:
garnier
Message:

cvs update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc

    r1228 r1258  
    2525//
    2626//
    27 // $Id: G4VisCommandsSceneAdd.cc,v 1.78 2009/11/22 14:02:30 allison Exp $
     27// $Id: G4VisCommandsSceneAdd.cc,v 1.79 2010/05/11 10:58:49 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929// /vis/scene commands - John Allison  9th August 1998
     
    13731373  static G4IdentityTrajectoryFilter auxiliaryPointsFilter;
    13741374  G4String defaultTrajectoryType;
     1375  G4bool i_mode_found = false;
    13751376  G4int i_mode = 0;
    13761377  if (smooth && rich) {
     
    13901391      iss >> i_mode;
    13911392      if (iss) {
     1393        i_mode_found = true;
    13921394        if (verbosity >= G4VisManager::warnings) {
    1393           G4cout << "WARNING: Integer parameter " << i_mode << " found."
    1394             "\n  DEPRECATED - will be removed at next major release."
    1395             "\n  Use \"/vis/modeling/trajectories\" commands."
     1395          G4cout <<
     1396  "WARNING: Integer parameter " << i_mode << " found."
     1397  "\n  DEPRECATED - its use in this command will be removed at a future major"
     1398  "\n  release.  Use \"/vis/modeling/trajectories\" commands."
    13961399                 << G4endl;
    13971400        }
     
    14211424  }
    14221425
    1423   G4TrajectoriesModel* model = new G4TrajectoriesModel(i_mode);
     1426  G4TrajectoriesModel* model = 0;
     1427  if (i_mode_found) {
     1428    model = new G4TrajectoriesModel(i_mode);
     1429  } else {
     1430    model = new G4TrajectoriesModel();
     1431  }
    14241432  const G4String& currentSceneName = pScene -> GetName ();
    14251433  pScene -> AddEndOfEventModel (model, warn);
     
    18051813    const G4double y0 = (param4 + param3) / 2.;
    18061814    const G4double z0 = (param6 + param5) / 2.;
    1807     G4Box clippingBox("_clipping_box",dX,dY,dZ);
    1808     G4Polyhedron* clippingPolyhedron =
    1809       new G4PolyhedronBox(dX,dY,dZ);  // The model deletes.
    1810     clippingPolyhedron->Transform(G4Translate3D(x0,y0,z0));
     1815    G4VSolid* clippingSolid =
     1816      new G4DisplacedSolid
     1817      ("_displaced_clipping_box",
     1818       new G4Box("_clipping_box",dX,dY,dZ),
     1819       G4Translate3D(x0,y0,z0));
    18111820    for (size_t i = 0; i < foundVolumes.size(); ++i) {
    1812       models[i]->SetClippingPolyhedron(clippingPolyhedron);
     1821      models[i]->SetClippingSolid(clippingSolid);
    18131822      models[i]->SetClippingMode(clippingMode);
    18141823    }
Note: See TracChangeset for help on using the changeset viewer.