CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDI::Reflection Class Reference

#include <Reflection.h>

Inheritance diagram for DDI::Reflection:
DDI::Solid

Public Member Functions

 Reflection (const DDSolid &s)
 
const DDSolidsolid () const
 
void stream (std::ostream &) const override
 
double volume () const override
 
- Public Member Functions inherited from DDI::Solid
const std::vector< double > & parameters () const
 
void setParameters (std::vector< double > const &p)
 
DDSolidShape shape () const
 
 Solid ()
 
 Solid (DDSolidShape shape)
 
virtual ~Solid ()
 

Private Attributes

DDSolid s_
 

Additional Inherited Members

- Protected Attributes inherited from DDI::Solid
std::vector< double > p_
 
DDSolidShape shape_
 

Detailed Description

Definition at line 10 of file Reflection.h.

Constructor & Destructor Documentation

DDI::Reflection::Reflection ( const DDSolid s)

Definition at line 8 of file Reflection.cc.

9  : Solid(ddreflected), s_(s)
10 { }
Solid()
Definition: Solid.h:14

Member Function Documentation

const DDSolid& DDI::Reflection::solid ( void  ) const
inline

Definition at line 16 of file Reflection.h.

References s_.

Referenced by DDReflectionSolid::unreflected().

16 { return s_; }
void DDI::Reflection::stream ( std::ostream &  os) const
overridevirtual

Reimplemented from DDI::Solid.

Definition at line 17 of file Reflection.cc.

References s_.

18 {
19  os << " reflection solid of " << s_;
20 }
double DDI::Reflection::volume ( void  ) const
overridevirtual

Reimplemented from DDI::Solid.

Definition at line 12 of file Reflection.cc.

References DDBase< N, C >::isDefined(), s_, and DDSolid::volume().

13 {
14  return s_.isDefined().second ? s_.volume() : -1.;
15 }
def_type isDefined() const
Definition: DDBase.h:110
double volume(void) const
Returns the volume of the given solid (does not work with boolean soids !)
Definition: DDSolid.cc:138

Member Data Documentation

DDSolid DDI::Reflection::s_
private

Definition at line 18 of file Reflection.h.

Referenced by solid(), stream(), and volume().