81 lines
2.8 KiB
C++
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.8 2001/07/11 09:59:30 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-05-00 $
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
// 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 "g4std/vector"
|
|
#include "G4PlacedSolid.hh"
|
|
#include "G4BREPSolid.hh"
|
|
|
|
typedef G4std::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
|