VGM Version 5.3
Loading...
Searching...
No Matches
Arb8.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM 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 ROOT_GM_ARB8_H
21#define ROOT_GM_ARB8_H
22
24
25#include <string>
26#include <vector>
27
28class TGeoArb8;
29
30namespace RootGM {
31
32class Arb8 : public BaseVGM::VArb8
33{
34 public:
35 Arb8(
36 const std::string& name, double hz, std::vector<VGM::TwoVector> vertices);
37 Arb8(TGeoArb8* arb8);
38 virtual ~Arb8();
39
40 // methods
41 virtual std::string Name() const;
42 virtual int NofVertices() const;
43 virtual VGM::TwoVector Vertex(int index) const;
44 virtual double TwistAngle(int index) const;
45 virtual double ZHalfLength() const;
46
47 protected:
48 Arb8();
49 Arb8(const Arb8& rhs);
50
51 static const int fgkNofVertices;
52
53 TGeoArb8* fArb8;
54};
55
56} // namespace RootGM
57
58#endif // ROOT_GM_ARB8_H
The ABC for Arb8 solids.
Definition VArb8.h:30
VGM implementation for Root Arb8 solid.
Definition Arb8.h:33
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Arb8.cxx:139
virtual ~Arb8()
Definition Arb8.cxx:93
virtual VGM::TwoVector Vertex(int index) const
Return the index-th vertex.
Definition Arb8.cxx:105
virtual std::string Name() const
Return the name of this solid.
Definition Arb8.cxx:99
virtual int NofVertices() const
Return the number of vertices.
Definition Arb8.cxx:102
virtual double TwistAngle(int index) const
Return the index-th twist angle.
Definition Arb8.cxx:125
static const int fgkNofVertices
Definition Arb8.h:51
TGeoArb8 * fArb8
Definition Arb8.h:53
VGM implementation for Root.
Definition axis.h:28
std::pair< double, double > TwoVector
Definition TwoVector.h:28