VGM Version 5.3
Loading...
Searching...
No Matches
DisplacedSolid.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The Geant4GM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
19
20#ifndef GEANT4_GM_DISPLACED_SOLID_H
21#define GEANT4_GM_DISPLACED_SOLID_H
22
24
26
27#include <iostream>
28
29class G4VSolid;
30class G4DisplacedSolid;
31class G4ReflectedSolid;
32
33namespace Geant4GM {
34
36{
37 public:
38 DisplacedSolid(const std::string& name, VGM::ISolid* constituentSolid,
39 CLHEP::HepRotation* rotation, const CLHEP::Hep3Vector& translation);
41 G4DisplacedSolid* displacedSolid, G4ReflectedSolid* reflectedDisplaced);
42 virtual ~DisplacedSolid();
43
44 // methods
45 virtual std::string Name() const;
46
47 virtual VGM::ISolid* ConstituentSolid() const;
48 virtual VGM::Transform Displacement() const;
49 virtual bool ToBeReflected() const;
50
51 protected:
54
55 private:
56 G4DisplacedSolid* fDisplacedSolid;
57 bool fToBeReflected;
58};
59
60} // namespace Geant4GM
61
63{
64 return fToBeReflected;
65}
66
67#endif // GEANT4_GM_DISPLACED_SOLID_H
The ABC for displaced solids.
VGM implementation for Geant4 displaced solid.
virtual std::string Name() const
Return the name of this solid.
virtual bool ToBeReflected() const
virtual VGM::ISolid * ConstituentSolid() const
Return the constituent solid.
virtual VGM::Transform Displacement() const
Return the 3D displacement of the constituent solid.
The VGM interface to solids.
Definition ISolid.h:58
VGM implementation for Geant4.
Definition Element.h:29
std::vector< double > Transform
Definition Transform.h:40