#include <G4AssemblyTriplet.hh>
Public Member Functions | |
G4AssemblyTriplet () | |
G4AssemblyTriplet (G4LogicalVolume *pVolume, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false) | |
G4AssemblyTriplet (G4AssemblyVolume *pAssembly, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false) | |
G4AssemblyTriplet (const G4AssemblyTriplet &second) | |
~G4AssemblyTriplet () | |
G4AssemblyTriplet & | operator= (const G4AssemblyTriplet &second) |
G4LogicalVolume * | GetVolume () const |
void | SetVolume (G4LogicalVolume *pVolume) |
G4AssemblyVolume * | GetAssembly () const |
void | SetAssembly (G4AssemblyVolume *pAssembly) |
G4ThreeVector | GetTranslation () const |
void | SetTranslation (G4ThreeVector &pVolume) |
G4RotationMatrix * | GetRotation () const |
void | SetRotation (G4RotationMatrix *pVolume) |
G4bool | IsReflection () const |
Definition at line 60 of file G4AssemblyTriplet.hh.
G4AssemblyTriplet::G4AssemblyTriplet | ( | ) | [inline] |
Definition at line 35 of file G4AssemblyTriplet.icc.
00036 : fVolume( 0 ), fRotation( 0 ), fAssembly(0), fIsReflection(false) 00037 { 00038 G4ThreeVector v(0.,0.,0.); 00039 fTranslation = v; 00040 }
G4AssemblyTriplet::G4AssemblyTriplet | ( | G4LogicalVolume * | pVolume, | |
G4ThreeVector & | translation, | |||
G4RotationMatrix * | pRotation, | |||
G4bool | isReflection = false | |||
) | [inline] |
Definition at line 43 of file G4AssemblyTriplet.icc.
00047 : fVolume( pVolume ), fTranslation( translation ), fRotation( pRotation ), 00048 fAssembly( 0 ), fIsReflection(isReflection) 00049 { 00050 }
G4AssemblyTriplet::G4AssemblyTriplet | ( | G4AssemblyVolume * | pAssembly, | |
G4ThreeVector & | translation, | |||
G4RotationMatrix * | pRotation, | |||
G4bool | isReflection = false | |||
) | [inline] |
Definition at line 53 of file G4AssemblyTriplet.icc.
00057 : fVolume( 0 ), fTranslation( translation ), fRotation( pRotation ), 00058 fAssembly( pAssembly ), fIsReflection(isReflection) 00059 { 00060 }
G4AssemblyTriplet::G4AssemblyTriplet | ( | const G4AssemblyTriplet & | second | ) | [inline] |
Definition at line 63 of file G4AssemblyTriplet.icc.
References GetAssembly(), GetRotation(), GetTranslation(), GetVolume(), and IsReflection().
00064 { 00065 fVolume = scopy.GetVolume(); 00066 fRotation = scopy.GetRotation(); 00067 fTranslation = scopy.GetTranslation(); 00068 fAssembly = scopy.GetAssembly(); 00069 fIsReflection = scopy.IsReflection(); 00070 }
G4AssemblyTriplet::~G4AssemblyTriplet | ( | ) | [inline] |
G4AssemblyVolume * G4AssemblyTriplet::GetAssembly | ( | ) | const [inline] |
Definition at line 97 of file G4AssemblyTriplet.icc.
Referenced by G4AssemblyTriplet(), and operator=().
G4RotationMatrix * G4AssemblyTriplet::GetRotation | ( | ) | const [inline] |
Definition at line 128 of file G4AssemblyTriplet.icc.
Referenced by G4AssemblyTriplet(), and operator=().
G4ThreeVector G4AssemblyTriplet::GetTranslation | ( | ) | const [inline] |
Definition at line 116 of file G4AssemblyTriplet.icc.
Referenced by G4AssemblyTriplet(), and operator=().
G4LogicalVolume * G4AssemblyTriplet::GetVolume | ( | ) | const [inline] |
Definition at line 78 of file G4AssemblyTriplet.icc.
Referenced by G4AssemblyTriplet(), and operator=().
G4bool G4AssemblyTriplet::IsReflection | ( | ) | const [inline] |
Definition at line 140 of file G4AssemblyTriplet.icc.
Referenced by G4AssemblyTriplet(), and operator=().
G4AssemblyTriplet & G4AssemblyTriplet::operator= | ( | const G4AssemblyTriplet & | second | ) | [inline] |
Definition at line 147 of file G4AssemblyTriplet.icc.
References GetAssembly(), GetRotation(), GetTranslation(), GetVolume(), and IsReflection().
00148 { 00149 if( this != &scopy ) 00150 { 00151 fVolume = scopy.GetVolume(); 00152 fRotation = scopy.GetRotation(); 00153 fTranslation = scopy.GetTranslation(); 00154 fAssembly = scopy.GetAssembly(); 00155 fIsReflection = scopy.IsReflection(); 00156 } 00157 00158 return *this; 00159 }
void G4AssemblyTriplet::SetAssembly | ( | G4AssemblyVolume * | pAssembly | ) | [inline] |
Definition at line 103 of file G4AssemblyTriplet.icc.
References G4Exception(), and JustWarning.
00104 { 00105 if ( fVolume ) 00106 { 00107 G4Exception("G4AssemblyTriplet::SetAssembly()", 00108 "GeomVol1001", JustWarning, 00109 "There is a volume already set, it will be ignored."); 00110 } 00111 fAssembly = pAssembly; 00112 fVolume = 0; 00113 }
void G4AssemblyTriplet::SetRotation | ( | G4RotationMatrix * | pVolume | ) | [inline] |
void G4AssemblyTriplet::SetTranslation | ( | G4ThreeVector & | pVolume | ) | [inline] |
void G4AssemblyTriplet::SetVolume | ( | G4LogicalVolume * | pVolume | ) | [inline] |
Definition at line 84 of file G4AssemblyTriplet.icc.
References G4Exception(), and JustWarning.
00085 { 00086 if ( fAssembly ) 00087 { 00088 G4Exception("G4AssemblyTriplet::SetVolume()", 00089 "GeomVol1001", JustWarning, 00090 "There is an assembly already set, it will be ignored."); 00091 } 00092 fVolume = pVolume; 00093 fAssembly = 0; 00094 }