CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDIntersection Class Reference

#include <DDSolid.h>

Inheritance diagram for DDIntersection:
DDBooleanSolid DDSolid DDBase< DDName, DDI::Solid * >

List of all members.

Public Member Functions

 DDIntersection (const DDSolid &s)

Private Member Functions

 DDIntersection ()

Detailed Description

Definition at line 329 of file DDSolid.h.


Constructor & Destructor Documentation

DDIntersection::DDIntersection ( const DDSolid s)

Definition at line 306 of file DDSolid.cc.

References ddunion, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().

  : DDBooleanSolid(s)
{
  if (s.shape() != ddunion) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDIntersection.\n";
    ex = ex + "Use a different solid interface!";
    throw DDException(ex);
  }
}
DDIntersection::DDIntersection ( ) [private]