VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VScaledSolid.cxx
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
12
//
13
// Class VScaledSolid
14
// --------------------
15
// The ABC for Scaled solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VScaledSolid.h
"
20
#include "
BaseVGM/common/utilities.h
"
21
22
#include <math.h>
23
24
//_____________________________________________________________________________
25
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IScaledSolid
& scaled)
26
{
27
const
VGM::ISolid
& scaledSolid = scaled;
28
out << scaledSolid;
29
return
out;
30
}
31
32
//_____________________________________________________________________________
33
BaseVGM::VScaledSolid::VScaledSolid
() :
VGM
::IScaledSolid()
34
{
36
}
37
38
//_____________________________________________________________________________
39
BaseVGM::VScaledSolid::~VScaledSolid
()
40
{
41
//
42
}
43
44
//_____________________________________________________________________________
45
std::ostream&
BaseVGM::VScaledSolid::Put
(std::ostream& out)
const
46
{
47
out <<
" "
48
<<
" Constituent = "
<< *
ConstituentSolid
() << std::endl
49
<<
" Scale (object): ( "
<<
Scale
()[
VGM::kDx
] <<
", "
50
<<
Scale
()[
VGM::kDy
] <<
", "
<<
Scale
()[
VGM::kDz
] <<
") "
<< std::endl;
51
52
return
out;
53
}
utilities.h
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IScaledSolid &scaled)
Definition
VScaledSolid.cxx:25
VScaledSolid.h
BaseVGM::VScaledSolid::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VScaledSolid.cxx:45
BaseVGM::VScaledSolid::VScaledSolid
VScaledSolid()
Definition
VScaledSolid.cxx:33
BaseVGM::VScaledSolid::~VScaledSolid
virtual ~VScaledSolid()
Definition
VScaledSolid.cxx:39
VGM::IScaledSolid
The VGM interface to Boolean solids.
Definition
IScaledSolid.h:31
VGM::IScaledSolid::Scale
virtual Transform Scale() const =0
Return the 3D scale.
VGM::IScaledSolid::ConstituentSolid
virtual ISolid * ConstituentSolid() const =0
Return the constituent solid.
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM
VGM interfaces.
Definition
VMedium.h:28
VGM::kDx
@ kDx
Definition
Transform.h:44
VGM::kDz
@ kDz
Definition
Transform.h:46
VGM::kDy
@ kDy
Definition
Transform.h:45
Generated on
for VGM by
1.17.0