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 |
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 53 of file DDSolid.cc.
Referenced by DDSolidFactory::box(), DDSolidFactory::cons(), DDSolidFactory::cuttubs(), DDSolidFactory::ellipsoid(), DDSolidFactory::ellipticalTube(), DDSolidFactory::extrudedpolygon(), DDSolidFactory::intersection(), DDSolidFactory::multiUnionSolid(), DDSolidFactory::orb(), DDSolidFactory::parallelepiped(), DDSolidFactory::polycone(), DDSolidFactory::polyhedra(), DDSolidFactory::pseudoTrap(), DDSolidFactory::reflection(), DDSolidFactory::shapeless(), DDSolidFactory::sphere(), DDSolidFactory::subtraction(), DDSolidFactory::torus(), DDSolidFactory::trap(), DDSolidFactory::truncTubs(), DDSolidFactory::tubs(), and DDSolidFactory::unionSolid().
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 55 of file DDSolid.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, DDI::Solid * >::prep_.
|
private |
Definition at line 60 of file DDSolid.cc.
References DDI::Singleton< I >::instance(), and DDBase< DDName, DDI::Solid * >::prep_.
|
private |
Definition at line 65 of file DDSolid.cc.
References ddbox, ddcons, ddcuttubs, ddellipsoid, ddellipticaltube, ddextrudedpolygon, ddorb, ddparallelepiped, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddshapeless, ddsphere, ddtorus, ddtrap, ddtrunctubs, ddtubs, Exception, HGCalGeometryMode::ExtrudedPolygon, DDI::Singleton< I >::instance(), HGCalGeometryMode::Polyhedra, 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 147 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by CSCGeometryParsFromDD::build(), ME0GeometryBuilderFromDDD10EtaPart::buildChamber(), GEMGeometryBuilderFromDDD::buildChamber(), ME0GeometryBuilderFromDDD10EtaPart::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildEtaPartition(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD10EtaPart::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD10EtaPart::buildLayer(), GEMGeometryBuilderFromDDD::buildSuperChamber(), 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 DDExtrudedPolygon::xyPointsSize().
DDSolidShape DDSolid::shape | ( | void | ) | const |
The type of the solid.
Definition at line 141 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by PrintGeomSummary::addSolid(), OutputMagneticFieldDDToDDL::addToSolStore(), OutputDDToDDL::addToSolStore(), CSCGeometryParsFromDD::build(), DDG4SolidConverter::convert(), TGeoFromDddService::createShape(), DDBox::DDBox(), DDCheckLP(), DDCons::DDCons(), DDCutTubs::DDCutTubs(), DDEllipsoid::DDEllipsoid(), DDEllipticalTube::DDEllipticalTube(), DDExtrudedPolygon::DDExtrudedPolygon(), DDIntersection::DDIntersection(), DDMultiUnion::DDMultiUnion(), 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(), ECalSD::initMap(), HcalTB02SD::initMap(), HcalGeomParameters::loadGeometry(), DDLDivision::makeDivider(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DDCompareSolid::operator()(), DDCompareBoolSol::operator()(), operator<<(), MagGeoBuilderFromDDD::volumeHandle::referencePlane(), DDPolycone::rMaxVec(), DDPolyhedra::rMaxVec(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDPolycone::rVec(), DDPolyhedra::rVec(), MagGeoBuilderFromDDD::volumeHandle::shape(), MagGeoBuilderFromDDD::volumeHandle::sides(), DDErrorDetection::so(), DDCoreToDDXMLOutput::solid(), 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 135 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by DDI::Reflection::volume(), and DDCompactViewImpl::weight().
|
friend |
|
friend |
Definition at line 34 of file DDSolid.cc.