#include <G4VTwistSurface.hh>
Public Member Functions | |
Boundary () | |
virtual | ~Boundary () |
void | SetFields (const G4int &areacode, const G4ThreeVector &d, const G4ThreeVector &x0, const G4int &boundarytype) |
G4bool | IsEmpty () const |
G4bool | GetBoundaryParameters (const G4int &areacode, G4ThreeVector &d, G4ThreeVector &x0, G4int &boundarytype) const |
Definition at line 295 of file G4VTwistSurface.hh.
G4VTwistSurface::Boundary::Boundary | ( | ) |
G4VTwistSurface::Boundary::~Boundary | ( | ) | [virtual] |
G4bool G4VTwistSurface::Boundary::GetBoundaryParameters | ( | const G4int & | areacode, | |
G4ThreeVector & | d, | |||
G4ThreeVector & | x0, | |||
G4int & | boundarytype | |||
) | const |
Definition at line 1273 of file G4VTwistSurface.cc.
References FatalException, G4endl, G4Exception(), G4VTwistSurface::sAxis0, G4VTwistSurface::sAxis1, and G4VTwistSurface::sSizeMask.
01277 { 01278 // areacode must be one of them: 01279 // sAxis0 & sAxisMin, sAxis0 & sAxisMax, 01280 // sAxis1 & sAxisMin, sAxis1 & sAxisMax 01281 if ((areacode & sAxis0) && (areacode & sAxis1)) 01282 { 01283 std::ostringstream message; 01284 message << "Located in the corner area." << G4endl 01285 << " This function returns a direction vector of " 01286 << "a boundary line." << G4endl 01287 << " areacode = " << areacode; 01288 G4Exception("G4VTwistSurface::Boundary::GetBoundaryParameters()", 01289 "GeomSolids0003", FatalException, message); 01290 } 01291 if ((areacode & sSizeMask) != (fBoundaryAcode & sSizeMask)) 01292 { 01293 return false; 01294 } 01295 d = fBoundaryDirection; 01296 x0 = fBoundaryX0; 01297 boundarytype = fBoundaryType; 01298 return true; 01299 }
G4bool G4VTwistSurface::Boundary::IsEmpty | ( | ) | const |
void G4VTwistSurface::Boundary::SetFields | ( | const G4int & | areacode, | |
const G4ThreeVector & | d, | |||
const G4ThreeVector & | x0, | |||
const G4int & | boundarytype | |||
) |
Definition at line 1249 of file G4VTwistSurface.cc.
01253 { 01254 fBoundaryAcode = areacode; 01255 fBoundaryDirection = d; 01256 fBoundaryX0 = x0; 01257 fBoundaryType = boundarytype; 01258 }