Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TwistedBox.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4TwistedBox.hh 66356 2012-12-18 09:02:32Z gcosmo $
28 //
29 //
30 // --------------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 //
34 // G4TwistedBox
35 //
36 // Class description:
37 //
38 // A G4TwistedBox is a twisted cuboid of given half lengths pDx,pDy,pDz
39 // and twist angle pPhiTwist.
40 // The Box is centred on the origin with sides parallel to the x/y/z axes.
41 //
42 // Member Data:
43 //
44 // pDx Half-length along x axis
45 // pDy Half-length along y asis
46 // pDz Half-length along z axis
47 // pPhiTwist Twist angle
48 
49 // Author:
50 //
51 // 27-Oct-2004 - O.Link (Oliver.Link@cern.ch)
52 //
53 // --------------------------------------------------------------------
54 #ifndef __G4TWISTEDBOX__
55 #define __G4TWISTEDBOX__
56 
57 #include "G4VTwistedFaceted.hh"
58 
60 {
61  public: // with description
62 
63  G4TwistedBox(const G4String& pName,
64  G4double pPhiTwist,
65  G4double pDx,
66  G4double pDy,
67  G4double pDz );
68 
69  virtual ~G4TwistedBox();
70 
71  // accessors
72 
73  inline G4double GetXHalfLength() const { return GetDx1() ; }
74  inline G4double GetYHalfLength() const { return GetDy1() ; }
75  inline G4double GetZHalfLength() const { return GetDz() ; }
76  inline G4double GetPhiTwist() const { return GetTwistAngle() ; }
77 
79 
80  G4VSolid* Clone() const;
81 
82  std::ostream& StreamInfo(std::ostream& os) const;
83 
84  public: // without description
85 
86  G4TwistedBox(__void__&);
87  // Fake default constructor for usage restricted to direct object
88  // persistency for clients requiring preallocation of memory for
89  // persistifiable objects.
90 
91  G4TwistedBox(const G4TwistedBox& rhs);
92  G4TwistedBox& operator=(const G4TwistedBox& rhs);
93  // Copy constructor and assignment operator.
94 };
95 
96 #endif
std::ostream & StreamInfo(std::ostream &os) const
Definition: G4TwistedBox.cc:95
G4GeometryType GetEntityType() const
G4double GetDy1() const
G4double GetTwistAngle() const
G4double GetZHalfLength() const
Definition: G4TwistedBox.hh:75
G4VSolid * Clone() const
virtual ~G4TwistedBox()
Definition: G4TwistedBox.cc:64
G4TwistedBox(const G4String &pName, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)
Definition: G4TwistedBox.cc:46
G4double GetYHalfLength() const
Definition: G4TwistedBox.hh:74
G4TwistedBox & operator=(const G4TwistedBox &rhs)
Definition: G4TwistedBox.cc:80
G4double GetDx1() const
double G4double
Definition: G4Types.hh:76
G4double GetPhiTwist() const
Definition: G4TwistedBox.hh:76
G4double GetXHalfLength() const
Definition: G4TwistedBox.hh:73
G4double GetDz() const