![]() |
![]() |
#include <DDFilteredView.h>
Public Types | |
typedef DDExpandedView::nav_type | nav_type |
Public Member Functions | |
void | clearScope () |
clears the scope; the full tree is available, depth=0 More... | |
int | copyno () const |
Copy number associated with the current node. More... | |
nav_type | copyNumbers () const |
return the stack of copy numbers More... | |
DDFilteredView (const DDCompactView &, const DDFilter &) | |
Keeps a pointer to the DDfilter. More... | |
DDFilteredView ()=delete | |
bool | firstChild () |
set the current node to the first child ... More... | |
const DDGeoHistory & | geoHistory () const |
The list of ancestors up to the root-node of the current node. More... | |
bool | goTo (const nav_type &) |
const std::vector< DDGeoHistory > & | history () const |
const DDLogicalPart & | logicalPart () const |
The logical-part of the current node in the filtered-view. More... | |
DDsvalues_type | mergedSpecifics () const |
void | mergedSpecificsV (DDsvalues_type &merged) const |
nav_type | navPos () const |
return the stack of sibling numbers More... | |
bool | next () |
set current node to the next node in the filtered tree More... | |
bool | nextSibling () |
set the current node to the next sibling ... More... | |
bool | parent () |
set the current node to the parent node ... More... | |
void | print () |
void | reset () |
clears the scope and sets the filtered view to its root-node More... | |
const DDRotationMatrix & | rotation () const |
The absolute rotation of the current node. More... | |
const DDGeoHistory & | scope () const |
The scope of the expanded-view. More... | |
bool | setScope (const DDGeoHistory &hist) |
sets the scope of the expanded view More... | |
std::vector< const DDsvalues_type * > | specifics () const |
void | specificsV (std::vector< const DDsvalues_type * > &result) const |
User specific data attached to the current node. More... | |
const DDTranslation & | translation () const |
The absolute translation of the current node. More... | |
Private Member Functions | |
bool | filter () |
Private Attributes | |
DDExpandedView | epv_ |
DDFilter const * | filter_ |
std::vector< DDGeoHistory > | parents_ |
Description: Filtered View of a Tree
Implementation: Filter criteria is defined in XML
Definition at line 18 of file DDFilteredView.h.
Definition at line 21 of file DDFilteredView.h.
DDFilteredView::DDFilteredView | ( | const DDCompactView & | cpv, |
const DDFilter & | fltr | ||
) |
Keeps a pointer to the DDfilter.
Definition at line 12 of file DDFilteredView.cc.
References epv_, DDExpandedView::geoHistory(), and parents_.
|
delete |
void DDFilteredView::clearScope | ( | ) |
clears the scope; the full tree is available, depth=0
Definition at line 81 of file DDFilteredView.cc.
References DDExpandedView::clearScope(), epv_, DDExpandedView::geoHistory(), and parents_.
int DDFilteredView::copyno | ( | ) | const |
Copy number associated with the current node.
Definition at line 61 of file DDFilteredView.cc.
References DDExpandedView::copyno(), and epv_.
Referenced by CTPPSGeometryESModule::buildDetGeomDesc(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), and DTGeometryParsFromDD::insertLayer().
DDFilteredView::nav_type DDFilteredView::copyNumbers | ( | ) | const |
return the stack of copy numbers
Definition at line 228 of file DDFilteredView.cc.
References DDExpandedView::copyNumbers(), and epv_.
Referenced by CmsMTDConstruction::buildBTLModule(), CTPPSGeometryESModule::buildDetGeomDesc(), CmsMTDConstruction::buildETLModule(), HGCalSimHitValidation::defineGeometry(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), and PrintGeomInfoAction::update().
|
private |
Definition at line 218 of file DDFilteredView.cc.
References DDFilter::accept(), epv_, and filter_.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), next(), nextSibling(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().
bool DDFilteredView::firstChild | ( | ) |
set the current node to the first child ...
Algorithm:
Definition at line 108 of file DDFilteredView.cc.
References DDExpandedView::depth_, epv_, DDExpandedView::geoHistory(), DDExpandedView::goToHistory(), next(), parents_, mps_fire::result, and DDExpandedView::scope_.
Referenced by ListIds::analyze(), HcalParametersFromDD::build(), FastTimeParametersFromDD::build(), HGCalParametersFromDD::build(), MTDParametersFromDD::build(), CmsTrackerLevelBuilder::build(), CSCGeometryParsFromDD::build(), GEMGeometryBuilderFromDDD::build(), CmsMTDLevelBuilder::build(), CmsMTDConstruction::buildComponent(), CmsDetConstruction::buildComponent(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), CaloTrkProcessing::CaloTrkProcessing(), HGCalSimHitValidation::defineGeometry(), ECalSD::ECalSD(), FastTimerSD::FastTimerSD(), MaterialBudgetHcalHistos::fillBeginJob(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HFFibre::HFFibre(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerPMT::HFShowerPMT(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), DTGeometryParsFromDD::insertLayer(), HGCalGeomParameters::loadCellParsHexagon(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadSpecParsHexagon(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MtdSD::MtdSD(), MuonDDDConstants::MuonDDDConstants(), nextSibling(), DTGeometryParserFromDDD::parseGeometry(), CmsTrackerRingBuilder::sortNS(), and PrintGeomInfoAction::update().
const DDGeoHistory & DDFilteredView::geoHistory | ( | ) | const |
The list of ancestors up to the root-node of the current node.
Definition at line 33 of file DDFilteredView.cc.
References epv_, and DDExpandedView::geoHistory().
Referenced by ListIds::analyze(), ListGroups::analyze(), CSCGeometryParsFromDD::build(), GEMGeometryBuilderFromDDD::build(), DTGeometryBuilderFromDDD::buildChamber(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildSuperLayer(), DetGeomDesc::DetGeomDesc(), EcalTBHodoscopeGeometryLoaderFromDDD::getDetIdForDDDNode(), DTGeometryParsFromDD::insertChamber(), DTGeometryParsFromDD::insertLayer(), and DTGeometryParsFromDD::insertSuperLayer().
bool DDFilteredView::goTo | ( | const nav_type & | ) |
Definition at line 233 of file DDFilteredView.cc.
References mps_fire::result.
Referenced by TrackerG4SimHitNumberingScheme::getFilteredView().
const std::vector< DDGeoHistory > & DDFilteredView::history | ( | ) | const |
Definition at line 251 of file DDFilteredView.cc.
References parents_.
Referenced by CmsTrackerLevelBuilder::build(), and CmsMTDLevelBuilder::build().
const DDLogicalPart & DDFilteredView::logicalPart | ( | ) | const |
The logical-part of the current node in the filtered-view.
Definition at line 18 of file DDFilteredView.cc.
References epv_, and DDExpandedView::logicalPart().
Referenced by ListIds::analyze(), CSCGeometryParsFromDD::build(), GEMGeometryBuilderFromDDD::build(), CmsMTDConstruction::buildBTLModule(), ME0GeometryParsFromDD::buildChamber(), ME0GeometryBuilderFromDDD::buildChamber(), GEMGeometryParsFromDD::buildChamber(), GEMGeometryBuilderFromDDD::buildChamber(), CmsMTDConstruction::buildComponent(), CmsMTDTrayBuilder::buildComponent(), CmsMTDDiscBuilder::buildComponent(), CmsMTDEndcapBuilder::buildComponent(), CmsMTDSubStrctBuilder::buildComponent(), CmsMTDBuilder::buildComponent(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryParsFromDD::buildEtaPartition(), ME0GeometryBuilderFromDDD::buildEtaPartition(), GEMGeometryParsFromDD::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildEtaPartition(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), ME0GeometryParsFromDD::buildLayer(), ME0GeometryBuilderFromDDD::buildLayer(), GEMGeometryParsFromDD::buildSuperChamber(), GEMGeometryBuilderFromDDD::buildSuperChamber(), HGCalSimHitValidation::defineGeometry(), DTGeometryParsFromDD::extractParameters(), DTGeometryBuilderFromDDD::extractParameters(), ME0GeometryParsFromDD::getDimension(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MaterialAccountingGroup::MaterialAccountingGroup(), and PrintGeomInfoAction::update().
DDsvalues_type DDFilteredView::mergedSpecifics | ( | ) | const |
Definition at line 54 of file DDFilteredView.cc.
References epv_, and DDExpandedView::mergedSpecificsV().
Referenced by HcalParametersFromDD::build(), FastTimeParametersFromDD::build(), HGCalParametersFromDD::build(), MTDParametersFromDD::build(), DTGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), CaloTrkProcessing::CaloTrkProcessing(), ECalSD::ECalSD(), FastTimerSD::FastTimerSD(), MaterialBudgetHcalHistos::fillBeginJob(), HCalSD::HCalSD(), HFFibre::HFFibre(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerPMT::HFShowerPMT(), HGCalGeomParameters::loadSpecParsHexagon(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadSpecParsTrapezoid(), MtdSD::MtdSD(), and MuonDDDConstants::MuonDDDConstants().
void DDFilteredView::mergedSpecificsV | ( | DDsvalues_type & | merged | ) | const |
Definition at line 49 of file DDFilteredView.cc.
References epv_, and DDExpandedView::mergedSpecificsV().
DDFilteredView::nav_type DDFilteredView::navPos | ( | ) | const |
return the stack of sibling numbers
Definition at line 223 of file DDFilteredView.cc.
References epv_, and DDExpandedView::navPos().
Referenced by GeometricDet::GeometricDet(), and GeometricTimingDet::GeometricTimingDet().
bool DDFilteredView::next | ( | void | ) |
set current node to the next node in the filtered tree
Definition at line 88 of file DDFilteredView.cc.
References epv_, filter(), mps_fire::i, DDExpandedView::next(), and mps_fire::result.
Referenced by ListIds::analyze(), ListGroups::analyze(), CSCGeometryParsFromDD::build(), HGCalSimHitValidation::defineGeometry(), firstChild(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), MaterialAccountingGroup::MaterialAccountingGroup(), and PrintGeomInfoAction::update().
bool DDFilteredView::nextSibling | ( | ) |
set the current node to the next sibling ...
Algorithm:
Definition at line 148 of file DDFilteredView.cc.
References epv_, filter(), firstChild(), RemoveAddSevLevel::flag, DDExpandedView::geoHistory(), DDExpandedView::goToHistory(), DDExpandedView::nextSibling(), DDExpandedView::parent(), parents_, and mps_fire::result.
Referenced by CmsTrackerLevelBuilder::build(), GEMGeometryBuilderFromDDD::build(), CmsMTDLevelBuilder::build(), CmsDetConstruction::buildComponent(), CmsMTDConstruction::buildComponent(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), DTGeometryParsFromDD::insertLayer(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), and DTGeometryParserFromDDD::parseGeometry().
bool DDFilteredView::parent | ( | ) |
set the current node to the parent node ...
Definition at line 187 of file DDFilteredView.cc.
References epv_, DDExpandedView::goToHistory(), parents_, and mps_fire::result.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), CmsTrackerLevelBuilder::build(), GEMGeometryBuilderFromDDD::build(), CmsMTDLevelBuilder::build(), CmsDetConstruction::buildComponent(), CmsMTDConstruction::buildComponent(), CTPPSGeometryESModule::buildDetGeomDesc(), ME0GeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), DTGeometryParsFromDD::insertLayer(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), DTGeometryParserFromDDD::parseGeometry(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), print(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), CmsTrackerRingBuilder::sortNS(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().
void DDFilteredView::print | ( | void | ) |
Definition at line 241 of file DDFilteredView.cc.
References epv_, parent(), parents_, and DDExpandedView::scope_.
void DDFilteredView::reset | ( | void | ) |
clears the scope and sets the filtered view to its root-node
Definition at line 211 of file DDFilteredView.cc.
References epv_, DDExpandedView::geoHistory(), parents_, and DDExpandedView::reset().
const DDRotationMatrix & DDFilteredView::rotation | ( | void | ) | const |
The absolute rotation of the current node.
Definition at line 28 of file DDFilteredView.cc.
References epv_, and DDExpandedView::rotation().
Referenced by ME0GeometryBuilderFromDDD::boundPlane(), GEMGeometryBuilderFromDDD::boundPlane(), CSCGeometryParsFromDD::build(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), HGCalSimHitValidation::defineGeometry(), ME0GeometryParsFromDD::getRotation(), GEMGeometryParsFromDD::getRotation(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DTGeometryParsFromDD::plane(), and DTGeometryBuilderFromDDD::plane().
const DDGeoHistory & DDFilteredView::scope | ( | ) | const |
The scope of the expanded-view.
Definition at line 66 of file DDFilteredView.cc.
References epv_, and DDExpandedView::scope().
bool DDFilteredView::setScope | ( | const DDGeoHistory & | hist | ) |
sets the scope of the expanded view
Definition at line 71 of file DDFilteredView.cc.
References epv_, parents_, mps_fire::result, and DDExpandedView::setScope().
std::vector< const DDsvalues_type * > DDFilteredView::specifics | ( | ) | const |
Definition at line 38 of file DDFilteredView.cc.
References epv_, mps_fire::result, and DDExpandedView::specificsV().
Referenced by CSCGeometryParsFromDD::build(), ME0GeometryParsFromDD::buildEtaPartition(), ME0GeometryBuilderFromDDD::buildEtaPartition(), GEMGeometryParsFromDD::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildEtaPartition(), RPCGeometryBuilderFromDDD::buildGeometry(), and RPCGeometryParsFromDD::buildGeometry().
void DDFilteredView::specificsV | ( | std::vector< const DDsvalues_type * > & | result | ) | const |
User specific data attached to the current node.
Definition at line 44 of file DDFilteredView.cc.
References epv_, and DDExpandedView::specificsV().
Referenced by dddGetStringRaw().
const DDTranslation & DDFilteredView::translation | ( | void | ) | const |
The absolute translation of the current node.
Definition at line 23 of file DDFilteredView.cc.
References epv_, and DDExpandedView::translation().
Referenced by ListIds::analyze(), ListGroups::analyze(), ME0GeometryBuilderFromDDD::boundPlane(), GEMGeometryBuilderFromDDD::boundPlane(), CSCGeometryParsFromDD::build(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), HGCalSimHitValidation::defineGeometry(), TrackerG4SimHitNumberingScheme::getNavStory(), ME0GeometryParsFromDD::getTranslation(), GEMGeometryParsFromDD::getTranslation(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), HGCalGeomParameters::loadGeometryHexagon8(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MaterialAccountingGroup::MaterialAccountingGroup(), DTGeometryParsFromDD::plane(), DTGeometryBuilderFromDDD::plane(), and PrintGeomInfoAction::update().
|
private |
Definition at line 89 of file DDFilteredView.h.
Referenced by clearScope(), copyno(), copyNumbers(), DDFilteredView(), filter(), firstChild(), geoHistory(), logicalPart(), mergedSpecifics(), mergedSpecificsV(), navPos(), next(), nextSibling(), parent(), print(), reset(), rotation(), scope(), setScope(), specifics(), specificsV(), and translation().
|
private |
Definition at line 90 of file DDFilteredView.h.
Referenced by filter().
|
private |
Definition at line 91 of file DDFilteredView.h.
Referenced by clearScope(), DDFilteredView(), firstChild(), history(), nextSibling(), parent(), print(), reset(), and setScope().