source: trunk/source/geometry/solids/BREPS/include/G4BREPSolidBox.hh @ 1246

Last change on this file since 1246 was 1228, checked in by garnier, 15 years ago

update geant4.9.3 tag

File size: 4.0 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: G4BREPSolidBox.hh,v 1.10 2008/01/22 16:03:13 tnikitin Exp $
28// GEANT4 tag $Name: geant4-09-03 $
29//
30// ----------------------------------------------------------------------
31// Class G4BREPSolidBox
32//
33// Class description:
34//
35//  Definition of a generic BREP box:
36//
37//  G4BREPSolidBox(const G4String& name,
38//                 const G4Point3D& Pt1, const G4Point3D& Pt2,
39//                 const G4Point3D& Pt3, const G4Point3D& Pt4,
40//                 const G4Point3D& Pt5, const G4Point3D& Pt6,
41//                 const G4Point3D& Pt7, const G4Point3D& Pt8)     
42// Points have to be given in following way:
43//  First for YZ plane with X fixed to negative value, then
44//        for YZ plane with X xixed to positive value
45//  Examle :     
46//        const G4Point3D Pt1(-x,-y,-z);
47//        const G4Point3D Pt2(-x,-y, z);
48//        const G4Point3D Pt3(-x, y, z);
49//        const G4Point3D Pt4(-x, y,-z);
50//        const G4Point3D Pt5( x,-y,-z);
51//        const G4Point3D Pt6( x,-y, z);
52//        const G4Point3D Pt7( x, y, z);
53//        const G4Point3D Pt8( x, y,-z);
54// Authors: J.Sulkimo, P.Urban.
55// Revisions by: L.Broglia, G.Cosmo.
56// ----------------------------------------------------------------------
57#ifndef __G4BREPSolidBOX
58#define __G4BREPSolidBOX
59
60#include "G4BREPSolid.hh"
61#include "G4RotationMatrix.hh"
62
63class G4BREPSolidBox : public G4BREPSolid
64{
65
66public: // with description
67
68  G4BREPSolidBox(const G4String&,  const G4Point3D&, const G4Point3D&, 
69                 const G4Point3D&, const G4Point3D&, const G4Point3D&, 
70                 const G4Point3D&, const G4Point3D&, const G4Point3D& );       
71    // Constructor defining the box through its planes.
72
73  ~G4BREPSolidBox();
74    // Empty destructor.
75
76  EInside Inside(register const G4ThreeVector& Pt) const;
77    // Determines if the point Pt is inside, outside or on the surface
78    // of the solid.
79
80  virtual std::ostream& StreamInfo(std::ostream& os) const;
81    // Streams solid contents to output stream.
82
83public:  // without description
84
85  G4BREPSolidBox(__void__&);
86    // Fake default constructor for usage restricted to direct object
87    // persistency for clients requiring preallocation of memory for
88    // persistifiable objects.
89
90private:
91
92  G4BREPSolidBox(const G4BREPSolidBox&);
93  G4BREPSolidBox& operator=(const G4BREPSolidBox&);
94    // Private copy constructor and assignment operator.
95
96private:
97
98  G4RotationMatrix Rotation;
99  G4Point3D constructorParams[8];
100
101};
102
103#endif
Note: See TracBrowser for help on using the repository browser.