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

48 lines
981 B
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.1.10.1 1999/12/07 20:48:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4PLACEDSOLID_HH
#define G4PLACEDSOLID_HH
#include "G4BREPSolid.hh"
class G4PlacedSolid
{
public:
G4PlacedSolid();
G4PlacedSolid(G4BREPSolid*, G4Axis2Placement3D* =0);
~G4PlacedSolid();
G4VSolid* GetSolid() { return solid; }
HepRotation* GetRotation() { return solidRotation; }
G4ThreeVector* GetTranslation() { return solidTranslation; }
G4bool operator==(const G4PlacedSolid& ps) const
{
return (this==&ps) ? true : false;
}
private:
G4BREPSolid* solid;
HepRotation* solidRotation;
G4ThreeVector* solidTranslation;
};
#endif