A DDSolid represents the shape of a part. More...
#include <DDSolid.h>
Public Member Functions | |
DDSolid (const DDName &name) | |
Creates a reference-object to a solid named name. More... | |
DDSolid (void) | |
Uninitialilzed solid reference-object; for further details on reference-objects see documentation of DDLogicalPart. 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, std::unique_ptr< DDI::Solid > > | |
void | create (const DDName &name) |
void | create (const DDName &name, std::unique_ptr< DDI::Solid > vals) |
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 |
DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference | rep () |
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference | rep () const |
std::string | toString () const |
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference | val () |
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference | val () const |
virtual | ~DDBase () |
Private Member Functions | |
DDSolid (const DDName &, DDSolidShape, const std::vector< double > &) | |
DDSolid (const DDName &, std::unique_ptr< DDI::Solid >) | |
Friends | |
struct | DDSolidFactory |
std::ostream & | operator<< (std::ostream &, const DDSolid &) |
Additional Inherited Members | |
Public Types inherited from DDBase< DDName, std::unique_ptr< DDI::Solid > > | |
using | def_type = std::pair< const DDName *, bool > |
using | StoreT = DDI::Singleton< DDI::Store< DDName, std::unique_ptr< DDI::Solid > > > |
Static Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDI::Solid > > | |
static auto | begin () |
static auto | end () |
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 49 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 51 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::create(), and DDBase< DDName, std::unique_ptr< DDI::Solid > >::name().
|
private |
Definition at line 53 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::create(), eostools::move(), and DDBase< DDName, std::unique_ptr< DDI::Solid > >::name().
|
private |
Definition at line 57 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::create(), ddbox, ddcons, ddcuttubs, ddellipticaltube, ddextrudedpolygon, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddshapeless, ddsphere, ddtorus, ddtrap, ddtrunctubs, ddtubs, Exception, eostools::move(), DDBase< DDName, std::unique_ptr< DDI::Solid > >::name(), and shape().
const std::vector< double > & DDSolid::parameters | ( | void | ) | const |
Give the parameters of the solid.
Definition at line 121 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep().
Referenced by HcalTB02ParametersFromDD::build(), EcalSimParametersFromDD::build(), CSCGeometryParsFromDD::build(), GEMGeometryParsFromDD::buildChamber(), ME0GeometryBuilder::buildChamber(), GEMGeometryBuilder::buildChamber(), GEMGeometryParsFromDD::buildEtaPartition(), ME0GeometryBuilder::buildEtaPartition(), GEMGeometryBuilder::buildEtaPartition(), RPCGeometryParsFromDD::buildGeometry(), RPCGeometryBuilder::buildGeometry(), ME0GeometryBuilder::buildGeometry(), ME0GeometryBuilder::buildLayer(), GEMGeometryParsFromDD::buildSuperChamber(), GEMGeometryBuilder::buildSuperChamber(), DDG4SolidConverter::convert(), TGeoFromDddService::createShape(), DDTruncTubs::cutInside(), DDCompareBoolSol(), DDCompareSolid(), DDEcalBarrelAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDEcalEndcapAlgo::execute(), DTGeometryParsFromDD::extractParameters(), DTGeometryBuilderFromDDD::extractParameters(), ME0GeometryParsFromDD::getDimension(), DDPolySolid::getVec(), DreamSD::initMap(), HcalGeomParameters::loadGeometry(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DDFilteredView::parameters(), DDPolyhedra::sides(), DDExtrudedPolygon::xVec(), DDExtrudedPolygon::yVec(), DDExtrudedPolygon::zscaleVec(), DDExtrudedPolygon::zVec(), DDExtrudedPolygon::zxVec(), and DDExtrudedPolygon::zyVec().
DDSolidShape DDSolid::shape | ( | void | ) | const |
The type of the solid.
Definition at line 119 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep().
Referenced by PrintGeomSummary::addSolid(), OutputMagneticFieldDDToDDL::addToSolStore(), OutputDDToDDL::addToSolStore(), HcalTB02ParametersFromDD::build(), EcalSimParametersFromDD::build(), CSCGeometryParsFromDD::build(), DDG4SolidConverter::convert(), TGeoFromDddService::createShape(), DDCheckLP(), DDCompareBoolSol(), DDCompareSolid(), DDSolid(), DTGeometryParsFromDD::extractParameters(), DTGeometryBuilderFromDDD::extractParameters(), DreamSD::initMap(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), DDLDivision::makeDivider(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), operator<<(), DDPolycone::rMaxVec(), DDPolyhedra::rMaxVec(), DDPolycone::rMinVec(), DDPolyhedra::rMinVec(), DDPolycone::rVec(), DDPolyhedra::rVec(), MagGeoBuilderFromDDD::volumeHandle::shape(), DDFilteredView::shape(), 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 117 of file DDSolid.cc.
References DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep().
|
friend |
|
friend |
Definition at line 33 of file DDSolid.cc.