Warning, file /include/Geant4/G4UBox.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 G4UBOX_HH
0035 #define G4UBOX_HH
0036
0037 #include "G4UAdapter.hh"
0038
0039 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
0040
0041 #include <VecGeom/volumes/UnplacedBox.h>
0042
0043 #include "G4Polyhedron.hh"
0044
0045 class G4UBox : public G4UAdapter<vecgeom::UnplacedBox>
0046 {
0047 using Shape_t = vecgeom::UnplacedBox;
0048 using Base_t = G4UAdapter<vecgeom::UnplacedBox>;
0049
0050 public:
0051
0052 G4UBox(const G4String& pName, G4double pX, G4double pY, G4double pZ);
0053
0054
0055 ~G4UBox() override;
0056
0057 void ComputeDimensions( G4VPVParameterisation* p,
0058 const G4int n,
0059 const G4VPhysicalVolume* pRep) override;
0060
0061 G4VSolid* Clone() const override;
0062
0063 G4double GetXHalfLength() const;
0064 G4double GetYHalfLength() const;
0065 G4double GetZHalfLength() const;
0066
0067 void SetXHalfLength(G4double dx);
0068 void SetYHalfLength(G4double dy);
0069 void SetZHalfLength(G4double dz);
0070
0071 inline G4GeometryType GetEntityType() const override;
0072
0073 inline G4bool IsFaceted() const override;
0074
0075 void BoundingLimits(G4ThreeVector& pMin, G4ThreeVector& pMax) const override;
0076
0077 G4bool CalculateExtent(const EAxis pAxis,
0078 const G4VoxelLimits& pVoxelLimit,
0079 const G4AffineTransform& pTransform,
0080 G4double& pMin, G4double& pMax) const override;
0081
0082 G4Polyhedron* CreatePolyhedron() const override;
0083
0084 G4UBox(const G4UBox& rhs);
0085 G4UBox& operator=(const G4UBox& rhs);
0086
0087 };
0088
0089
0090
0091
0092
0093 inline G4GeometryType G4UBox::GetEntityType() const
0094 {
0095 return "G4Box";
0096 }
0097
0098 inline G4bool G4UBox::IsFaceted() const
0099 {
0100 return true;
0101 }
0102
0103 #endif
0104
0105 #endif