CMS 3D CMS Logo

Reflection.cc
Go to the documentation of this file.
2 
3 #include <utility>
4 
7 
9  : Solid(ddreflected), s_(s)
10 { }
11 
13 {
14  return s_.isDefined().second ? s_.volume() : -1.;
15 }
16 
17 void DDI::Reflection::stream(std::ostream & os) const
18 {
19  os << " reflection solid of " << s_;
20 }
def_type isDefined() const
Definition: DDBase.h:110
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
double volume() const override
Definition: Reflection.cc:12
void stream(std::ostream &) const override
Definition: Reflection.cc:17
Reflection(const DDSolid &s)
Definition: Reflection.cc:8
double volume(void) const
Returns the volume of the given solid (does not work with boolean soids !)
Definition: DDSolid.cc:138