#include <DDSolid.h>
Public Member Functions | |
DDEllipsoid (const DDSolid &s) | |
double | xSemiAxis () const |
double | ySemiAxis () const |
double | zBottomCut () const |
double | zSemiAxis () const |
double | zTopCut () const |
Private Member Functions | |
DDEllipsoid () |
DDEllipsoid::DDEllipsoid | ( | const DDSolid & | s | ) |
Definition at line 613 of file DDSolid.cc.
References ddellipsoid, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().
: DDSolid(s) { if (s.shape() != ddellipsoid) { std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDEllipsoid (or truncated ellipsoid).\n"; ex = ex + "Use a different solid interface!"; throw DDException(ex); } }
DDEllipsoid::DDEllipsoid | ( | ) | [private] |
double DDEllipsoid::xSemiAxis | ( | ) | const |
Definition at line 622 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDG4SolidConverter::ellipsoid().
{ return rep().parameters()[0]; }
double DDEllipsoid::ySemiAxis | ( | ) | const |
Definition at line 624 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDG4SolidConverter::ellipsoid().
{ return rep().parameters()[1]; }
double DDEllipsoid::zBottomCut | ( | ) | const |
Definition at line 628 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDG4SolidConverter::ellipsoid().
{ return rep().parameters()[3]; }
double DDEllipsoid::zSemiAxis | ( | ) | const |
Definition at line 626 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDG4SolidConverter::ellipsoid().
{ return rep().parameters()[2]; }
double DDEllipsoid::zTopCut | ( | ) | const |
Definition at line 630 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDG4SolidConverter::ellipsoid().
{ return rep().parameters()[4]; }