|
||||
File indexing completed on 2025-01-18 09:59:14
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4TwistedBox 0027 // 0028 // Class description: 0029 // 0030 // A G4TwistedBox is a twisted cuboid of given half lengths pDx,pDy,pDz 0031 // and twist angle pPhiTwist. 0032 // The Box is centred on the origin with sides parallel to the x/y/z axes. 0033 // 0034 // Member Data: 0035 // 0036 // pDx Half-length along x axis 0037 // pDy Half-length along y asis 0038 // pDz Half-length along z axis 0039 // pPhiTwist Twist angle 0040 0041 // Author: 27-Oct-2004 - O.Link (Oliver.Link@cern.ch) 0042 // -------------------------------------------------------------------- 0043 #ifndef G4TWISTEDBOX_HH 0044 #define G4TWISTEDBOX_HH 0045 0046 #include "G4VTwistedFaceted.hh" 0047 0048 class G4TwistedBox : public G4VTwistedFaceted 0049 { 0050 public: 0051 0052 G4TwistedBox(const G4String& pName, 0053 G4double pPhiTwist, 0054 G4double pDx, 0055 G4double pDy, 0056 G4double pDz ); 0057 0058 ~G4TwistedBox() override; 0059 0060 // accessors 0061 0062 inline G4double GetXHalfLength() const { return GetDx1() ; } 0063 inline G4double GetYHalfLength() const { return GetDy1() ; } 0064 inline G4double GetZHalfLength() const { return GetDz() ; } 0065 inline G4double GetPhiTwist() const { return GetTwistAngle() ; } 0066 0067 G4GeometryType GetEntityType() const override; 0068 0069 G4double GetCubicVolume() override; 0070 G4double GetSurfaceArea() override; 0071 0072 G4VSolid* Clone() const override; 0073 0074 std::ostream& StreamInfo(std::ostream& os) const override; 0075 0076 G4TwistedBox(__void__&); 0077 // Fake default constructor for usage restricted to direct object 0078 // persistency for clients requiring preallocation of memory for 0079 // persistifiable objects. 0080 0081 G4TwistedBox(const G4TwistedBox& rhs); 0082 G4TwistedBox& operator=(const G4TwistedBox& rhs); 0083 // Copy constructor and assignment operator. 0084 }; 0085 0086 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |