Changeset 1140 for trunk/source/visualization/modeling/include
- Timestamp:
- Nov 3, 2009, 11:17:28 AM (15 years ago)
- Location:
- trunk/source/visualization/modeling/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/modeling/include/G4BoundingSphereScene.hh
r954 r1140 25 25 // 26 26 // 27 // $Id: G4BoundingSphereScene.hh,v 1.1 8 2008/01/04 21:59:15allison Exp $27 // $Id: G4BoundingSphereScene.hh,v 1.19 2009/10/21 14:17:33 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 71 71 void AddCompound (const G4VTrajectory&) {} 72 72 void AddCompound (const G4VHit&) {} 73 void AddCompound (const G4THitsMap<G4double>&) {} 73 74 G4VisExtent GetBoundingSphereExtent (); 74 75 const G4Point3D& GetCentre() const {return fCentre;} -
trunk/source/visualization/modeling/include/G4PhysicalVolumeMassScene.hh
r954 r1140 25 25 // 26 26 // 27 // $Id: G4PhysicalVolumeMassScene.hh,v 1. 9 2008/01/04 21:59:15allison Exp $27 // $Id: G4PhysicalVolumeMassScene.hh,v 1.10 2009/10/21 14:17:33 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 109 109 void AddCompound (const G4VTrajectory&) {} 110 110 void AddCompound (const G4VHit&) {} 111 void AddCompound (const G4THitsMap<G4double>&) {} 111 112 112 113 //////////////////////////////////////////////////////////////// -
trunk/source/visualization/modeling/include/G4PhysicalVolumeModel.hh
r954 r1140 25 25 // 26 26 // 27 // $Id: G4PhysicalVolumeModel.hh,v 1.3 4 2007/04/03 13:46:49 allison Exp $27 // $Id: G4PhysicalVolumeModel.hh,v 1.35 2009/10/10 14:29:59 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 49 49 50 50 #include "G4VModel.hh" 51 #include "G4VTouchable.hh" 51 52 52 53 #include "G4Transform3D.hh" … … 76 77 public: 77 78 G4PhysicalVolumeNodeID 78 (G4VPhysicalVolume* pPV = 0, G4int iCopyNo = 0, G4int depth = 0): 79 fpPV(pPV), fCopyNo(iCopyNo), fNonCulledDepth(depth) {} 79 (G4VPhysicalVolume* pPV = 0, 80 G4int iCopyNo = 0, 81 G4int depth = 0, 82 const G4Transform3D& transform = G4Transform3D()): 83 fpPV(pPV), 84 fCopyNo(iCopyNo), 85 fNonCulledDepth(depth), 86 fTransform(transform) {} 80 87 G4VPhysicalVolume* GetPhysicalVolume() const {return fpPV;} 81 88 G4int GetCopyNo() const {return fCopyNo;} 82 89 G4int GetNonCulledDepth() const {return fNonCulledDepth;} 90 const G4Transform3D& GetTransform() const {return fTransform;} 83 91 G4bool operator< (const G4PhysicalVolumeNodeID& right) const; 84 92 private: … … 86 94 G4int fCopyNo; 87 95 G4int fNonCulledDepth; 96 G4Transform3D fTransform; 88 97 }; 89 98 // Nested class for identifying physical volume nodes. 99 100 class G4PhysicalVolumeModelTouchable: public G4VTouchable { 101 public: 102 G4PhysicalVolumeModelTouchable 103 (const std::vector<G4PhysicalVolumeNodeID>& fullPVPath); 104 const G4ThreeVector& GetTranslation(G4int depth) const; 105 const G4RotationMatrix* GetRotation(G4int depth) const; 106 G4VPhysicalVolume* GetVolume(G4int depth) const; 107 G4VSolid* GetSolid(G4int depth) const; 108 G4int GetReplicaNumber(G4int depth) const; 109 G4int GetHistoryDepth() const {return fFullPVPath.size();} 110 private: 111 const std::vector<G4PhysicalVolumeNodeID>& fFullPVPath; 112 }; 113 // Nested class for handling nested parameterisations. 90 114 91 115 G4PhysicalVolumeModel -
trunk/source/visualization/modeling/include/G4PhysicalVolumeSearchScene.hh
r954 r1140 25 25 // 26 26 // 27 // $Id: G4PhysicalVolumeSearchScene.hh,v 1.1 8 2008/01/04 21:59:15allison Exp $27 // $Id: G4PhysicalVolumeSearchScene.hh,v 1.19 2009/10/21 14:17:33 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 74 74 void AddCompound (const G4VTrajectory&) {} 75 75 void AddCompound (const G4VHit&) {} 76 void AddCompound (const G4THitsMap<G4double>&) {} 76 77 G4int GetFoundDepth () const; 77 78 G4VPhysicalVolume* GetFoundVolume () const;
Note: See TracChangeset
for help on using the changeset viewer.