CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
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 3 of file Reflection.cc.

4  : Solid(ddreflected), s_(s)
5 { }
Solid()
Definition: Solid.h:14

Member Function Documentation

const DDSolid& DDI::Reflection::solid ( void  )
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 14 of file Reflection.cc.

15 {
16  os << " reflection solid of " << s_;
17 }
double DDI::Reflection::volume ( void  ) const
virtual

Reimplemented from DDI::Solid.

Definition at line 8 of file Reflection.cc.

9 {
10  return s_.isDefined().second ? s_.volume() : -1.;
11 }
def_type isDefined() const
Definition: DDBase.h:115
double volume(void) const
Returns the volume of the given solid (does not work with boolean soids !)
Definition: DDSolid.cc:133

Member Data Documentation

DDSolid DDI::Reflection::s_
private

Definition at line 18 of file Reflection.h.

Referenced by solid().