CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDUnion Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDUnion (const DDSolid &s)

Private Member Functions

 DDUnion (void)

Detailed Description

Definition at line 296 of file DDSolid.h.


Constructor & Destructor Documentation

DDUnion::DDUnion ( const DDSolid s)

Definition at line 290 of file DDSolid.cc.

References ddunion, Exception, 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 DDUnion.\n";
    ex = ex + "Use a different solid interface!";
    throw cms::Exception("DDException") << ex;
  }
}
DDUnion::DDUnion ( void  ) [private]