CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDBox Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDBox (const DDSolid &s)
double halfX () const
double halfY () const
double halfZ () const

Private Member Functions

 DDBox ()

Detailed Description

Definition at line 185 of file DDSolid.h.


Constructor & Destructor Documentation

DDBox::DDBox ( const DDSolid s)

Definition at line 247 of file DDSolid.cc.

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

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

Member Function Documentation

double DDBox::halfX ( ) const
double DDBox::halfY ( ) const
double DDBox::halfZ ( ) const