CMS 3D CMS Logo

Public Member Functions | Private Attributes

DDI::Reflection Class Reference

#include <Reflection.h>

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

List of all members.

Public Member Functions

 Reflection (const DDSolid &s)
const DDSolidsolid ()
void stream (std::ostream &) const
double volume () const

Private Attributes

DDSolid s_

Detailed Description

Definition at line 10 of file Reflection.h.


Constructor & Destructor Documentation

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

Definition at line 3 of file Reflection.cc.

 : Solid(ddreflected), s_(s)
{ }

Member Function Documentation

const DDSolid& DDI::Reflection::solid ( ) [inline]

Definition at line 16 of file Reflection.h.

References s_.

Referenced by DDReflectionSolid::unreflected().

{ return s_; } 
void DDI::Reflection::stream ( std::ostream &  os) const [virtual]

Reimplemented from DDI::Solid.

Definition at line 14 of file Reflection.cc.

{
  os << " reflection solid of " << s_;
}
double DDI::Reflection::volume ( ) const [virtual]

Reimplemented from DDI::Solid.

Definition at line 8 of file Reflection.cc.

{
  return s_.isDefined().second ?  s_.volume() : -1.;    
}

Member Data Documentation

Definition at line 18 of file Reflection.h.

Referenced by solid().