74 else if ( pAxis ==
kYAxis )
81 assert( pAxis ==
kZAxis ) ;
118 remainsAfterClip =
false;
120 else if ( sCode == 0 && eCode == 0 )
124 remainsAfterClip = true ;
154 while ( sCode != eCode )
168 else if ( sCode & 0x02 )
174 else if ( sCode & 0x04 )
180 else if ( sCode & 0x08 )
186 else if ( sCode & 0x10 )
192 else if ( sCode & 0x20 )
207 else if ( eCode & 0x02 )
213 else if ( eCode & 0x04 )
225 else if ( eCode & 0x10 )
231 else if ( eCode & 0x20 )
244 if ( sCode == 0 && eCode == 0 ) remainsAfterClip =
true;
245 else remainsAfterClip =
false;
247 return remainsAfterClip;
268 if ( pVec.x() <
fxAxisMin ) code |= 0x01 ;
269 if ( pVec.x() >
fxAxisMax ) code |= 0x02 ;
273 if ( pVec.y() <
fyAxisMin ) code |= 0x04 ;
274 if ( pVec.y() >
fyAxisMax ) code |= 0x08 ;
278 if ( pVec.z() <
fzAxisMin ) code |= 0x10 ;
279 if ( pVec.z() >
fzAxisMax ) code |= 0x20 ;
static const G4double kInfinity
G4double GetMinYExtent() const
CLHEP::Hep3Vector G4ThreeVector
G4bool IsYLimited() const
G4bool IsXLimited() const
G4double GetMaxXExtent() const
void AddLimit(const EAxis pAxis, const G4double pMin, const G4double pMax)
G4double GetMinZExtent() const
std::ostream & operator<<(std::ostream &os, const G4VoxelLimits &pLim)
G4int OutCode(const G4ThreeVector &pVec) const
G4double GetMinXExtent() const
G4double GetMaxZExtent() const
G4double GetMaxYExtent() const
G4bool IsZLimited() const
G4bool ClipToLimits(G4ThreeVector &pStart, G4ThreeVector &pEnd) const