Files
geant4/source/geometry/solids/BREPS/include/G4PlacedSolid.hh
T
2016-06-08 15:55:53 +02:00

64 lines
1.6 KiB
C++

// 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: G4PlacedSolid.hh,v 1.6 2000/11/09 19:12:52 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// ----------------------------------------------------------------------
// Class G4PlacedSolid
//
// Class description:
//
// Class for a generic BREP solid placed in a 3D space.
// Attributes are: the solid, a traslation vector and a
// rotation matrix.
// Authors: J.Sulkimo, P.Urban.
// Revisions by: L.Broglia, G.Cosmo.
// ----------------------------------------------------------------------
#ifndef G4PLACEDSOLID_HH
#define G4PLACEDSOLID_HH
#include "G4BREPSolid.hh"
#include "G4RotationMatrix.hh"
class G4PlacedSolid
{
public: // with description
G4PlacedSolid();
G4PlacedSolid(G4BREPSolid*, G4Axis2Placement3D* =0);
~G4PlacedSolid();
// Constructors & destructor
inline G4bool operator==(const G4PlacedSolid& ps) const;
// Equality operator.
inline G4VSolid* GetSolid() const;
inline G4RotationMatrix* GetRotation() const;
inline G4ThreeVector* GetTranslation() const;
// Accessors.
private:
G4PlacedSolid(const G4PlacedSolid&);
G4PlacedSolid& operator=(const G4PlacedSolid&);
// Private copy constructor and assignment operator.
private:
G4BREPSolid* solid;
G4RotationMatrix* solidRotation;
G4ThreeVector* solidTranslation;
};
#include "G4PlacedSolid.icc"
#endif