Geant4-11
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// G4TwistedBox
27//
28// Class description:
29//
30// A G4TwistedBox is a twisted cuboid of given half lengths pDx,pDy,pDz
31// and twist angle pPhiTwist.
32// The Box is centred on the origin with sides parallel to the x/y/z axes.
33//
34// Member Data:
35//
36// pDx Half-length along x axis
37// pDy Half-length along y asis
38// pDz Half-length along z axis
39// pPhiTwist Twist angle
40
41// Author: 27-Oct-2004 - O.Link (Oliver.Link@cern.ch)
42// --------------------------------------------------------------------
43#ifndef G4TWISTEDBOX_HH
44#define G4TWISTEDBOX_HH
45
46#include "G4VTwistedFaceted.hh"
47
49{
50 public: // with description
51
52 G4TwistedBox(const G4String& pName,
53 G4double pPhiTwist,
54 G4double pDx,
55 G4double pDy,
56 G4double pDz );
57
58 virtual ~G4TwistedBox();
59
60 // accessors
61
62 inline G4double GetXHalfLength() const { return GetDx1() ; }
63 inline G4double GetYHalfLength() const { return GetDy1() ; }
64 inline G4double GetZHalfLength() const { return GetDz() ; }
65 inline G4double GetPhiTwist() const { return GetTwistAngle() ; }
66
68
69 G4VSolid* Clone() const;
70
71 std::ostream& StreamInfo(std::ostream& os) const;
72
73 public: // without description
74
75 G4TwistedBox(__void__&);
76 // Fake default constructor for usage restricted to direct object
77 // persistency for clients requiring preallocation of memory for
78 // persistifiable objects.
79
80 G4TwistedBox(const G4TwistedBox& rhs);
82 // Copy constructor and assignment operator.
83};
84
85#endif
double G4double
Definition: G4Types.hh:83
G4GeometryType GetEntityType() const
G4TwistedBox & operator=(const G4TwistedBox &rhs)
Definition: G4TwistedBox.cc:76
G4double GetPhiTwist() const
Definition: G4TwistedBox.hh:65
G4TwistedBox(const G4String &pName, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)
Definition: G4TwistedBox.cc:38
G4double GetXHalfLength() const
Definition: G4TwistedBox.hh:62
G4double GetZHalfLength() const
Definition: G4TwistedBox.hh:64
G4VSolid * Clone() const
virtual ~G4TwistedBox()
Definition: G4TwistedBox.cc:60
G4double GetYHalfLength() const
Definition: G4TwistedBox.hh:63
std::ostream & StreamInfo(std::ostream &os) const
Definition: G4TwistedBox.cc:93
G4double GetDy1() const
G4double GetTwistAngle() const
G4double GetDz() const
G4double GetDx1() const