[831] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: G4RectangularTrimmedSurface.hh,v 1.8 2006/06/29 18:40:27 gunter Exp $ |
---|
[1337] | 28 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
[831] | 29 | // |
---|
| 30 | // ---------------------------------------------------------------------- |
---|
| 31 | // Class G4BezierSurface |
---|
| 32 | // |
---|
| 33 | // Class description: |
---|
| 34 | // |
---|
| 35 | // Definition of a rectangular trimmed surface. |
---|
| 36 | |
---|
| 37 | // Authors: J.Sulkimo, P.Urban. |
---|
| 38 | // Revisions by: L.Broglia, G.Cosmo. |
---|
| 39 | // ---------------------------------------------------------------------- |
---|
| 40 | #ifndef __RECTRIMMEDSURFACE_H |
---|
| 41 | #define __RECTRIMMEDSURFACE_H |
---|
| 42 | |
---|
| 43 | #include "G4FCylindricalSurface.hh" |
---|
| 44 | |
---|
| 45 | class G4RectangularTrimmedSurface : public G4Surface |
---|
| 46 | { |
---|
| 47 | |
---|
| 48 | public: // with description |
---|
| 49 | |
---|
| 50 | G4RectangularTrimmedSurface(); |
---|
| 51 | virtual ~G4RectangularTrimmedSurface(); |
---|
| 52 | // Constructor & destructor |
---|
| 53 | |
---|
| 54 | G4int Intersect(const G4Ray&); |
---|
| 55 | // Counts the number of intersections of a the surface by a ray. |
---|
| 56 | // If no intersection is found, it sets distance = kInfinity and returns 0. |
---|
| 57 | |
---|
| 58 | void CalcBBox(); |
---|
| 59 | // Computes the bounding-box. |
---|
| 60 | |
---|
| 61 | virtual const char* Name() const; |
---|
| 62 | // Returns the class type name. |
---|
| 63 | |
---|
| 64 | private: |
---|
| 65 | |
---|
| 66 | G4RectangularTrimmedSurface(const G4RectangularTrimmedSurface&); |
---|
| 67 | G4RectangularTrimmedSurface& operator=(const G4RectangularTrimmedSurface&); |
---|
| 68 | |
---|
| 69 | private: |
---|
| 70 | |
---|
| 71 | G4Surface* BasisSurface; |
---|
| 72 | |
---|
| 73 | G4double TrimU1,TrimU2; |
---|
| 74 | G4double TrimV1,TrimV2; |
---|
| 75 | |
---|
| 76 | G4Point3D TrimPointU1, TrimPointU2; |
---|
| 77 | G4Point3D TrimPointV1, TrimPointV2; |
---|
| 78 | |
---|
| 79 | }; |
---|
| 80 | |
---|
| 81 | #endif |
---|