64 lines
1.5 KiB
C++
64 lines
1.5 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: G4GRSSolid.hh,v 1.4 2000/11/01 16:51:05 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-03-00 $
|
|
//
|
|
//
|
|
// class G4GRSSolid
|
|
//
|
|
// Class description:
|
|
//
|
|
// Object representing a touchable solid - maintains the association
|
|
// between a solid and its net resultant local->global transform.
|
|
//
|
|
// NOTE: The (optional) rotation matrix is copied
|
|
|
|
// History:
|
|
// - Created. Paul Kent, August 1996
|
|
|
|
#ifndef G4GRSSOLID_HH
|
|
#define G4GRSSOLID_HH
|
|
|
|
#include "G4VTouchable.hh"
|
|
|
|
#include "G4VPhysicalVolume.hh"
|
|
#include "G4RotationMatrix.hh"
|
|
|
|
class G4GRSSolid : public G4VTouchable
|
|
{
|
|
public: // with description
|
|
|
|
G4GRSSolid(G4VSolid *pSolid,
|
|
const G4RotationMatrix *pRot,
|
|
const G4ThreeVector &tlate);
|
|
G4GRSSolid(G4VSolid *pSolid,
|
|
const G4RotationMatrix &rot,
|
|
const G4ThreeVector &tlate);
|
|
~G4GRSSolid();
|
|
|
|
inline G4VSolid* GetSolid(G4int depth=0) const;
|
|
inline const G4ThreeVector& GetTranslation(G4int depth=0) const;
|
|
inline const G4RotationMatrix* GetRotation(G4int depth=0) const;
|
|
|
|
private:
|
|
|
|
G4GRSSolid(const G4GRSSolid&);
|
|
G4GRSSolid& operator=(const G4GRSSolid&);
|
|
// Copy constructor and assignment operator NOT public
|
|
|
|
private:
|
|
|
|
G4VSolid *fsolid;
|
|
G4RotationMatrix *frot;
|
|
G4ThreeVector ftlate;
|
|
};
|
|
|
|
#include "G4GRSSolid.icc"
|
|
|
|
#endif
|