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 G4Assembly 00031 // 00032 // Class description: 00033 // 00034 // Object providing access to the final assembled geometry as read, for 00035 // instance, from a STEP file description. It owns a vector of placed 00036 // solids which must be initialised through the SetPlacedVector() 00037 // method. Currently, it simply provides a way to retrieve the pointer 00038 // to each placed solid, and to determine the number of solids currently 00039 // placed. 00040 00041 // Authors: J.Sulkimo, P.Urban. 00042 // Revisions by: L.Broglia, G.Cosmo. 00043 // ---------------------------------------------------------------------- 00044 00045 #ifndef G4ASSEMBLY_HH 00046 #define G4ASSEMBLY_HH 00047 00048 #include <vector> 00049 #include "G4PlacedSolid.hh" 00050 #include "G4BREPSolid.hh" 00051 00052 typedef std::vector<G4PlacedSolid*> G4PlacedVector; 00053 00054 class G4Assembly 00055 { 00056 00057 public: // with description 00058 00059 G4Assembly(); 00060 ~G4Assembly(); 00061 // Constructor & destructor 00062 00063 void SetPlacedVector(G4PlacedVector&); 00064 inline G4PlacedSolid* GetPlacedSolid(G4int solidNumber) const; 00065 inline G4int GetNumberOfSolids() const; 00066 00067 private: 00068 00069 G4Assembly(const G4Assembly&); 00070 G4Assembly& operator=(const G4Assembly&); 00071 // Private copy constructor and assignment operator. 00072 00073 private: 00074 00075 G4int numberOfSolids; 00076 G4PlacedVector placedVec; 00077 00078 }; 00079 00080 #include "G4Assembly.icc" 00081 00082 #endif