VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
VGM
include
VGM
solids
IDisplacedSolid.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_DISPLACED_SOLID_H
21
#define VGM_I_DISPLACED_SOLID_H
22
23
#include "
VGM/common/Transform.h
"
24
#include "
VGM/solids/ISolid.h
"
25
26
#include <iostream>
27
28
namespace
VGM
{
29
30
class
IDisplacedSolid
:
public
virtual
ISolid
31
{
32
public
:
33
virtual
~IDisplacedSolid
() {}
34
35
// methods
36
37
virtual
SolidType
Type
()
const
= 0;
38
virtual
std::string
Name
()
const
= 0;
39
42
virtual
ISolid
*
ConstituentSolid
()
const
= 0;
46
virtual
Transform
Displacement
()
const
= 0;
47
48
// streaming
49
virtual
std::ostream&
Put
(std::ostream& out)
const
= 0;
50
};
51
52
}
// namespace VGM
53
54
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IDisplacedSolid
& solid);
55
56
#endif
// VGM_I_BOOLEAN_SOLID_H
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IDisplacedSolid &solid)
Definition
VDisplacedSolid.cxx:25
ISolid.h
Transform.h
VGM::IDisplacedSolid
The VGM interface to displaced solids.
Definition
IDisplacedSolid.h:31
VGM::IDisplacedSolid::ConstituentSolid
virtual ISolid * ConstituentSolid() const =0
Return the constituent solid.
VGM::IDisplacedSolid::Type
virtual SolidType Type() const =0
Return the type of this solid.
VGM::IDisplacedSolid::Displacement
virtual Transform Displacement() const =0
Return the 3D displacement of the constituent solid.
VGM::IDisplacedSolid::Put
virtual std::ostream & Put(std::ostream &out) const =0
Put the printing of the solid parameters in the out stream.
VGM::IDisplacedSolid::~IDisplacedSolid
virtual ~IDisplacedSolid()
Definition
IDisplacedSolid.h:33
VGM::IDisplacedSolid::Name
virtual std::string Name() const =0
Return the name of this solid.
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM
VGM interfaces.
Definition
VMedium.h:28
VGM::Transform
std::vector< double > Transform
Definition
Transform.h:40
VGM::SolidType
SolidType
Definition
ISolid.h:29
Generated on
for VGM by
1.17.0