#include <G4BREPSolidCylinder.hh>
Inheritance diagram for G4BREPSolidCylinder:
Public Member Functions | |
G4BREPSolidCylinder (const G4String &name, const G4ThreeVector &origin, const G4ThreeVector &axis, const G4ThreeVector &direction, G4double radius, G4double length) | |
~G4BREPSolidCylinder () | |
G4VSolid * | Clone () const |
std::ostream & | StreamInfo (std::ostream &os) const |
G4BREPSolidCylinder (__void__ &) | |
G4BREPSolidCylinder (const G4BREPSolidCylinder &rhs) | |
G4BREPSolidCylinder & | operator= (const G4BREPSolidCylinder &rhs) |
Data Structures | |
struct | G4BREPCylinderParams |
Definition at line 51 of file G4BREPSolidCylinder.hh.
G4BREPSolidCylinder::G4BREPSolidCylinder | ( | const G4String & | name, | |
const G4ThreeVector & | origin, | |||
const G4ThreeVector & | axis, | |||
const G4ThreeVector & | direction, | |||
G4double | radius, | |||
G4double | length | |||
) |
Definition at line 40 of file G4BREPSolidCylinder.cc.
References G4BREPSolid::active, and G4BREPSolid::nb_of_surfaces.
Referenced by Clone().
00046 : G4BREPSolid(name) 00047 { 00048 nb_of_surfaces = 3; 00049 active=1; 00050 00051 // Save constructor parameters 00052 constructorParams.origin = origin; 00053 constructorParams.axis = axis; 00054 constructorParams.direction = direction; 00055 constructorParams.length = length; 00056 constructorParams.radius = radius; 00057 00058 InitializeCylinder(); 00059 }
G4BREPSolidCylinder::~G4BREPSolidCylinder | ( | ) |
G4BREPSolidCylinder::G4BREPSolidCylinder | ( | __void__ & | ) |
G4BREPSolidCylinder::G4BREPSolidCylinder | ( | const G4BREPSolidCylinder & | rhs | ) |
Definition at line 70 of file G4BREPSolidCylinder.cc.
References constructorParams.
00071 : G4BREPSolid(rhs) 00072 { 00073 constructorParams.origin = rhs.constructorParams.origin; 00074 constructorParams.axis = rhs.constructorParams.axis; 00075 constructorParams.direction = rhs.constructorParams.direction; 00076 constructorParams.length = rhs.constructorParams.length; 00077 constructorParams.radius = rhs.constructorParams.radius; 00078 00079 InitializeCylinder(); 00080 }
G4VSolid * G4BREPSolidCylinder::Clone | ( | ) | const [virtual] |
Reimplemented from G4BREPSolid.
Definition at line 162 of file G4BREPSolidCylinder.cc.
References G4BREPSolidCylinder().
00163 { 00164 return new G4BREPSolidCylinder(*this); 00165 }
G4BREPSolidCylinder & G4BREPSolidCylinder::operator= | ( | const G4BREPSolidCylinder & | rhs | ) |
Definition at line 83 of file G4BREPSolidCylinder.cc.
References constructorParams, and G4BREPSolid::operator=().
00084 { 00085 // Check assignment to self 00086 // 00087 if (this == &rhs) { return *this; } 00088 00089 // Copy base class data 00090 // 00091 G4BREPSolid::operator=(rhs); 00092 00093 // Copy data 00094 // 00095 constructorParams.origin = rhs.constructorParams.origin; 00096 constructorParams.axis = rhs.constructorParams.axis; 00097 constructorParams.direction = rhs.constructorParams.direction; 00098 constructorParams.length = rhs.constructorParams.length; 00099 constructorParams.radius = rhs.constructorParams.radius; 00100 00101 InitializeCylinder(); 00102 00103 return *this; 00104 }
std::ostream & G4BREPSolidCylinder::StreamInfo | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from G4BREPSolid.
Definition at line 167 of file G4BREPSolidCylinder.cc.
References G4BREPSolid::StreamInfo().
00168 { 00169 // Streams solid contents to output stream. 00170 00171 G4BREPSolid::StreamInfo( os ) 00172 << "\n origin: " << constructorParams.origin 00173 << "\n axis: " << constructorParams.axis 00174 << "\n direction: " << constructorParams.direction 00175 << "\n length: " << constructorParams.length 00176 << "\n radius: " << constructorParams.radius 00177 << "\n-----------------------------------------------------------\n"; 00178 00179 return os; 00180 }