VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VArb8.cxx
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The BaseVGM 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
12
//
13
// Class VArb8
14
// ---------------------
15
// The ABC for Arb8 solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VArb8.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IArb8
& arb8)
23
{
24
const
VGM::ISolid
& Arb8 = arb8;
25
out << Arb8;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VArb8::VArb8
() :
VGM
::IArb8()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VArb8::~VArb8
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VArb8::Put
(std::ostream& out)
const
43
{
44
out << std::endl;
45
out <<
NofVertices
() <<
" vertices:"
<< std::endl;
46
for
(
int
i = 0; i <
NofVertices
(); i++) {
47
out <<
" ("
<<
Vertex
(i).first <<
", "
<<
Vertex
(i).second <<
")"
;
48
}
49
out <<
" mm"
<< std::endl;
50
out <<
" twist angles:"
;
51
for
(
int
i = 0; i < 4; i++) {
52
out <<
" "
<<
TwistAngle
(i);
53
}
54
out <<
" rad"
<< std::endl;
55
out <<
" hz = "
<<
ZHalfLength
() <<
"mm"
<< std::endl;
56
57
return
out;
58
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IArb8 &arb8)
Definition
VArb8.cxx:22
VArb8.h
BaseVGM::VArb8::VArb8
VArb8()
Definition
VArb8.cxx:30
BaseVGM::VArb8::~VArb8
virtual ~VArb8()
Definition
VArb8.cxx:36
BaseVGM::VArb8::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VArb8.cxx:42
VGM::IArb8
The VGM interface to Arb8 solids.
Definition
IArb8.h:31
VGM::IArb8::ZHalfLength
virtual double ZHalfLength() const =0
Return the half-length along the z axis in mm.
VGM::IArb8::NofVertices
virtual int NofVertices() const =0
Return the number of vertices.
VGM::IArb8::Vertex
virtual TwoVector Vertex(int index) const =0
Return the index-th vertex.
VGM::IArb8::TwistAngle
virtual double TwistAngle(int index) const =0
Return the index-th twist angle.
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0