CMS 3D CMS Logo

Public Member Functions

DDLOrb Class Reference

DDLOrb processes all Orb elements. More...

#include <DDLOrb.h>

Inheritance diagram for DDLOrb:
DDLSolid DDXMLElement

List of all members.

Public Member Functions

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

Detailed Description

DDLOrb processes all Orb elements.

Author:
Michael Case

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

This processes DDL Orb elements.

Definition at line 24 of file DDLOrb.h.


Constructor & Destructor Documentation

DDLOrb::DDLOrb ( DDLElementRegistry myreg)

Constructor.

Definition at line 22 of file DDLOrb.cc.

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

Destructor.

Definition at line 26 of file DDLOrb.cc.

{}

Member Function Documentation

void DDLOrb::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 DDLOrb.cc.

References DCOUT_V, ddorb, ExprEvalInterface::eval(), DDXMLElement::getAttributeSet(), DDXMLElement::getDDName(), DDI::Singleton< I >::instance(), DDSolidFactory::orb(), and DDLSolid::setReference().

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

  DDSolid ddorb = DDSolidFactory::orb( getDDName( nmspace ),
                                       ev.eval( nmspace, atts.find( "radius" )->second ));

  DDLSolid::setReference( nmspace, cpv );

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