VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
VGM
include
VGM
solids
ITrd.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_TRD_H
21
#define VGM_I_TRD_H
22
23
#include "
VGM/solids/ISolid.h
"
24
25
#include <iostream>
26
27
namespace
VGM
{
28
29
class
ITrd
:
public
virtual
ISolid
30
{
31
public
:
32
virtual
~ITrd
() {}
33
34
// methods
35
36
virtual
SolidType
Type
()
const
= 0;
37
virtual
std::string
Name
()
const
= 0;
38
41
virtual
double
XHalfLengthMinusZ
()
const
= 0;
45
virtual
double
XHalfLengthPlusZ
()
const
= 0;
49
virtual
double
YHalfLengthMinusZ
()
const
= 0;
53
virtual
double
YHalfLengthPlusZ
()
const
= 0;
56
virtual
double
ZHalfLength
()
const
= 0;
57
58
// streaming
59
virtual
std::ostream&
Put
(std::ostream& out)
const
= 0;
60
};
61
62
}
// namespace VGM
63
64
std::ostream&
operator<<
(std::ostream& out,
const
VGM::ITrd
& trd);
65
66
#endif
// VGM_I_TRD_H
ISolid.h
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::ITrd &trd)
Definition
VTrd.cxx:22
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM::ITrd
The VGM interface to trd solids.
Definition
ITrd.h:30
VGM::ITrd::XHalfLengthPlusZ
virtual double XHalfLengthPlusZ() const =0
Return the half-length along x at the surface positioned at +hz in mm.
VGM::ITrd::YHalfLengthPlusZ
virtual double YHalfLengthPlusZ() const =0
Return thehalf-length along y at the surface positioned at +hz in mm.
VGM::ITrd::Type
virtual SolidType Type() const =0
Return the type of this solid.
VGM::ITrd::~ITrd
virtual ~ITrd()
Definition
ITrd.h:32
VGM::ITrd::XHalfLengthMinusZ
virtual double XHalfLengthMinusZ() const =0
Return the half-length along x at the surface positioned at -hz in mm.
VGM::ITrd::Put
virtual std::ostream & Put(std::ostream &out) const =0
Put the printing of the solid parameters in the out stream.
VGM::ITrd::Name
virtual std::string Name() const =0
Return the name of this solid.
VGM::ITrd::ZHalfLength
virtual double ZHalfLength() const =0
Return the half-length along the z axis in mm.
VGM::ITrd::YHalfLengthMinusZ
virtual double YHalfLengthMinusZ() const =0
Return the half-length along y at the surface positioned at -hz in mm.
VGM
VGM interfaces.
Definition
VMedium.h:28
VGM::SolidType
SolidType
Definition
ISolid.h:29
Generated on
for VGM by
1.17.0