VGM Version 5.3
Loading...
Searching...
No Matches
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
21
22#include <math.h>
23
24//_____________________________________________________________________________
25std::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//_____________________________________________________________________________
34{
36}
37
38//_____________________________________________________________________________
43
44//_____________________________________________________________________________
45std::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}
std::ostream & operator<<(std::ostream &out, const VGM::IScaledSolid &scaled)
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
The VGM interface to Boolean solids.
The VGM interface to solids.
Definition ISolid.h:58
VGM interfaces.
Definition VMedium.h:28
@ kDx
Definition Transform.h:44
@ kDz
Definition Transform.h:46
@ kDy
Definition Transform.h:45