A DDSolid represents the shape of a part. More...
#include <DDSolid.h>
Public Member Functions | |
DDSolid (void) | |
Uninitialilzed solid reference-object; for further details on reference-objects see documentation of DDLogicalPart. More... | |
DDSolid (const DDName &name) | |
Creates a reference-object to a solid named name. More... | |
const std::vector< double > & | parameters (void) const |
Give the parameters of the solid. More... | |
DDSolidShape | shape (void) const |
The type of the solid. More... | |
double | volume (void) const |
Returns the volume of the given solid (does not work with boolean soids !) More... | |
Public Member Functions inherited from DDBase< DDName, DDI::Solid * > | |
DDBase () | |
const DDName & | ddname () const |
def_type | isDefined () const |
bool | isValid () const |
true, if the wrapped pointer is valid More... | |
const DDName & | name () const |
operator bool () const | |
bool | operator< (const DDBase &b) const |
bool | operator== (const DDBase &b) const |
bool | operator> (const DDBase &b) const |
const DDI::rep_traits< DDName, DDI::Solid * >::reference | rep () const |
DDI::rep_traits< DDName, DDI::Solid * >::reference | rep () |
std::string | toString () const |
const DDI::rep_traits< DDName, DDI::Solid * >::reference | val () const |
const DDI::rep_traits< DDName, DDI::Solid * >::reference | val () |
virtual | ~DDBase () |
Private Member Functions | |
DDSolid (const DDName &, DDI::Solid *) | |
DDSolid (const DDName &, DDSolidShape, const std::vector< double > &) | |
Friends | |
class | DDDToPersFactory |
class | DDPersToDDDFactory |
struct | DDSolidFactory |
class | DDStreamer |
std::ostream & | operator<< (std::ostream &, const DDSolid &) |
Additional Inherited Members | |
Public Types inherited from DDBase< DDName, DDI::Solid * > | |
typedef std::pair< const DDName *, bool > | def_type |
typedef DDI::Solid * | pimpl_type |
typedef DDI::rep_type< DDName, pimpl_type > * | prep_type |
typedef DDI::Singleton < DDI::Store< DDName, DDI::Solid * > > | StoreT |
Static Public Member Functions inherited from DDBase< DDName, DDI::Solid * > | |
static auto | begin () |
static void | clear () |
static auto | end () |
static size_t | size () |
Protected Attributes inherited from DDBase< DDName, DDI::Solid * > | |
prep_type | prep_ |
A DDSolid represents the shape of a part.
An object of this class is a reference-object and thus is a lightweight class. It can be copied by value without having a large overhead. Assignment to the reference-object invalidates the object to which it was referred. Assignment also affects all other instances of this class which were created using the same value of DDName. In fact, the value of DDName identifies a DDSolid uniquely.
For further details concerning the usage of reference-objects refer to the documentation of DDLogicalPart.
DDSolid::DDSolid | ( | void | ) |
Uninitialilzed solid reference-object; for further details on reference-objects see documentation of DDLogicalPart.
Definition at line 55 of file DDSolid.cc.
DDSolid::DDSolid | ( | const DDName & | name | ) |
Creates a reference-object to a solid named name.
If the solid was not yet created using one of the solid generating factory functions DDbox()
, DDtub
, ... this constructor creates a (default) initialized reference object named name. It can be used as placeholder everywhere and becomes a reference to a valid solid as soon as one of the factory functions DDBox
, ... has been called (using the same value for DDName).
For further details concerning reference-objects refer to the documentation of DDLogicalPart.
Definition at line 58 of file DDSolid.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, DDI::Solid * >::prep_.
|
private |
Definition at line 63 of file DDSolid.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, DDI::Solid * >::prep_.
|
private |
Definition at line 69 of file DDSolid.cc.
References ddbox, ddcons, ddellipsoid, ddellipticaltube, ddorb, ddparallelepiped, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddshapeless, ddsphere, ddtorus, ddtrap, ddtrunctubs, ddtubs, Exception, DDI::Singleton< I >::instance(), DDBase< DDName, DDI::Solid * >::prep_, and DDI::Solid::setParameters().
const std::vector< double > & DDSolid::parameters | ( | void | ) | const |
Give the parameters of the solid.
Definition at line 150 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by CSCGeometryParsFromDD::build(), ME0GeometryParsFromDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DDG4SolidConverter::convert(), TGeoFromDddService::createShape(), DDTruncTubs::cutInside(), ddstats(), DDEcalBarrelNewAlgo::execute(), DDEcalBarrelAlgo::execute(), DDEcalEndcapAlgo::execute(), DTGeometryBuilderFromDDD::extractParameters(), DTGeometryParsFromDD::extractParameters(), DDPolySolid::getVec(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), HcalGeomParameters::loadGeometry(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DDCompareSolid::operator()(), DDCompareBoolSol::operator()(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), DDPolyhedra::sides(), and DDStreamer::solids_write().
DDSolidShape DDSolid::shape | ( | void | ) | const |
The type of the solid.
Definition at line 144 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by OutputDDToDDL::addToSolStore(), OutputMagneticFieldDDToDDL::addToSolStore(), CSCGeometryParsFromDD::build(), DDG4SolidConverter::convert(), TGeoFromDddService::createShape(), DDBox::DDBox(), DDCheckLP(), DDCons::DDCons(), DDEllipsoid::DDEllipsoid(), DDEllipticalTube::DDEllipticalTube(), DDIntersection::DDIntersection(), DDOrb::DDOrb(), DDParallelepiped::DDParallelepiped(), DDPolycone::DDPolycone(), DDPolyhedra::DDPolyhedra(), DDPseudoTrap::DDPseudoTrap(), DDShapelessSolid::DDShapelessSolid(), DDSphere::DDSphere(), DDSubtraction::DDSubtraction(), DDTorus::DDTorus(), DDTrap::DDTrap(), DDTruncTubs::DDTruncTubs(), DDTubs::DDTubs(), DDUnion::DDUnion(), DTGeometryBuilderFromDDD::extractParameters(), DTGeometryParsFromDD::extractParameters(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), HcalGeomParameters::loadGeometry(), DDLDivision::makeDivider(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DDCompareSolid::operator()(), DDCompareBoolSol::operator()(), operator<<(), DDPolycone::rMaxVec(), DDPolyhedra::rMaxVec(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDPolycone::rVec(), DDPolyhedra::rVec(), MagGeoBuilderFromDDD::volumeHandle::shape(), DDErrorDetection::so(), DDCoreToDDXMLOutput::solid(), DDStreamer::solids_write(), DDG4SolidConverter::trunctubs(), MagGeoBuilderFromDDD::volumeHandle::volumeHandle(), DDPolycone::zVec(), and DDPolyhedra::zVec().
double DDSolid::volume | ( | void | ) | const |
Returns the volume of the given solid (does not work with boolean soids !)
Definition at line 133 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDCompactViewImpl::weight().
|
friend |
|
friend |
|
friend |
Definition at line 33 of file DDSolid.cc.