VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
VGM
include
VGM
solids
ITorus.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_TORUS_H
21
#define VGM_I_TORUS_H
22
23
#include "
VGM/solids/ISolid.h
"
24
25
#include <iostream>
26
27
namespace
VGM
{
28
29
class
ITorus
:
public
virtual
ISolid
30
{
31
public
:
32
virtual
~ITorus
() {}
33
34
// methods
35
36
virtual
SolidType
Type
()
const
= 0;
37
virtual
std::string
Name
()
const
= 0;
38
41
virtual
double
InnerRadius
()
const
= 0;
44
virtual
double
OuterRadius
()
const
= 0;
47
virtual
double
AxialRadius
()
const
= 0;
51
virtual
double
StartPhi
()
const
= 0;
54
virtual
double
DeltaPhi
()
const
= 0;
55
56
// streaming
57
virtual
std::ostream&
Put
(std::ostream& out)
const
= 0;
58
};
59
60
}
// namespace VGM
61
62
std::ostream&
operator<<
(std::ostream& out,
const
VGM::ITorus
& torus);
63
64
#endif
// VGM_I_TORUS_H
ISolid.h
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::ITorus &torus)
Definition
VTorus.cxx:22
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM::ITorus
The VGM interface to torus solids.
Definition
ITorus.h:30
VGM::ITorus::OuterRadius
virtual double OuterRadius() const =0
Return the outside radius of the torus in mm.
VGM::ITorus::StartPhi
virtual double StartPhi() const =0
Return the starting phi angle of the segment in deg (with 0 being the +x axis).
VGM::ITorus::AxialRadius
virtual double AxialRadius() const =0
Return the axial (swept) radius of the torus in mm.
VGM::ITorus::~ITorus
virtual ~ITorus()
Definition
ITorus.h:32
VGM::ITorus::DeltaPhi
virtual double DeltaPhi() const =0
Return the opening phi angle of the segment in deg.
VGM::ITorus::Type
virtual SolidType Type() const =0
Return the type of this solid.
VGM::ITorus::InnerRadius
virtual double InnerRadius() const =0
Return the inside radius of the torus in mm.
VGM::ITorus::Put
virtual std::ostream & Put(std::ostream &out) const =0
Put the printing of the solid parameters in the out stream.
VGM::ITorus::Name
virtual std::string Name() const =0
Return the name of this solid.
VGM
VGM interfaces.
Definition
VMedium.h:28
VGM::SolidType
SolidType
Definition
ISolid.h:29
Generated on
for VGM by
1.17.0