// // ******************************************************************** // * 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: G4PlacedPolyhedron.hh,v 1.9 2001/07/11 10:01:02 gunter Exp $ // GEANT4 tag $Name: geant4-05-01 $ // Class Description: // G4Polyhedron placed in the real world. // It has information of its location and orientation. // Class Description - End: #ifndef G4PLACEDPOLYHEDRON_HH #define G4PLACEDPOLYHEDRON_HH #include "G4Polyhedron.hh" #include "G4Transform3D.hh" #include "g4std/vector" class G4PlacedPolyhedron { public: // With description G4PlacedPolyhedron (); G4PlacedPolyhedron (const G4Polyhedron&, const G4Transform3D&); // Uses default copy constructor, destructor and assignment. G4bool operator == (const G4PlacedPolyhedron& right) const { return this == &right; } const G4Polyhedron& GetPolyhedron () const {return fPolyhedron;} const G4Transform3D& GetTransform () const {return fTransform;} void SetPolyhedron (const G4Polyhedron& polyhedron) { fPolyhedron = polyhedron; } void SetTransform (const G4Transform3D& transform) { fTransform = transform; } private: G4Polyhedron fPolyhedron; G4Transform3D fTransform; }; typedef G4std::vector G4PlacedPolyhedronList; #endif /* G4PLACEDPOLYHEDRON_HH */