VGM Version 5.3
Loading...
Searching...
No Matches
VPolyhedra.h
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
13//
19
20#ifndef BASE_VGM_V_POLYHEDRA_H
21#define BASE_VGM_V_POLYHEDRA_H
22
24
25#include <iostream>
26
27namespace BaseVGM {
28
29class VPolyhedra : public virtual VGM::IPolyhedra
30{
31 public:
32 VPolyhedra();
33 virtual ~VPolyhedra();
34
35 // methods
36 virtual VGM::SolidType Type() const;
37
38 double ConvertRadiusFactor() const;
39 // converts radius of the sides to radius of the corners:
40 // r_corners = r_sides/factor
41
42 // streaming
43 virtual std::ostream& Put(std::ostream& out) const;
44};
45
46} // namespace BaseVGM
47
48// inline functions
49
54
55#endif // BASE_VGM_V_POLYHEDRA_H
The ABC for polyhedra solids.
Definition VPolyhedra.h:30
virtual VGM::SolidType Type() const
Return the type of this solid.
Definition VPolyhedra.h:50
double ConvertRadiusFactor() const
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
The VGM interface to polyhedra solids.
Definition IPolyhedra.h:30
BaseVGM utilities.
Definition utilities.h:23
SolidType
Definition ISolid.h:29
@ kPolyhedra
Definition ISolid.h:41