VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
VGM
include
VGM
solids
IPolyhedra.h
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The VGM 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
19
20
#ifndef VGM_I_POLYHEDRA_H
21
#define VGM_I_POLYHEDRA_H
22
23
#include "
VGM/solids/ISolid.h
"
24
25
#include <iostream>
26
27
namespace
VGM
{
28
29
class
IPolyhedra
:
public
virtual
ISolid
30
{
31
public
:
32
virtual
~IPolyhedra
() {}
33
34
// methods
35
36
virtual
SolidType
Type
()
const
= 0;
37
virtual
std::string
Name
()
const
= 0;
38
41
virtual
double
StartPhi
()
const
= 0;
44
virtual
double
DeltaPhi
()
const
= 0;
48
virtual
int
NofSides
()
const
= 0;
51
virtual
int
NofZPlanes
()
const
= 0;
54
virtual
double
*
ZValues
()
const
= 0;
57
virtual
double
*
InnerRadiusValues
()
const
= 0;
60
virtual
double
*
OuterRadiusValues
()
const
= 0;
61
62
// streaming
63
virtual
std::ostream&
Put
(std::ostream& out)
const
= 0;
64
};
65
66
}
// namespace VGM
67
68
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IPolyhedra
& polyhedra);
69
70
#endif
// VGM_I_POLYHEDRA_H
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IPolyhedra &polyhedra)
Definition
VPolyhedra.cxx:24
ISolid.h
VGM::IPolyhedra
The VGM interface to polyhedra solids.
Definition
IPolyhedra.h:30
VGM::IPolyhedra::Name
virtual std::string Name() const =0
Return the name of this solid.
VGM::IPolyhedra::Type
virtual SolidType Type() const =0
Return the type of this solid.
VGM::IPolyhedra::OuterRadiusValues
virtual double * OuterRadiusValues() const =0
Return the array of outer radius of the planes in mm.
VGM::IPolyhedra::NofSides
virtual int NofSides() const =0
Return number of sides of the cross section between the given phi limits.
VGM::IPolyhedra::StartPhi
virtual double StartPhi() const =0
Return starting phi angle of the segment in deg.
VGM::IPolyhedra::InnerRadiusValues
virtual double * InnerRadiusValues() const =0
Return the array of innner radius of the planes in mm.
VGM::IPolyhedra::ZValues
virtual double * ZValues() const =0
Return the array of z positions of the planes in mm.
VGM::IPolyhedra::DeltaPhi
virtual double DeltaPhi() const =0
Return opening phi angle of the segment in deg.
VGM::IPolyhedra::NofZPlanes
virtual int NofZPlanes() const =0
Return number of planes perpendicular to the z axis.
VGM::IPolyhedra::Put
virtual std::ostream & Put(std::ostream &out) const =0
Put the printing of the solid parameters in the out stream.
VGM::IPolyhedra::~IPolyhedra
virtual ~IPolyhedra()
Definition
IPolyhedra.h:32
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM
VGM interfaces.
Definition
VMedium.h:28
VGM::SolidType
SolidType
Definition
ISolid.h:29
Generated on
for VGM by
1.17.0