source: trunk/source/geometry/solids/BREPS/include/G4Axis2Placement3D.hh@ 1350

Last change on this file since 1350 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 4.1 KB
RevLine 
[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: G4Axis2Placement3D.hh,v 1.5 2006/06/29 18:37:38 gunter Exp $
[1337]28// GEANT4 tag $Name: geant4-09-04-beta-01 $
[831]29//
30// ----------------------------------------------------------------------
31// Class G4Axis2Placement3D
32//
33// Class description:
34//
35// Class defining an axis placed in a 3D space.
36// Attributes are: a point location, an axis vector with its
37// reference direction and coordinates in space.
38
39// Authors: J.Sulkimo, P.Urban.
40// Revisions by: L.Broglia, G.Cosmo.
41// ----------------------------------------------------------------------
42#ifndef __G4Placement3D_h
43#define __G4Placement3D_h 1
44
45#include "G4Point3D.hh"
46#include "G4Vector3D.hh"
47#include "G4Transform3D.hh"
48#include "G4PointRat.hh"
49#include "G4Ray.hh"
50
51class G4Axis2Placement3D
52{
53
54public: // with description
55
56 G4Axis2Placement3D();
57 G4Axis2Placement3D( const G4Vector3D& refDirection0 ,
58 const G4Vector3D& axis0 ,
59 const G4Point3D& location0 );
60 ~G4Axis2Placement3D();
61 // Constructors & destructor
62
63 G4Axis2Placement3D(const G4Axis2Placement3D&);
64 G4Axis2Placement3D& operator=(const G4Axis2Placement3D&);
65 // Copy constructor and assignment operator.
66
67 inline G4bool operator==(const G4Axis2Placement3D& other) const;
68 // Equality operator.
69
70 inline void Init( const G4Vector3D& refDirection0 ,
71 const G4Vector3D& axis0 ,
72 const G4Point3D& location0 );
73
74 inline G4Point3D GetLocation() const;
75 inline G4Vector3D GetAxis() const;
76 inline G4Vector3D GetRefDirection() const;
77 // Get/Set for geometric data
78
79 inline G4Vector3D GetPX() const;
80 inline G4Vector3D GetPY() const;
81 inline G4Vector3D GetPZ() const;
82 // Placement coordinate axes
83
84 inline const G4Transform3D& GetToPlacementCoordinates() const;
85 inline const G4Transform3D& GetFromPlacementCoordinates() const;
86 // Transformation from/to the placement coordinate system
87
88public:
89
90 //inline void Project (G4ThreeVec& Coord, const G4ThreeVec& Pt2,
91 // const G4Plane& Pl1, const G4Plane& Pl2)
92 // {
93 // Coord.X(Pt2.X()*Pl1.a + Pt2.Y()*Pl1.b + Pt2.Z()*Pl1.c - Pl1.d);
94 // Coord.Y(Pt2.X()*Pl2.a + Pt2.Y()*Pl2.b + Pt2.Z()*Pl2.c - Pl2.d);
95 // Coord.Z(0);
96 // }
97
98private:
99
100 // geometric data
101 G4Point3D location;
102 G4Vector3D axis;
103 G4Vector3D refDirection;
104
105 // placement coordinate axes
106 G4Vector3D pX, pY, pZ;
107
108 G4Transform3D toPlacementCoordinates;
109 G4Transform3D fromPlacementCoordinates;
110
111};
112
113#include "G4Axis2Placement3D.icc"
114
115#endif
Note: See TracBrowser for help on using the repository browser.