Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // G4IntersectionSolid << 23 // >> 24 // $Id: G4IntersectionSolid.hh,v 1.6 2002/10/28 11:36:28 gcosmo Exp $ >> 25 // GEANT4 tag $Name: geant4-05-02-patch-01 $ >> 26 // >> 27 // >> 28 // class G4IntersectionSolid 27 // 29 // 28 // Class description: 30 // Class description: 29 // 31 // 30 // Class for description of intersection of tw << 32 // Class for description of intersection of two CSG solids. 31 33 >> 34 // History: >> 35 // 32 // 12.09.98 V.Grichine: initial design and imp 36 // 12.09.98 V.Grichine: initial design and implementation 33 // ------------------------------------------- << 37 // 28.10.98 V.Grichine: addition of two constructors with G4PlacedSolid >> 38 // >> 39 // ******************************************************************** >> 40 34 #ifndef G4INTERSECTIONSOLID_HH 41 #ifndef G4INTERSECTIONSOLID_HH 35 #define G4INTERSECTIONSOLID_HH 42 #define G4INTERSECTIONSOLID_HH 36 43 37 #include "G4BooleanSolid.hh" 44 #include "G4BooleanSolid.hh" 38 #include "G4VSolid.hh" 45 #include "G4VSolid.hh" 39 46 40 #include "G4RotationMatrix.hh" 47 #include "G4RotationMatrix.hh" 41 #include "G4ThreeVector.hh" 48 #include "G4ThreeVector.hh" 42 #include "G4Transform3D.hh" 49 #include "G4Transform3D.hh" 43 #include "G4AffineTransform.hh" 50 #include "G4AffineTransform.hh" 44 51 45 class G4IntersectionSolid : public G4BooleanSo 52 class G4IntersectionSolid : public G4BooleanSolid 46 { 53 { 47 public: << 54 public: // with description 48 55 49 G4IntersectionSolid( const G4String& pName 56 G4IntersectionSolid( const G4String& pName, 50 G4VSolid* pSoli 57 G4VSolid* pSolidA , 51 G4VSolid* pSoli 58 G4VSolid* pSolidB ) ; 52 59 53 G4IntersectionSolid( const G4String& pName 60 G4IntersectionSolid( const G4String& pName, 54 G4VSolid* pSoli 61 G4VSolid* pSolidA , 55 G4VSolid* pSoli 62 G4VSolid* pSolidB, 56 G4RotationMatri 63 G4RotationMatrix* rotMatrix, 57 const G4ThreeVector& 64 const G4ThreeVector& transVector ) ; 58 65 59 G4IntersectionSolid( const G4String& pName 66 G4IntersectionSolid( const G4String& pName, 60 G4VSolid* pSoli 67 G4VSolid* pSolidA , 61 G4VSolid* pSoli 68 G4VSolid* pSolidB, 62 const G4Transform3D& 69 const G4Transform3D& transform ) ; 63 70 64 ~G4IntersectionSolid() override ; << 71 virtual ~G4IntersectionSolid() ; 65 << 66 G4GeometryType GetEntityType() const over << 67 << 68 G4VSolid* Clone() const override; << 69 72 70 G4IntersectionSolid(__void__&); << 73 virtual G4GeometryType GetEntityType() const; 71 // Fake default constructor for usage re << 72 // persistency for clients requiring pre << 73 // persistifiable objects. << 74 74 75 G4IntersectionSolid(const G4IntersectionSo << 75 public: // without description 76 G4IntersectionSolid& operator=(const G4Int << 77 // Copy constructor and assignment opera << 78 << 79 void BoundingLimits(G4ThreeVector& pMin, G << 80 76 81 G4bool CalculateExtent( const EAxis pAxis, 77 G4bool CalculateExtent( const EAxis pAxis, 82 const G4VoxelLimit << 78 const G4VoxelLimits& pVoxelLimit, 83 const G4AffineTran << 79 const G4AffineTransform& pTransform, 84 G4double& pM << 80 G4double& pMin, G4double& pMax) const ; 85 81 86 EInside Inside( const G4ThreeVector& p ) c << 82 EInside Inside( const G4ThreeVector& p ) const ; 87 83 88 G4ThreeVector SurfaceNormal( const G4Three << 84 G4ThreeVector SurfaceNormal( const G4ThreeVector& p ) const ; 89 85 90 G4double DistanceToIn( const G4ThreeVector 86 G4double DistanceToIn( const G4ThreeVector& p, 91 const G4ThreeVector << 87 const G4ThreeVector& v ) const ; 92 88 93 G4double DistanceToIn( const G4ThreeVector << 89 G4double DistanceToIn( const G4ThreeVector& p) const ; 94 90 95 G4double DistanceToOut( const G4ThreeVecto 91 G4double DistanceToOut( const G4ThreeVector& p, 96 const G4ThreeVecto << 92 const G4ThreeVector& v, 97 const G4bool calcN << 93 const G4bool calcNorm=false, 98 G4bool *vali << 94 G4bool *validNorm=0, 99 G4ThreeVecto << 95 G4ThreeVector *n=0 ) const ; 100 96 101 G4double DistanceToOut( const G4ThreeVecto << 97 G4double DistanceToOut( const G4ThreeVector& p ) const ; 102 98 103 99 104 void ComputeDimensions( G4VPVParamet << 100 void ComputeDimensions( G4VPVParameterisation* p, 105 const G4int n, << 101 const G4int n, 106 const G4VPhysicalV << 102 const G4VPhysicalVolume* pRep ) ; 107 103 108 void DescribeYourselfTo ( G4VGraphicsScene << 104 void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ; 109 G4Polyhedron* CreatePolyhedron () const ov << 105 G4Polyhedron* CreatePolyhedron () const ; 110 }; << 106 G4NURBS* CreateNURBS () const ; >> 107 >> 108 } ; 111 109 112 #endif 110 #endif 113 111 114 112