Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
geometry
solids
specific
include
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 67011 2013-01-29 16:17:41Z 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
59
class
G4TwistedBox
:
public
G4VTwistedFaceted
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
78
G4GeometryType
GetEntityType
()
const
;
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
Generated on Sat May 25 2013 14:33:15 for Geant4 by
1.8.4