G4VPhysicalVolume.icc

Go to the documentation of this file.
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 G4VPhysicalVolume Inline Implementation
00031 //
00032 // --------------------------------------------------------------------
00033 
00034 inline
00035 G4bool G4VPhysicalVolume::operator == (const G4VPhysicalVolume& right) const
00036 {
00037   return (this==&right) ? true : false;
00038 }
00039 
00040 inline
00041 const G4ThreeVector& G4VPhysicalVolume::GetTranslation() const
00042 {
00043   return ftrans;
00044 }
00045 
00046 inline
00047 void G4VPhysicalVolume::SetTranslation(const G4ThreeVector &vec)
00048 {
00049   ftrans=vec;
00050 }
00051 
00052 inline
00053 const G4RotationMatrix* G4VPhysicalVolume::GetRotation() const
00054 {
00055   return frot;
00056 }
00057 
00058 inline
00059 G4RotationMatrix* G4VPhysicalVolume::GetRotation()
00060 {
00061   return frot;
00062 }
00063 
00064 inline
00065 void G4VPhysicalVolume::SetRotation(G4RotationMatrix *pRot)
00066 {
00067   frot=pRot;
00068 }
00069 
00070 inline
00071 G4LogicalVolume* G4VPhysicalVolume::GetLogicalVolume() const
00072 {
00073   return flogical;
00074 }
00075 
00076 inline
00077 void G4VPhysicalVolume::SetLogicalVolume(G4LogicalVolume *pLogical)
00078 {
00079   flogical=pLogical;
00080 }
00081 
00082 inline
00083 G4LogicalVolume* G4VPhysicalVolume::GetMotherLogical() const
00084 {
00085   return flmother;
00086 }
00087 
00088 inline
00089 void G4VPhysicalVolume::SetMotherLogical(G4LogicalVolume *pMother)
00090 {
00091   flmother=pMother;
00092 }
00093 
00094 inline
00095 const G4String& G4VPhysicalVolume::GetName() const
00096 {
00097   return fname;
00098 }
00099 
00100 inline
00101 void G4VPhysicalVolume::SetName(const G4String& pName)
00102 {
00103   fname=pName;
00104 }
00105 
00106 inline
00107 G4RotationMatrix G4VPhysicalVolume::GetObjectRotationValue() const
00108 {
00109   G4RotationMatrix  aRotM;   // Initialised to identity
00110 
00111   // Insure against frot being a null pointer
00112   if(frot)
00113   {
00114      aRotM= frot->inverse();
00115   }
00116   return aRotM;
00117 }
00118 
00119 inline
00120 G4ThreeVector  G4VPhysicalVolume::GetObjectTranslation() const
00121 {
00122   return  ftrans;
00123 }
00124 
00125 inline
00126 const G4RotationMatrix* G4VPhysicalVolume::GetFrameRotation() const
00127 {
00128   return frot;
00129 }
00130 
00131 inline
00132 G4ThreeVector  G4VPhysicalVolume::GetFrameTranslation() const
00133 {
00134   return -ftrans;
00135 }

Generated on Mon May 27 17:50:19 2013 for Geant4 by  doxygen 1.4.7