Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4VTwistSurface::Boundary Class Reference

#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
 

Detailed Description

Definition at line 295 of file G4VTwistSurface.hh.

Constructor & Destructor Documentation

G4VTwistSurface::Boundary::Boundary ( )

Definition at line 1233 of file G4VTwistSurface.cc.

1234  : fBoundaryAcode(-1), fBoundaryType(0)
1235 {
1236 }
G4VTwistSurface::Boundary::~Boundary ( )
virtual

Definition at line 1241 of file G4VTwistSurface.cc.

1242 {
1243 }

Member Function Documentation

G4bool G4VTwistSurface::Boundary::GetBoundaryParameters ( const G4int areacode,
G4ThreeVector d,
G4ThreeVector x0,
G4int boundarytype 
) const

Definition at line 1273 of file G4VTwistSurface.cc.

1277 {
1278  // areacode must be one of them:
1279  // sAxis0 & sAxisMin, sAxis0 & sAxisMax,
1280  // sAxis1 & sAxisMin, sAxis1 & sAxisMax
1281  if ((areacode & sAxis0) && (areacode & sAxis1))
1282  {
1283  std::ostringstream message;
1284  message << "Located in the corner area." << G4endl
1285  << " This function returns a direction vector of "
1286  << "a boundary line." << G4endl
1287  << " areacode = " << areacode;
1288  G4Exception("G4VTwistSurface::Boundary::GetBoundaryParameters()",
1289  "GeomSolids0003", FatalException, message);
1290  }
1291  if ((areacode & sSizeMask) != (fBoundaryAcode & sSizeMask))
1292  {
1293  return false;
1294  }
1295  d = fBoundaryDirection;
1296  x0 = fBoundaryX0;
1297  boundarytype = fBoundaryType;
1298  return true;
1299 }
static const G4int sAxis1
static const G4int sAxis0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61
static const G4int sSizeMask

Here is the call graph for this function:

G4bool G4VTwistSurface::Boundary::IsEmpty ( ) const

Definition at line 1263 of file G4VTwistSurface.cc.

1264 {
1265  if (fBoundaryAcode == -1) return true;
1266  return false;
1267 }
void G4VTwistSurface::Boundary::SetFields ( const G4int areacode,
const G4ThreeVector d,
const G4ThreeVector x0,
const G4int boundarytype 
)

Definition at line 1249 of file G4VTwistSurface.cc.

1253 {
1254  fBoundaryAcode = areacode;
1255  fBoundaryDirection = d;
1256  fBoundaryX0 = x0;
1257  fBoundaryType = boundarytype;
1258 }

Here is the caller graph for this function:


The documentation for this class was generated from the following files: