00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // class G4GRSSolid 00031 // 00032 // Class description: 00033 // 00034 // Object representing a touchable solid - maintains the association 00035 // between a solid and its net resultant local->global transform. 00036 // 00037 // NOTE: The (optional) rotation matrix is copied 00038 00039 // History: 00040 // - Created. Paul Kent, August 1996 00041 // ---------------------------------------------------------------------- 00042 #ifndef G4GRSSOLID_HH 00043 #define G4GRSSOLID_HH 00044 00045 #include "G4ThreeVector.hh" 00046 #include "G4RotationMatrix.hh" 00047 #include "G4VTouchable.hh" 00048 00049 class G4VSolid; 00050 00051 class G4GRSSolid : public G4VTouchable 00052 { 00053 public: // with description 00054 00055 G4GRSSolid(G4VSolid *pSolid, 00056 const G4RotationMatrix *pRot, 00057 const G4ThreeVector &tlate); 00058 G4GRSSolid(G4VSolid *pSolid, 00059 const G4RotationMatrix &rot, 00060 const G4ThreeVector &tlate); 00061 ~G4GRSSolid(); 00062 00063 inline G4VSolid* GetSolid(G4int depth=0) const; 00064 inline const G4ThreeVector& GetTranslation(G4int depth=0) const; 00065 inline const G4RotationMatrix* GetRotation(G4int depth=0) const; 00066 00067 private: 00068 00069 G4GRSSolid(const G4GRSSolid&); 00070 G4GRSSolid& operator=(const G4GRSSolid&); 00071 // Copy constructor and assignment operator NOT public 00072 00073 private: 00074 00075 G4VSolid *fsolid; 00076 G4RotationMatrix *frot; 00077 G4ThreeVector ftlate; 00078 }; 00079 00080 #include "G4GRSSolid.icc" 00081 00082 #endif