CMS 3D CMS Logo

DDLShapelessSolid.cc
Go to the documentation of this file.
6 
7 class DDCompactView;
8 
10  : DDLSolid( myreg )
11 {}
12 
13 void
15  DDCompactView& cpv )
16 {
17  myRegistry_->getElement("rSolid")->clear();
18 }
19 
20 // Upon ending a ShapelessSolid element, call DDCore giving the box name, and dimensions.
21 void
23 {
25 
26  DDLSolid::setReference(nmspace, cpv);
27 }
DDLElementRegistry * myRegistry_
Definition: DDXMLElement.h:172
void preProcessElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Called by loadAttributes AFTER attributes are loaded.
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
DDLSolid processes Box elements.
Definition: DDLSolid.h:30
DDLShapelessSolid(DDLElementRegistry *myreg)
static DDSolid shapeless(const DDName &name)
Definition: DDSolid.cc:904
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
The main class for processing parsed elements.
virtual const DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)
Definition: DDXMLElement.cc:79
void setReference(const std::string &nmspace, DDCompactView &cpv)
Definition: DDLSolid.cc:16