G4BREPSolidTorus Class Reference

#include <G4BREPSolidTorus.hh>

Inheritance diagram for G4BREPSolidTorus:

G4BREPSolid G4VSolid

Public Member Functions

 G4BREPSolidTorus (const G4String &name, const G4ThreeVector &origin, const G4ThreeVector &axis, const G4ThreeVector &direction, G4double MinRadius, G4double MaxRadius)
 ~G4BREPSolidTorus ()
G4VSolidClone () const
std::ostream & StreamInfo (std::ostream &os) const
 G4BREPSolidTorus (__void__ &)
 G4BREPSolidTorus (const G4BREPSolidTorus &rhs)
G4BREPSolidTorusoperator= (const G4BREPSolidTorus &rhs)

Data Structures

struct  G4BREPTorusParams

Detailed Description

Definition at line 51 of file G4BREPSolidTorus.hh.


Constructor & Destructor Documentation

G4BREPSolidTorus::G4BREPSolidTorus ( const G4String name,
const G4ThreeVector origin,
const G4ThreeVector axis,
const G4ThreeVector direction,
G4double  MinRadius,
G4double  MaxRadius 
)

Definition at line 39 of file G4BREPSolidTorus.cc.

References G4BREPSolid::active.

Referenced by Clone().

00045   : G4BREPSolid(name)
00046 {  
00047   // Save constructor parameters
00048   constructorParams.origin       = origin;
00049   constructorParams.axis         = axis;
00050   constructorParams.direction    = direction;
00051   constructorParams.MinRadius    = MinRadius;
00052   constructorParams.MaxRadius    = MaxRadius;
00053   
00054   active = 1;
00055   InitializeTorus();
00056 }

G4BREPSolidTorus::~G4BREPSolidTorus (  ) 

Definition at line 63 of file G4BREPSolidTorus.cc.

00064 {
00065 }

G4BREPSolidTorus::G4BREPSolidTorus ( __void__ &   ) 

Definition at line 58 of file G4BREPSolidTorus.cc.

00059   : G4BREPSolid(a)
00060 {
00061 }

G4BREPSolidTorus::G4BREPSolidTorus ( const G4BREPSolidTorus rhs  ) 

Definition at line 67 of file G4BREPSolidTorus.cc.

References constructorParams.

00068   : G4BREPSolid(rhs)
00069 {
00070   constructorParams.origin    = rhs.constructorParams.origin;
00071   constructorParams.axis      = rhs.constructorParams.axis;
00072   constructorParams.direction = rhs.constructorParams.direction;
00073   constructorParams.MinRadius = rhs.constructorParams.MinRadius;
00074   constructorParams.MaxRadius = rhs.constructorParams.MaxRadius;
00075   
00076   InitializeTorus();
00077 }


Member Function Documentation

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

Reimplemented from G4BREPSolid.

Definition at line 116 of file G4BREPSolidTorus.cc.

References G4BREPSolidTorus().

00117 {
00118   return new G4BREPSolidTorus(*this);
00119 }

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

Definition at line 80 of file G4BREPSolidTorus.cc.

References constructorParams, and G4BREPSolid::operator=().

00081 {
00082   // Check assignment to self
00083   //
00084   if (this == &rhs)  { return *this; }
00085 
00086   // Copy base class data
00087   //
00088   G4BREPSolid::operator=(rhs);
00089 
00090   // Copy data
00091   //
00092   constructorParams.origin    = rhs.constructorParams.origin;
00093   constructorParams.axis      = rhs.constructorParams.axis;
00094   constructorParams.direction = rhs.constructorParams.direction;
00095   constructorParams.MinRadius = rhs.constructorParams.MinRadius;
00096   constructorParams.MaxRadius = rhs.constructorParams.MaxRadius;
00097   
00098   InitializeTorus();
00099 
00100   return *this;
00101 }  

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

Reimplemented from G4BREPSolid.

Definition at line 121 of file G4BREPSolidTorus.cc.

References G4BREPSolid::StreamInfo().

00122 {
00123   // Streams solid contents to output stream.
00124 
00125   G4BREPSolid::StreamInfo( os )
00126   << "\n origin:       " << constructorParams.origin
00127   << "\n axis:         " << constructorParams.axis
00128   << "\n direction:    " << constructorParams.direction
00129   << "\n MinRadius:    " << constructorParams.MinRadius
00130   << "\n MaxRadius:    " << constructorParams.MaxRadius
00131   << "\n-----------------------------------------------------------\n";
00132 
00133   return os;
00134 }


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