DDLShapelessSolid processes ShapelessSolid elements. More...
#include <DDLShapelessSolid.h>
Public Member Functions | |
DDLShapelessSolid (DDLElementRegistry *myreg) | |
Constructor. | |
void | preProcessElement (const std::string &name, const std::string &nmspace, DDCompactView &cpv) |
Called by loadAttributes AFTER attributes are loaded. | |
void | processElement (const std::string &name, const std::string &nmspace, DDCompactView &cpv) |
Processing the element. | |
~DDLShapelessSolid (void) | |
Destructor. |
DDLShapelessSolid processes ShapelessSolid elements.
DDLShapelessSolid.h - description ------------------- begin: Wed May 15 2002 email: case@ucdhep.ucdavis.edu
This is the ShapelessSolid processor.
Definition at line 24 of file DDLShapelessSolid.h.
DDLShapelessSolid::DDLShapelessSolid | ( | DDLElementRegistry * | myreg | ) |
DDLShapelessSolid::~DDLShapelessSolid | ( | void | ) |
void DDLShapelessSolid::preProcessElement | ( | const std::string & | name, |
const std::string & | nmspace, | ||
DDCompactView & | cpv | ||
) | [virtual] |
Called by loadAttributes AFTER attributes are loaded.
The preProcessElement method can assume that the attributes are loaded and perform any code that is necessary at the start of an element.
This would allow users to call their own code to setup anything necessary for the continued processing of the child elements.
Reimplemented from DDXMLElement.
Definition at line 28 of file DDLShapelessSolid.cc.
References DDXMLElement::clear(), DDLElementRegistry::getElement(), and DDXMLElement::myRegistry_.
{ myRegistry_->getElement("rSolid")->clear(); }
void DDLShapelessSolid::processElement | ( | const std::string & | name, |
const std::string & | nmspace, | ||
DDCompactView & | cpv | ||
) | [virtual] |
Processing the element.
The processElement method completes any necessary work to process the XML element.
For example, this can be used to call the DDCore to make the geometry in memory. There is a default for this so that if not declared in the inheriting class, no processing is done.
Reimplemented from DDXMLElement.
Definition at line 35 of file DDLShapelessSolid.cc.
References DCOUT_V, DDXMLElement::getDDName(), DDLSolid::setReference(), and DDSolidFactory::shapeless().
{ DCOUT_V('P', "DDLShapelessSolid::processElement started"); DDSolid dds = DDSolidFactory::shapeless(getDDName(nmspace)); DDLSolid::setReference(nmspace, cpv); DCOUT_V('P', "DDLShapelessSolid::processElement completed"); }