CMS 3D CMS Logo

Public Member Functions

DDLEllipticalTube Class Reference

DDLEllipticalTube processes all EllipticalTube elements. More...

#include <DDLEllipticalTube.h>

Inheritance diagram for DDLEllipticalTube:
DDLSolid DDXMLElement

List of all members.

Public Member Functions

 DDLEllipticalTube (DDLElementRegistry *myreg)
 Constructor.
void processElement (const std::string &name, const std::string &nmspace, DDCompactView &cpv)
 Processing the element.
 ~DDLEllipticalTube (void)
 Destructor.

Detailed Description

DDLEllipticalTube processes all EllipticalTube elements.

Author:
Michael Case

DDLEllipticalTube.h - description ------------------- begin: Mon Oct 29 2001 email: case@ucdhep.ucdavis.edu

This processes DDL EllipticalTube elements.

Definition at line 24 of file DDLEllipticalTube.h.


Constructor & Destructor Documentation

DDLEllipticalTube::DDLEllipticalTube ( DDLElementRegistry myreg)

Constructor.

Definition at line 22 of file DDLEllipticalTube.cc.

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

Destructor.

Definition at line 26 of file DDLEllipticalTube.cc.

{}

Member Function Documentation

void DDLEllipticalTube::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 31 of file DDLEllipticalTube.cc.

References DCOUT_V, DDSolidFactory::ellipticalTube(), ExprEvalInterface::eval(), DDXMLElement::getAttributeSet(), DDXMLElement::getDDName(), instance, and DDLSolid::setReference().

{  
  DCOUT_V( 'P', "DDLEllipticalTube::processElement started" );
  ExprEvalInterface & ev = ExprEvalSingleton::instance();
  DDXMLAttribute atts = getAttributeSet();

  DDSolid ddet = DDSolidFactory::ellipticalTube( getDDName( nmspace ),
                                                 ev.eval( nmspace, atts.find( "xSemiAxis" )->second ),
                                                 ev.eval( nmspace, atts.find( "ySemiAxis" )->second ),
                                                 ev.eval( nmspace, atts.find( "zHeight" )->second ));
  DDLSolid::setReference( nmspace, cpv );

  DCOUT_V( 'P', "DDLEllipticalTube::processElement completed" );
}