Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VCSGfaceted.hh,v 1.3 2000/04/19 17:56:29 davidw Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
//
|
||||
// G4VCSGfaceted
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Virtual class defining CSG type shape that is built entire
|
||||
// of G4CSGface faces.
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#ifndef G4VCSGfaceted_hh
|
||||
#define G4VCSGfaceted_hh
|
||||
|
||||
#include "G4VSolid.hh"
|
||||
|
||||
class G4VCSGface;
|
||||
class G4VisExtent;
|
||||
|
||||
class G4VCSGfaceted : public G4VSolid
|
||||
{
|
||||
public:
|
||||
G4VCSGfaceted( G4String name) : G4VSolid(name) {;}
|
||||
virtual ~G4VCSGfaceted();
|
||||
|
||||
G4VCSGfaceted( const G4VCSGfaceted &source );
|
||||
const G4VCSGfaceted &operator=( const G4VCSGfaceted &source );
|
||||
|
||||
virtual G4bool CalculateExtent( const EAxis pAxis,
|
||||
const G4VoxelLimits& pVoxelLimit,
|
||||
const G4AffineTransform& pTransform,
|
||||
G4double& pmin, G4double& pmax) const;
|
||||
|
||||
virtual EInside Inside( const G4ThreeVector& p) const;
|
||||
|
||||
virtual G4ThreeVector SurfaceNormal( const G4ThreeVector& p) const;
|
||||
|
||||
virtual G4double DistanceToIn( const G4ThreeVector& p,const G4ThreeVector& v ) const;
|
||||
virtual G4double DistanceToIn( const G4ThreeVector& p ) const;
|
||||
virtual G4double DistanceToOut( const G4ThreeVector& p,const G4ThreeVector& v,
|
||||
const G4bool calcNorm=false,
|
||||
G4bool *validNorm=0,G4ThreeVector *n=0 ) const;
|
||||
virtual G4double DistanceToOut( const G4ThreeVector& p ) const;
|
||||
|
||||
virtual G4GeometryType GetEntityType() const { return G4String("G4CSGfaceted"); }
|
||||
|
||||
virtual G4Polyhedron* CreatePolyhedron() const = 0;
|
||||
|
||||
virtual void DescribeYourselfTo( G4VGraphicsScene& scene ) const;
|
||||
|
||||
virtual G4VisExtent GetExtent() const;
|
||||
|
||||
protected:
|
||||
G4int numFace;
|
||||
G4VCSGface **faces;
|
||||
|
||||
virtual G4double DistanceTo( const G4ThreeVector &p, const G4bool outgoing ) const;
|
||||
|
||||
void CopyStuff( const G4VCSGfaceted &source );
|
||||
void DeleteStuff();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user