CMS 3D CMS Logo

List of all members | Public Member Functions
DDNodeSelector Class Reference

#include <DDNodeSelector.h>

Public Member Functions

const DDGeoHistorycurrent () const
 
 DDNodeSelector (const DDCompactView &)
 
bool next ()
 
bool setPartSelection (const std::string &, bool useRegex=false)
 
virtual ~DDNodeSelector ()
 

Detailed Description

given a part selection std::string, a node selector calculates all expanded nodes in the geometry tree

Definition at line 7 of file DDNodeSelector.h.

Constructor & Destructor Documentation

DDNodeSelector::DDNodeSelector ( const DDCompactView )
explicit

The compact view given in the constructor represents the geometry on which the node selector works

virtual DDNodeSelector::~DDNodeSelector ( )
virtual

you can derive your own node selector

Member Function Documentation

const DDGeoHistory& DDNodeSelector::current ( ) const

the current node matching the selection std::string; copy it, if you want to keep it!

bool DDNodeSelector::next ( )

the next node matching the selection std::string, returns false, if there is no next node

bool DDNodeSelector::setPartSelection ( const std::string &  ,
bool  useRegex = false 
)

sets the selection std::string from which all expanded nodes in the geometry tree should be calculated