CMS 3D CMS Logo

Public Member Functions

DDLShapelessSolid Class Reference

DDLShapelessSolid processes ShapelessSolid elements. More...

#include <DDLShapelessSolid.h>

Inheritance diagram for DDLShapelessSolid:
DDLSolid DDXMLElement

List of all members.

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.

Detailed Description

DDLShapelessSolid processes ShapelessSolid elements.

Author:
Michael Case

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.


Constructor & Destructor Documentation

DDLShapelessSolid::DDLShapelessSolid ( DDLElementRegistry myreg)

Constructor.

Definition at line 20 of file DDLShapelessSolid.cc.

  : DDLSolid( myreg )
{}
DDLShapelessSolid::~DDLShapelessSolid ( void  )

Destructor.

Definition at line 24 of file DDLShapelessSolid.cc.

{}

Member Function Documentation

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");
}