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 
12 
14 {
15  return s_.isDefined().second ? s_.volume() : -1.;
16 }
17 
18 
19 void DDI::Reflection::stream(std::ostream & os) const
20 {
21  os << " reflection solid of " << s_;
22 }
def_type isDefined() const
Definition: DDBase.h:110
A DDSolid represents the shape of a part.
Definition: DDSolid.h:37
void stream(std::ostream &) const
Definition: Reflection.cc:19
double volume() const
Definition: Reflection.cc:13
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:134