Changeset 842 for trunk


Ignore:
Timestamp:
Jun 11, 2008, 4:16:27 PM (17 years ago)
Author:
garnier
Message:

updates from the head of geant4 in order to compile

Location:
trunk/source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/intercoms/History

    r821 r842  
    1 $Id: History,v 1.70 2007/08/10 09:47:43 kmura Exp $
     1$Id: History,v 1.71 2008/01/30 11:20:03 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     2030th January 2007, Laurent Garnier
     21 - Add a new function in G4UIcommandTree to find a subtree
    1922
    2023August 10, 2007 K.Murakami (intercoms-V09-00-01)
  • trunk/source/intercoms/include/G4UIcommandTree.hh

    r821 r842  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.hh,v 1.15 2006/06/29 19:08:11 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4UIcommandTree.hh,v 1.16 2008/01/30 11:20:03 lgarnier Exp $
     28// GEANT4 tag $Name: HEAD $
    2929//
    3030
     
    5656      void RemoveCommand(G4UIcommand * aCommand);
    5757      G4UIcommand * FindPath(const char* commandPath);
     58      G4UIcommandTree * FindCommandTree(const char* commandPath);
    5859      void List();
    5960      void ListCurrent();
  • trunk/source/intercoms/src/G4UIcommandTree.cc

    r821 r842  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.cc,v 1.13 2006/06/29 19:08:58 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4UIcommandTree.cc,v 1.14 2008/01/30 11:20:03 lgarnier Exp $
     28// GEANT4 tag $Name: HEAD $
    2929//
    3030
     
    156156}
    157157
     158// L. Garnier 01.28.08 This function has not a good name. In fact, it try
     159// to match a command name, not a path. It should be rename as FindCommandName
     160
    158161G4UIcommand * G4UIcommandTree::FindPath(const char* commandPath)
    159162{
     
    183186      if( nextPath == tree[i_thTree]->GetPathName() )
    184187      { return tree[i_thTree]->FindPath( commandPath ); }
     188    }
     189  }
     190  return NULL;
     191}
     192
     193
     194/**
     195 * Try to match a command or a path with the one given.
     196 * @commandPath : command or path to match
     197 * @return the commandTree found or NULL if not
     198 */
     199G4UIcommandTree * G4UIcommandTree::FindCommandTree(const char* commandPath)
     200{
     201  G4String remainingPath = commandPath;
     202  if( remainingPath.index( pathName ) == std::string::npos )
     203  { return NULL; }
     204  remainingPath.remove(0,pathName.length());
     205  G4int i = remainingPath.first('/');
     206  if( i != G4int(std::string::npos) )
     207  {
     208    // Find path
     209    G4String nextPath = pathName;
     210    nextPath.append(remainingPath(0,i+1));
     211    G4int n_treeEntry = tree.size();
     212    for( G4int i_thTree = 0; i_thTree < n_treeEntry; i_thTree++ )
     213    {
     214      if (tree[i_thTree]->GetPathName() == commandPath) {
     215        return tree[i_thTree];
     216      }
     217      else if( nextPath == tree[i_thTree]->GetPathName() ) {
     218        return tree[i_thTree]->FindCommandTree( commandPath );
     219      }
    185220    }
    186221  }
  • trunk/source/visualization/modeling/History

    r834 r842  
    1 $Id: History,v 1.103 2007/11/10 14:56:54 allison Exp $
     1$Id: History,v 1.104 2008/01/04 21:59:15 allison Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/modeling
    2121---------------------------------------
     22
     234th January 2008  John Allison  (modeling-V09-01-00)
     24- Adapted to new BeginPrimitives2D signature.
    2225
    232610th November 2007  John Allison  (modeling-V09-00-00)
  • trunk/source/visualization/modeling/include/G4BoundingSphereScene.hh

    r834 r842  
    2525//
    2626//
    27 // $Id: G4BoundingSphereScene.hh,v 1.17 2006/06/29 21:30:08 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4BoundingSphereScene.hh,v 1.18 2008/01/04 21:59:15 allison Exp $
     28// GEANT4 tag $Name: HEAD $
    2929//
    3030//
     
    9191  virtual void BeginPrimitives (const G4Transform3D&) {}
    9292  virtual void EndPrimitives () {}
    93   virtual void BeginPrimitives2D () {}
     93  virtual void BeginPrimitives2D (const G4Transform3D&) {}
    9494  virtual void EndPrimitives2D () {}
    9595  virtual void AddPrimitive (const G4Polyline&)   {}
  • trunk/source/visualization/modeling/include/G4PhysicalVolumeMassScene.hh

    r834 r842  
    2525//
    2626//
    27 // $Id: G4PhysicalVolumeMassScene.hh,v 1.8 2006/11/05 20:38:09 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4PhysicalVolumeMassScene.hh,v 1.9 2008/01/04 21:59:15 allison Exp $
     28// GEANT4 tag $Name: HEAD $
    2929//
    3030//
     
    115115  virtual void BeginPrimitives (const G4Transform3D&) {}
    116116  virtual void EndPrimitives () {}
    117   virtual void BeginPrimitives2D () {}
     117  virtual void BeginPrimitives2D (const G4Transform3D&) {}
    118118  virtual void EndPrimitives2D () {}
    119119  virtual void AddPrimitive (const G4Polyline&)   {}
  • trunk/source/visualization/modeling/include/G4PhysicalVolumeSearchScene.hh

    r834 r842  
    2525//
    2626//
    27 // $Id: G4PhysicalVolumeSearchScene.hh,v 1.17 2006/06/29 21:30:36 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4PhysicalVolumeSearchScene.hh,v 1.18 2008/01/04 21:59:15 allison Exp $
     28// GEANT4 tag $Name: HEAD $
    2929//
    3030//
     
    8383  virtual void BeginPrimitives (const G4Transform3D&) {}
    8484  virtual void EndPrimitives () {}
    85   virtual void BeginPrimitives2D () {}
     85  virtual void BeginPrimitives2D (const G4Transform3D&) {}
    8686  virtual void EndPrimitives2D () {}
    8787  virtual void AddPrimitive (const G4Polyline&)   {}
Note: See TracChangeset for help on using the changeset viewer.