![]() |
|
|||
File indexing completed on 2025-09-17 08:58:32
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 // Implementation of inline methods of G4GenericTrap 0027 // -------------------------------------------------------------------- 0028 0029 inline 0030 G4double G4GenericTrap::GetZHalfLength() const 0031 { 0032 return fDz; 0033 } 0034 0035 // -------------------------------------------------------------------- 0036 0037 inline 0038 G4int G4GenericTrap::GetNofVertices() const 0039 { 0040 return G4int(fVertices.size()); 0041 } 0042 0043 // -------------------------------------------------------------------- 0044 0045 inline 0046 G4TwoVector G4GenericTrap::GetVertex(G4int index) const 0047 { 0048 if (index < 0 || index > 7) 0049 { 0050 std::ostringstream message; 0051 message << "Index = "<< index << " is out of range [0, 7]" 0052 << " for Solid: " << GetName() << " !"; 0053 G4Exception("G4GenericTrap::GetVertex()", "GeomSolids0003", 0054 FatalException, message); 0055 } 0056 return fVertices[index]; 0057 } 0058 0059 // -------------------------------------------------------------------- 0060 0061 inline 0062 const std::vector<G4TwoVector>& G4GenericTrap::GetVertices() const 0063 { 0064 return fVertices; 0065 } 0066 0067 // -------------------------------------------------------------------- 0068 0069 inline 0070 G4double G4GenericTrap::GetTwistAngle(G4int index) const 0071 { 0072 if (index < 0 || index > 3) 0073 { 0074 std::ostringstream message; 0075 message << "Index = "<< index << " is out of range [0, 3]" 0076 << " for Solid: " << GetName() << " !"; 0077 G4Exception("G4GenericTrap::GetTwistAngle()", "GeomSolids0003", 0078 FatalException, message); 0079 } 0080 return fTwist[index]; 0081 } 0082 0083 // -------------------------------------------------------------------- 0084 0085 inline 0086 G4bool G4GenericTrap::IsTwisted() const 0087 { 0088 return fIsTwisted; 0089 } 0090 0091 // -------------------------------------------------------------------- 0092 0093 inline 0094 G4int G4GenericTrap::GetVisSubdivisions()const 0095 { 0096 return fVisSubdivisions; 0097 } 0098 0099 // -------------------------------------------------------------------- 0100 0101 inline 0102 void G4GenericTrap::SetVisSubdivisions(G4int subdiv) 0103 { 0104 fVisSubdivisions=subdiv; 0105 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |