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
 
double volume () const
 
- 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
virtual

Reimplemented from DDI::Solid.

Definition at line 19 of file Reflection.cc.

References s_.

20 {
21  os << " reflection solid of " << s_;
22 }
double DDI::Reflection::volume ( void  ) const
virtual

Reimplemented from DDI::Solid.

Definition at line 13 of file Reflection.cc.

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

14 {
15  return s_.isDefined().second ? s_.volume() : -1.;
16 }
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:135

Member Data Documentation

DDSolid DDI::Reflection::s_
private

Definition at line 18 of file Reflection.h.

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