Files
geant4/source/geometry/solids/BREPS/include/G4Assembly.hh
T
2016-06-09 10:49:58 +02:00

81 lines
2.8 KiB
C++

//
// ********************************************************************
// * 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: G4Assembly.hh,v 1.9 2003/06/16 16:52:21 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
//
// ----------------------------------------------------------------------
// Class G4Assembly
//
// Class description:
//
// Object providing access to the final assembled geometry as read, for
// instance, from a STEP file description. It owns a vector of placed
// solids which must be initialised through the SetPlacedVector()
// method. Currently, it simply provides a way to retrieve the pointer
// to each placed solid, and to determine the number of solids currently
// placed.
// Authors: J.Sulkimo, P.Urban.
// Revisions by: L.Broglia, G.Cosmo.
// ----------------------------------------------------------------------
#ifndef G4ASSEMBLY_HH
#define G4ASSEMBLY_HH
#include <vector>
#include "G4PlacedSolid.hh"
#include "G4BREPSolid.hh"
typedef std::vector<G4PlacedSolid*> G4PlacedVector;
class G4Assembly
{
public: // with description
G4Assembly();
~G4Assembly();
// Constructor & destructor
void SetPlacedVector(G4PlacedVector&);
inline G4PlacedSolid* GetPlacedSolid(G4int solidNumber) const;
inline G4int GetNumberOfSolids() const;
private:
G4Assembly(const G4Assembly&);
G4Assembly& operator=(const G4Assembly&);
// Private copy constructor and assignment operator.
private:
G4int numberOfSolids;
G4PlacedVector placedVec;
};
#include "G4Assembly.icc"
#endif