VGM Version 5.3
Loading...
Searching...
No Matches
Box.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_BOX_H
21#define GEANT4_GM_BOX_H
22
23#include "BaseVGM/solids/VBox.h"
24
25#include <string>
26
27class G4Box;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
32class Box : public BaseVGM::VBox
33{
34 public:
35 Box(const std::string& name, double hx, double hy, double hz);
36 Box(G4Box* box, G4ReflectedSolid* reflBox = 0);
37 virtual ~Box();
38
39 // methods
40 virtual std::string Name() const;
41 virtual double XHalfLength() const;
42 virtual double YHalfLength() const;
43 virtual double ZHalfLength() const;
44
45 protected:
46 Box();
47 Box(const Box& rhs);
48
49 private:
50 G4Box* fBox;
51};
52
53} // namespace Geant4GM
54
55#endif // GEANT4_GM_BOX_H
The ABC for box solids.
Definition VBox.h:30
VGM implementation for Geant4 box solid.
Definition Box.h:33
virtual std::string Name() const
Return the name of this solid.
Definition Box.cxx:75
virtual double YHalfLength() const
Return the half-length along the y axis in mm.
Definition Box.cxx:84
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Box.cxx:90
virtual double XHalfLength() const
Return the half-length along the x axis in mm.
Definition Box.cxx:78
virtual ~Box()
Definition Box.cxx:69
VGM implementation for Geant4.
Definition Element.h:29