// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4VPVParameterisation.hh,v 1.11 2005/11/24 18:09:22 japost Exp $ // GEANT4 tag $Name: geant4-08-00 $ // // class G4VPVParamterisation // // Class description: // // Parameterisation class, able to compute the transformation and // (indirectly) the dimensions of parameterised volumes, given a // replication number. // History: // 25.07.96 P.Kent Initial stub version // 20.09.96 V.Grichine Modifications for G4Trap/Cons/Sphere // 31.10.96 V.Grichine Modifications for G4Torus/Para // 17.02.98 J.Apostolakis Allowing the parameterisation of Solid type // -------------------------------------------------------------------- #ifndef G4VPVPARAMETERISATION_HH #define G4VPVPARAMETERISATION_HH #include "G4Types.hh" #include "G4VVolumeMaterialScanner.hh" class G4VPhysicalVolume; class G4VTouchable; class G4VSolid; class G4Material; // CSG Entities which may be parameterised/replicated // class G4Box; class G4Tubs; class G4Trd; class G4Trap; class G4Cons; class G4Sphere; class G4Orb; class G4Torus; class G4Para; class G4Polycone; class G4Polyhedra; class G4Hype; class G4VVolumeMaterialScanner; class G4VPVParameterisation { public: virtual void ComputeTransformation(const G4int, G4VPhysicalVolume * ) const = 0; virtual G4VSolid* ComputeSolid(const G4int, G4VPhysicalVolume *); virtual G4Material* ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0); // Refined method, enabling nested parameterisations virtual G4bool IsNested() const; virtual G4VVolumeMaterialScanner* GetMaterialScanner(); // These enable material scan for nested parameterisations virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Tubs &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Trd &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Trap &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Cons &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Sphere &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Orb &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Torus &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Para &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Polycone &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const {} virtual void ComputeDimensions(G4Hype &, const G4int, const G4VPhysicalVolume *) const {} }; #endif