G4TwistedBox Class Reference

#include <G4TwistedBox.hh>

Inheritance diagram for G4TwistedBox:

G4VTwistedFaceted G4VSolid

Public Member Functions

 G4TwistedBox (const G4String &pName, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)
virtual ~G4TwistedBox ()
G4double GetXHalfLength () const
G4double GetYHalfLength () const
G4double GetZHalfLength () const
G4double GetPhiTwist () const
G4GeometryType GetEntityType () const
G4VSolidClone () const
std::ostream & StreamInfo (std::ostream &os) const
 G4TwistedBox (__void__ &)
 G4TwistedBox (const G4TwistedBox &rhs)
G4TwistedBoxoperator= (const G4TwistedBox &rhs)

Detailed Description

Definition at line 59 of file G4TwistedBox.hh.


Constructor & Destructor Documentation

G4TwistedBox::G4TwistedBox ( const G4String pName,
G4double  pPhiTwist,
G4double  pDx,
G4double  pDy,
G4double  pDz 
)

Definition at line 46 of file G4TwistedBox.cc.

Referenced by Clone().

00051   : G4VTwistedFaceted( pName, pPhiTwist,pDz,0.,0.,
00052                        pDy, pDx, pDx, pDy, pDx, pDx,0. )
00053 {
00054 }

G4TwistedBox::~G4TwistedBox (  )  [virtual]

Definition at line 64 of file G4TwistedBox.cc.

00065 {
00066 }

G4TwistedBox::G4TwistedBox ( __void__ &   ) 

Definition at line 59 of file G4TwistedBox.cc.

00060   : G4VTwistedFaceted(a)
00061 {
00062 }

G4TwistedBox::G4TwistedBox ( const G4TwistedBox rhs  ) 

Definition at line 71 of file G4TwistedBox.cc.

00072   : G4VTwistedFaceted(rhs)
00073 {
00074 }


Member Function Documentation

G4VSolid * G4TwistedBox::Clone (  )  const [virtual]

Reimplemented from G4VSolid.

Definition at line 124 of file G4TwistedBox.cc.

References G4TwistedBox().

00125 {
00126   return new G4TwistedBox(*this);
00127 }

G4GeometryType G4TwistedBox::GetEntityType (  )  const [virtual]

Reimplemented from G4VTwistedFaceted.

Definition at line 116 of file G4TwistedBox.cc.

00117 {
00118   return G4String("G4TwistedBox");
00119 }

G4double G4TwistedBox::GetPhiTwist (  )  const [inline]

Definition at line 76 of file G4TwistedBox.hh.

References G4VTwistedFaceted::GetTwistAngle().

Referenced by G4tgbGeometryDumper::GetSolidParams(), StreamInfo(), and G4GDMLWriteSolids::TwistedboxWrite().

00076 { return GetTwistAngle() ; }

G4double G4TwistedBox::GetXHalfLength (  )  const [inline]

Definition at line 73 of file G4TwistedBox.hh.

References G4VTwistedFaceted::GetDx1().

Referenced by G4tgbGeometryDumper::GetSolidParams(), StreamInfo(), and G4GDMLWriteSolids::TwistedboxWrite().

00073 { return GetDx1() ; }

G4double G4TwistedBox::GetYHalfLength (  )  const [inline]

Definition at line 74 of file G4TwistedBox.hh.

References G4VTwistedFaceted::GetDy1().

Referenced by G4tgbGeometryDumper::GetSolidParams(), StreamInfo(), and G4GDMLWriteSolids::TwistedboxWrite().

00074 { return GetDy1() ; }

G4double G4TwistedBox::GetZHalfLength (  )  const [inline]

Definition at line 75 of file G4TwistedBox.hh.

References G4VTwistedFaceted::GetDz().

Referenced by G4tgbGeometryDumper::GetSolidParams(), StreamInfo(), and G4GDMLWriteSolids::TwistedboxWrite().

00075 { return GetDz()  ; }

G4TwistedBox & G4TwistedBox::operator= ( const G4TwistedBox rhs  ) 

Definition at line 79 of file G4TwistedBox.cc.

References G4VTwistedFaceted::operator=().

00080 {
00081    // Check assignment to self
00082    //
00083    if (this == &rhs)  { return *this; }
00084 
00085    // Copy base class data
00086    //
00087    G4VTwistedFaceted::operator=(rhs);
00088 
00089    return *this;
00090 }

std::ostream & G4TwistedBox::StreamInfo ( std::ostream &  os  )  const [virtual]

Reimplemented from G4VTwistedFaceted.

Definition at line 93 of file G4TwistedBox.cc.

References G4endl, G4VSolid::GetName(), GetPhiTwist(), GetXHalfLength(), GetYHalfLength(), and GetZHalfLength().

00094 {
00095   //
00096   // Stream object contents to an output stream
00097   //
00098   os << "-----------------------------------------------------------\n"
00099      << "    *** Dump for solid - " << GetName() << " ***\n"
00100      << "    ===================================================\n"
00101      << " Solid type: G4TwistedBox\n"
00102      << " Parameters: \n"
00103      << "    pDx = "  << GetXHalfLength()/cm << " cm" << G4endl
00104      << "    pDy = "  << GetYHalfLength()/cm << " cm" << G4endl
00105      << "    pDz = "  << GetZHalfLength()/cm << " cm" << G4endl
00106      << "    pPhiTwist = " << GetPhiTwist()/degree << " deg" << G4endl 
00107      << "-----------------------------------------------------------\n";
00108 
00109   return os;
00110 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:35 2013 for Geant4 by  doxygen 1.4.7