source: trunk/source/geometry/navigation/include/G4GeomTestSegment.hh@ 962

Last change on this file since 962 was 921, checked in by garnier, 17 years ago

en test de gl2ps. Problemes de libraries

File size: 3.1 KB
Line 
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: G4GeomTestSegment.hh,v 1.4 2007/05/11 13:43:59 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-02-cand-01 $
29//
30// --------------------------------------------------------------------
31// GEANT 4 class header file
32//
33// G4GeomTestSegment
34//
35// Class description:
36//
37// Locate all points on a line that intersect a solid,
38// and return them in no particular order
39
40// Author: D.C.Williams, UCSC (davidw@scipp.ucsc.edu)
41// --------------------------------------------------------------------
42#ifndef G4GeomTestSegment_hh
43#define G4GeomTestSegment_hh
44
45#include "G4Types.hh"
46#include "G4ThreeVector.hh"
47#include "G4GeomTestPoint.hh"
48
49#include <vector>
50
51class G4VSolid;
52class G4GeomTestLogger;
53
54class G4GeomTestSegment
55{
56 public: // with description
57
58 G4GeomTestSegment( const G4VSolid *theSolid,
59 const G4ThreeVector &theP,
60 const G4ThreeVector &theV,
61 G4GeomTestLogger *logger );
62 // Constructor
63
64 const G4VSolid *GetSolid() const;
65 const G4ThreeVector &GetP() const;
66 const G4ThreeVector &GetV() const;
67 const G4GeomTestPoint &GetPoint( G4int i ) const;
68 G4int GetNumberPoints() const;
69 // Accessors
70
71 private:
72
73 void FindPoints( G4GeomTestLogger *logger );
74 void FindSomePoints( G4GeomTestLogger *logger, G4bool forward );
75 void PatchInconsistencies( G4GeomTestLogger *logger );
76
77 const G4VSolid * solid;
78 const G4ThreeVector p0,v;
79
80 std::vector<G4GeomTestPoint> points;
81
82 G4double kCarTolerance;
83};
84
85#endif
Note: See TracBrowser for help on using the repository browser.