Warning, file /include/Geant4/G4UGenericPolycone.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #ifndef G4UGENERICPOLYCONE_HH
0035 #define G4UGENERICPOLYCONE_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedGenericPolycone.h>
0042
0043 #include "G4TwoVector.hh"
0044 #include "G4PolyconeSide.hh"
0045
0046 class G4UGenericPolycone : public G4UAdapter<vecgeom::UnplacedGenericPolycone>
0047 {
0048 using Shape_t = vecgeom::UnplacedGenericPolycone;
0049 using Base_t = G4UAdapter<vecgeom::UnplacedGenericPolycone>;
0050
0051 public:
0052
0053 G4UGenericPolycone(const G4String& name,
0054 G4double phiStart,
0055 G4double phiTotal,
0056 G4int numRZ,
0057 const G4double r[],
0058 const G4double z[] );
0059
0060 ~G4UGenericPolycone() override;
0061
0062 G4double GetStartPhi() const;
0063 G4double GetEndPhi() const;
0064 G4double GetSinStartPhi() const;
0065 G4double GetCosStartPhi() const;
0066 G4double GetSinEndPhi() const;
0067 G4double GetCosEndPhi() const;
0068 G4bool IsOpen() const;
0069 G4int GetNumRZCorner() const;
0070 G4PolyconeSideRZ GetCorner(G4int index) const;
0071
0072 inline G4GeometryType GetEntityType() const override;
0073
0074 G4VSolid* Clone() const override;
0075
0076 G4UGenericPolycone( const G4UGenericPolycone& source );
0077 G4UGenericPolycone& operator=(const G4UGenericPolycone& source);
0078
0079
0080 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0081
0082 G4bool CalculateExtent(const EAxis pAxis,
0083 const G4VoxelLimits& pVoxelLimit,
0084 const G4AffineTransform& pTransform,
0085 G4double& pMin, G4double& pMax) const override;
0086
0087 G4Polyhedron* CreatePolyhedron() const override;
0088
0089 private:
0090
0091 G4double wrStart;
0092 G4double wrDelta;
0093 std::vector<G4TwoVector> rzcorners;
0094 };
0095
0096
0097
0098
0099
0100 inline G4GeometryType G4UGenericPolycone::GetEntityType() const
0101 {
0102 return "G4GenericPolycone";
0103 }
0104
0105 #endif
0106
0107 #endif