VGM Version 5.3
Loading...
Searching...
No Matches
IEllipsoid.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_ELLIPSOID_H
21#define VGM_I_ELLIPSOID_H
22
23#include "VGM/solids/ISolid.h"
24
25#include <iostream>
26
27namespace VGM {
28
29class IEllipsoid : public virtual ISolid
30{
31 public:
32 virtual ~IEllipsoid() {}
33
34 // methods
35
36 virtual SolidType Type() const = 0;
37 virtual std::string Name() const = 0;
38
41 virtual double XSemiAxis() const = 0;
44 virtual double YSemiAxis() const = 0;
47 virtual double ZSemiAxis() const = 0;
50 virtual double ZBottomCut() const = 0;
53 virtual double ZTopCut() const = 0;
54
55 // streaming
56 virtual std::ostream& Put(std::ostream& out) const = 0;
57};
58} // namespace VGM
59
60std::ostream& operator<<(std::ostream& out, const VGM::IEllipsoid& box);
61
62#endif // VGM_I_ELLIPSOID_H
std::ostream & operator<<(std::ostream &out, const VGM::IEllipsoid &box)
The VGM interface to ellipsoid solids.
Definition IEllipsoid.h:30
virtual ~IEllipsoid()
Definition IEllipsoid.h:32
virtual std::ostream & Put(std::ostream &out) const =0
Put the printing of the solid parameters in the out stream.
virtual double ZBottomCut() const =0
Return the z bottom cut in mm.
virtual double ZSemiAxis() const =0
Return the semi-axis of the ellipse along z in mm.
virtual double ZTopCut() const =0
Return the z top cut in mm.
virtual SolidType Type() const =0
Return the type of this solid.
virtual std::string Name() const =0
Return the name of this solid.
virtual double XSemiAxis() const =0
Return the semi-axis of the ellipse along x in mm.
virtual double YSemiAxis() const =0
Return the semi-axis of the ellipse along y in mm.
The VGM interface to solids.
Definition ISolid.h:58
VGM interfaces.
Definition VMedium.h:28
SolidType
Definition ISolid.h:29