G4VPVParameterisation.hh

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 // class G4VPVParamterisation
00030 //
00031 // Class description:
00032 //
00033 // Parameterisation class, able to compute the transformation and
00034 // (indirectly) the dimensions of parameterised volumes, given a
00035 // replication number.
00036 
00037 // History:
00038 // 25.07.96 P.Kent        Initial stub version
00039 // 20.09.96 V.Grichine    Modifications for G4Trap/Cons/Sphere
00040 // 31.10.96 V.Grichine    Modifications for G4Torus/Para
00041 // 17.02.98 J.Apostolakis Allowing the parameterisation of Solid type
00042 // --------------------------------------------------------------------
00043 #ifndef G4VPVPARAMETERISATION_HH
00044 #define G4VPVPARAMETERISATION_HH
00045 
00046 #include "G4Types.hh"
00047 #include "G4VVolumeMaterialScanner.hh"
00048 
00049 class G4VPhysicalVolume;
00050 class G4VTouchable; 
00051 class G4VSolid;
00052 class G4Material;
00053 
00054 // CSG Entities which may be parameterised/replicated
00055 //
00056 class G4Box;
00057 class G4Tubs;
00058 class G4Trd;
00059 class G4Trap;
00060 class G4Cons;
00061 class G4Sphere;
00062 class G4Orb;
00063 class G4Torus;
00064 class G4Para;
00065 class G4Polycone;
00066 class G4Polyhedra;
00067 class G4Hype;
00068 
00069 class G4VVolumeMaterialScanner; 
00070 
00071 class G4VPVParameterisation
00072 {
00073   public:
00074 
00075     G4VPVParameterisation();
00076     virtual ~G4VPVParameterisation();
00077 
00078   public:  // with description
00079 
00080     virtual void ComputeTransformation(const G4int,
00081                                        G4VPhysicalVolume * ) const = 0;
00082 
00083     virtual G4VSolid*   ComputeSolid(const G4int, G4VPhysicalVolume *);
00084                                        
00085     virtual G4Material* ComputeMaterial(const G4int repNo, 
00086                                         G4VPhysicalVolume *currentVol,
00087                                         const G4VTouchable *parentTouch=0);
00088        //  Refined method, enabling nested parameterisations
00089 
00090     virtual G4bool IsNested() const;
00091     virtual G4VVolumeMaterialScanner* GetMaterialScanner(); 
00092        //   These enable material scan for nested parameterisations
00093 
00094     virtual void ComputeDimensions(G4Box &,
00095                                    const G4int,
00096                                    const G4VPhysicalVolume *) const {}
00097 
00098     virtual void ComputeDimensions(G4Tubs &,
00099                                    const G4int,
00100                                    const G4VPhysicalVolume *) const {}
00101 
00102     virtual void ComputeDimensions(G4Trd &,
00103                                    const G4int,
00104                                    const G4VPhysicalVolume *) const {}
00105         
00106     virtual void ComputeDimensions(G4Trap &,
00107                                    const G4int,
00108                                    const G4VPhysicalVolume *) const {}
00109         
00110     virtual void ComputeDimensions(G4Cons &,
00111                                    const G4int,
00112                                    const G4VPhysicalVolume *) const {}
00113 
00114     virtual void ComputeDimensions(G4Sphere &,
00115                                    const G4int,
00116                                    const G4VPhysicalVolume *) const {}
00117 
00118     virtual void ComputeDimensions(G4Orb &,
00119                                    const G4int,
00120                                    const G4VPhysicalVolume *) const {}
00121 
00122     virtual void ComputeDimensions(G4Torus &,
00123                                    const G4int,
00124                                    const G4VPhysicalVolume *) const {}
00125 
00126     virtual void ComputeDimensions(G4Para &,
00127                                    const G4int,
00128                                    const G4VPhysicalVolume *) const {}
00129 
00130     virtual void ComputeDimensions(G4Polycone &,
00131                                    const G4int,
00132                                    const G4VPhysicalVolume *) const {}
00133 
00134     virtual void ComputeDimensions(G4Polyhedra &,
00135                                    const G4int,
00136                                    const G4VPhysicalVolume *) const {}
00137 
00138     virtual void ComputeDimensions(G4Hype &,
00139                                    const G4int,
00140                                    const G4VPhysicalVolume *) const {}
00141 };
00142 
00143 #endif

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