00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #include "G4GeomTestVolPoint.hh"
00038
00039
00040
00041
00042 G4GeomTestVolPoint::G4GeomTestVolPoint( const G4ThreeVector &thePoint,
00043 G4double theS,
00044 G4bool isEntering,
00045 G4int theDaughterIndex )
00046 : G4GeomTestPoint( thePoint, theS, isEntering ),
00047 daughterIndex(theDaughterIndex)
00048 {;}
00049
00050
00051
00052
00053
00054 G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestPoint &base,
00055 G4int theDaughterIndex )
00056 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
00057 {;}
00058
00059
00060
00061
00062
00063 G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestPoint &base,
00064 G4int theDaughterIndex,
00065 const G4ThreeVector &translation,
00066 const G4RotationMatrix *rotation )
00067 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
00068 {
00069
00070
00071
00072 if (rotation)
00073 p = rotation->inverse()*p - translation;
00074 else
00075 p = p - translation;
00076 }
00077
00078
00079
00080
00081
00082 G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestVolPoint &other )
00083 : G4GeomTestPoint( other ), daughterIndex(other.daughterIndex)
00084 {;}
00085
00086
00087
00088
00089
00090 G4GeomTestVolPoint::G4GeomTestVolPoint()
00091 : daughterIndex(-1)
00092 {;}
00093
00094
00095
00096
00097
00098 G4GeomTestVolPoint::~G4GeomTestVolPoint() {;}
00099
00100
00101
00102
00103
00104 G4GeomTestVolPoint&
00105 G4GeomTestVolPoint::operator=(const G4GeomTestVolPoint& other)
00106 {
00107
00108
00109 if (this == &other) { return *this; }
00110
00111
00112
00113 G4GeomTestPoint::operator=(other);
00114
00115
00116
00117 daughterIndex = other.daughterIndex;
00118
00119 return *this;
00120 }
00121
00122
00123
00124
00125
00126 G4int G4GeomTestVolPoint::GetDaughterIndex() const
00127 {
00128 return daughterIndex;
00129 }