Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4Axis2Placement3D.hh
Go to the documentation of this file.
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$
28//
29// ----------------------------------------------------------------------
30// Class G4Axis2Placement3D
31//
32// Class description:
33//
34// Class defining an axis placed in a 3D space.
35// Attributes are: a point location, an axis vector with its
36// reference direction and coordinates in space.
37
38// Authors: J.Sulkimo, P.Urban.
39// Revisions by: L.Broglia, G.Cosmo.
40// ----------------------------------------------------------------------
41#ifndef __G4Placement3D_h
42#define __G4Placement3D_h 1
43
44#include "G4Point3D.hh"
45#include "G4Vector3D.hh"
46#include "G4Transform3D.hh"
47#include "G4PointRat.hh"
48#include "G4Ray.hh"
49
51{
52
53public: // with description
54
56 G4Axis2Placement3D( const G4Vector3D& refDirection0 ,
57 const G4Vector3D& axis0 ,
58 const G4Point3D& location0 );
60 // Constructors & destructor
61
64 // Copy constructor and assignment operator.
65
66 inline G4bool operator==(const G4Axis2Placement3D& other) const;
67 // Equality operator.
68
69 inline void Init( const G4Vector3D& refDirection0 ,
70 const G4Vector3D& axis0 ,
71 const G4Point3D& location0 );
72
73 inline G4Point3D GetLocation() const;
74 inline G4Vector3D GetAxis() const;
76 // Get/Set for geometric data
77
78 inline G4Vector3D GetPX() const;
79 inline G4Vector3D GetPY() const;
80 inline G4Vector3D GetPZ() const;
81 // Placement coordinate axes
82
85 // Transformation from/to the placement coordinate system
86
87public:
88
89 //inline void Project (G4ThreeVec& Coord, const G4ThreeVec& Pt2,
90 // const G4Plane& Pl1, const G4Plane& Pl2)
91 // {
92 // Coord.X(Pt2.X()*Pl1.a + Pt2.Y()*Pl1.b + Pt2.Z()*Pl1.c - Pl1.d);
93 // Coord.Y(Pt2.X()*Pl2.a + Pt2.Y()*Pl2.b + Pt2.Z()*Pl2.c - Pl2.d);
94 // Coord.Z(0);
95 // }
96
97private:
98
99 // geometric data
100 G4Point3D location;
101 G4Vector3D axis;
102 G4Vector3D refDirection;
103
104 // placement coordinate axes
105 G4Vector3D pX, pY, pZ;
106
107 G4Transform3D toPlacementCoordinates;
108 G4Transform3D fromPlacementCoordinates;
109
110};
111
112#include "G4Axis2Placement3D.icc"
113
114#endif
bool G4bool
Definition: G4Types.hh:67
G4Vector3D GetPY() const
G4Vector3D GetPX() const
const G4Transform3D & GetFromPlacementCoordinates() const
G4bool operator==(const G4Axis2Placement3D &other) const
G4Axis2Placement3D & operator=(const G4Axis2Placement3D &)
const G4Transform3D & GetToPlacementCoordinates() const
void Init(const G4Vector3D &refDirection0, const G4Vector3D &axis0, const G4Point3D &location0)
G4Point3D GetLocation() const
G4Vector3D GetAxis() const
G4Vector3D GetPZ() const
G4Vector3D GetRefDirection() const
G4Axis2Placement3D(const G4Vector3D &refDirection0, const G4Vector3D &axis0, const G4Point3D &location0)