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.7 2003/11/03 17:48:45 gcosmo Exp $ >> 25 // GEANT4 tag $Name: geant4-06-00-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 >> 37 // 28.10.98 V.Grichine: addition of two constructors with G4PlacedSolid >> 38 // 33 // ------------------------------------------- 39 // -------------------------------------------------------------------- 34 #ifndef G4INTERSECTIONSOLID_HH 40 #ifndef G4INTERSECTIONSOLID_HH 35 #define G4INTERSECTIONSOLID_HH 41 #define G4INTERSECTIONSOLID_HH 36 42 37 #include "G4BooleanSolid.hh" 43 #include "G4BooleanSolid.hh" 38 #include "G4VSolid.hh" 44 #include "G4VSolid.hh" 39 45 40 #include "G4RotationMatrix.hh" 46 #include "G4RotationMatrix.hh" 41 #include "G4ThreeVector.hh" 47 #include "G4ThreeVector.hh" 42 #include "G4Transform3D.hh" 48 #include "G4Transform3D.hh" 43 #include "G4AffineTransform.hh" 49 #include "G4AffineTransform.hh" 44 50 45 class G4IntersectionSolid : public G4BooleanSo 51 class G4IntersectionSolid : public G4BooleanSolid 46 { 52 { 47 public: << 53 public: // with description 48 54 49 G4IntersectionSolid( const G4String& pName 55 G4IntersectionSolid( const G4String& pName, 50 G4VSolid* pSoli 56 G4VSolid* pSolidA , 51 G4VSolid* pSoli 57 G4VSolid* pSolidB ) ; 52 58 53 G4IntersectionSolid( const G4String& pName 59 G4IntersectionSolid( const G4String& pName, 54 G4VSolid* pSoli 60 G4VSolid* pSolidA , 55 G4VSolid* pSoli 61 G4VSolid* pSolidB, 56 G4RotationMatri 62 G4RotationMatrix* rotMatrix, 57 const G4ThreeVector& 63 const G4ThreeVector& transVector ) ; 58 64 59 G4IntersectionSolid( const G4String& pName 65 G4IntersectionSolid( const G4String& pName, 60 G4VSolid* pSoli 66 G4VSolid* pSolidA , 61 G4VSolid* pSoli 67 G4VSolid* pSolidB, 62 const G4Transform3D& 68 const G4Transform3D& transform ) ; 63 69 64 ~G4IntersectionSolid() override ; << 70 virtual ~G4IntersectionSolid() ; 65 71 66 G4GeometryType GetEntityType() const over << 72 virtual G4GeometryType GetEntityType() const; 67 73 68 G4VSolid* Clone() const override; << 74 public: // without description 69 << 70 G4IntersectionSolid(__void__&); << 71 // Fake default constructor for usage re << 72 // persistency for clients requiring pre << 73 // persistifiable objects. << 74 << 75 G4IntersectionSolid(const G4IntersectionSo << 76 G4IntersectionSolid& operator=(const G4Int << 77 // Copy constructor and assignment opera << 78 << 79 void BoundingLimits(G4ThreeVector& pMin, G << 80 75 81 G4bool CalculateExtent( const EAxis pAxis, 76 G4bool CalculateExtent( const EAxis pAxis, 82 const G4VoxelLimit 77 const G4VoxelLimits& pVoxelLimit, 83 const G4AffineTran 78 const G4AffineTransform& pTransform, 84 G4double& pM << 79 G4double& pMin, G4double& pMax) const ; 85 80 86 EInside Inside( const G4ThreeVector& p ) c << 81 EInside Inside( const G4ThreeVector& p ) const ; 87 82 88 G4ThreeVector SurfaceNormal( const G4Three << 83 G4ThreeVector SurfaceNormal( const G4ThreeVector& p ) const ; 89 84 90 G4double DistanceToIn( const G4ThreeVector 85 G4double DistanceToIn( const G4ThreeVector& p, 91 const G4ThreeVector << 86 const G4ThreeVector& v ) const ; 92 87 93 G4double DistanceToIn( const G4ThreeVector << 88 G4double DistanceToIn( const G4ThreeVector& p) const ; 94 89 95 G4double DistanceToOut( const G4ThreeVecto 90 G4double DistanceToOut( const G4ThreeVector& p, 96 const G4ThreeVecto 91 const G4ThreeVector& v, 97 const G4bool calcN 92 const G4bool calcNorm=false, 98 G4bool *vali << 93 G4bool *validNorm=0, 99 G4ThreeVecto << 94 G4ThreeVector *n=0 ) const ; 100 95 101 G4double DistanceToOut( const G4ThreeVecto << 96 G4double DistanceToOut( const G4ThreeVector& p ) const ; 102 97 103 98 104 void ComputeDimensions( G4VPVParamet 99 void ComputeDimensions( G4VPVParameterisation* p, 105 const G4int n, 100 const G4int n, 106 const G4VPhysicalV << 101 const G4VPhysicalVolume* pRep ) ; 107 102 108 void DescribeYourselfTo ( G4VGraphicsScene << 103 void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ; 109 G4Polyhedron* CreatePolyhedron () const ov << 104 G4Polyhedron* CreatePolyhedron () const ; 110 }; << 105 G4NURBS* CreateNURBS () const ; >> 106 >> 107 } ; 111 108 112 #endif 109 #endif 113 110 114 111