Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,43 +5,59 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PlacedSolid.hh,v 1.2 1999/12/15 14:49:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $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:
|
||||
|
||||
public: // with description
|
||||
|
||||
G4PlacedSolid();
|
||||
G4PlacedSolid(G4BREPSolid*, G4Axis2Placement3D* =0);
|
||||
~G4PlacedSolid();
|
||||
|
||||
G4VSolid* GetSolid() { return solid; }
|
||||
HepRotation* GetRotation() { return solidRotation; }
|
||||
G4ThreeVector* GetTranslation() { return solidTranslation; }
|
||||
// Constructors & destructor
|
||||
|
||||
G4bool operator==(const G4PlacedSolid& ps) const
|
||||
{
|
||||
return (this==&ps) ? true : false;
|
||||
}
|
||||
inline G4bool operator==(const G4PlacedSolid& ps) const;
|
||||
// Equality operator.
|
||||
|
||||
inline G4VSolid* GetSolid() const;
|
||||
inline G4RotationMatrix* GetRotation() const;
|
||||
inline G4ThreeVector* GetTranslation() const;
|
||||
// Accessors.
|
||||
|
||||
private:
|
||||
|
||||
G4BREPSolid* solid;
|
||||
HepRotation* solidRotation;
|
||||
G4ThreeVector* solidTranslation;
|
||||
G4PlacedSolid(const G4PlacedSolid&);
|
||||
G4PlacedSolid& operator=(const G4PlacedSolid&);
|
||||
// Private copy constructor and assignment operator.
|
||||
|
||||
private:
|
||||
|
||||
G4BREPSolid* solid;
|
||||
G4RotationMatrix* solidRotation;
|
||||
G4ThreeVector* solidTranslation;
|
||||
|
||||
};
|
||||
|
||||
#include "G4PlacedSolid.icc"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user