CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDSubtraction Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDSubtraction (const DDSolid &s)

Private Member Functions

 DDSubtraction (void)

Detailed Description

Definition at line 314 of file DDSolid.h.


Constructor & Destructor Documentation

DDSubtraction::DDSubtraction ( const DDSolid s)

Definition at line 319 of file DDSolid.cc.

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

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