#include <DDFilteredView.h>
Public Types | |
typedef DDExpandedView::nav_type | nav_type |
Public Member Functions | |
void | addFilter (const DDFilter &, DDLogOp op=DDLogOp::AND) |
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 &) | |
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... | |
~DDFilteredView () | |
Private Member Functions | |
bool | filter () |
Private Attributes | |
std::vector< DDFilter const * > | criteria_ |
DDExpandedView | epv_ |
std::vector< DDLogOp > | logOps_ |
std::vector< DDGeoHistory > | parents_ |
Definition at line 11 of file DDFilteredView.h.
Definition at line 14 of file DDFilteredView.h.
DDFilteredView::DDFilteredView | ( | const DDCompactView & | cpv | ) |
Definition at line 5 of file DDFilteredView.cc.
References epv_, DDExpandedView::geoHistory(), and parents_.
DDFilteredView::~DDFilteredView | ( | ) |
Definition at line 11 of file DDFilteredView.cc.
void DDFilteredView::addFilter | ( | const DDFilter & | f, |
DDLogOp | op = DDLogOp::AND |
||
) |
Definition at line 19 of file DDFilteredView.cc.
References criteria_, and logOps_.
Referenced by ListIds::analyze(), ListGroups::analyze(), HcalParametersFromDD::build(), GEMGeometryParsFromDD::build(), ME0GeometryBuilderFromDDD::build(), GEMGeometryBuilderFromDDD::build(), RPCGeometryParsFromDD::build(), RPCGeometryBuilderFromDDD::build(), CSCGeometryParsFromDD::build(), DTGeometryBuilderFromDDD::build(), DTGeometryParsFromDD::build(), CaloTrkProcessing::CaloTrkProcessing(), DDDCmsTrackerContruction::construct(), DTGeometryParserFromDDD::DTGeometryParserFromDDD(), ECalSD::ECalSD(), MaterialBudgetHcalHistos::fillBeginJob(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HFFibre::HFFibre(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerPMT::HFShowerPMT(), FastTimeDDDConstants::initialize(), HGCalDDDConstants::initialize(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MaterialAccountingGroup::MaterialAccountingGroup(), MuonDDDConstants::MuonDDDConstants(), CocoaAnalyzer::ReadXMLFile(), PrintGeomInfoAction::update(), and PrintGeomMatInfo::update().
void DDFilteredView::clearScope | ( | ) |
clears the scope; the full tree is available, depth=0
Definition at line 83 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 63 of file DDFilteredView.cc.
References DDExpandedView::copyno(), and epv_.
Referenced by DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), and DTGeometryParsFromDD::insertLayer().
DDFilteredView::nav_type DDFilteredView::copyNumbers | ( | ) | const |
return the stack of copy numbers
Definition at line 248 of file DDFilteredView.cc.
References DDExpandedView::copyNumbers(), and epv_.
Referenced by HcalGeomParameters::loadGeometry(), HGCalDDDConstants::loadGeometry(), PrintGeomInfoAction::update(), and PrintGeomMatInfo::update().
|
private |
Definition at line 220 of file DDFilteredView.cc.
References AND, begin, criteria_, end, epv_, logOps_, OR, and query::result.
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 110 of file DDFilteredView.cc.
References DDExpandedView::depth_, epv_, DDExpandedView::geoHistory(), DDExpandedView::goToHistory(), next(), parents_, query::result, and DDExpandedView::scope_.
Referenced by ListIds::analyze(), HcalParametersFromDD::build(), CmsTrackerLevelBuilder::build(), CSCGeometryParsFromDD::build(), CmsDetConstruction::buildComponent(), GEMGeometryBuilderFromDDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), CaloTrkProcessing::CaloTrkProcessing(), DDDCmsTrackerContruction::construct(), ECalSD::ECalSD(), MaterialBudgetHcalHistos::fillBeginJob(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HFFibre::HFFibre(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerPMT::HFShowerPMT(), FastTimeDDDConstants::initialize(), HGCalDDDConstants::initialize(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), DTGeometryParsFromDD::insertLayer(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MuonDDDConstants::MuonDDDConstants(), nextSibling(), DTGeometryParserFromDDD::parseGeometry(), CocoaAnalyzer::ReadXMLFile(), CmsTrackerRingBuilder::sortNS(), PrintGeomMatInfo::update(), and PrintGeomInfoAction::update().
const DDGeoHistory & DDFilteredView::geoHistory | ( | ) | const |
The list of ancestors up to the root-node of the current node.
Definition at line 35 of file DDFilteredView.cc.
References epv_, and DDExpandedView::geoHistory().
Referenced by ListIds::analyze(), ListGroups::analyze(), CSCGeometryParsFromDD::build(), DTGeometryBuilderFromDDD::buildChamber(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryParserFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildLayer(), DTGeometryBuilderFromDDD::buildSuperLayer(), EcalTBHodoscopeGeometryLoaderFromDDD::getDetIdForDDDNode(), DTGeometryParsFromDD::insertChamber(), DTGeometryParsFromDD::insertLayer(), DTGeometryParsFromDD::insertSuperLayer(), and CocoaAnalyzer::ReadXMLFile().
bool DDFilteredView::goTo | ( | const nav_type & | ) |
Definition at line 253 of file DDFilteredView.cc.
References query::result.
Referenced by TouchableToHistory::getFilteredView(), and DDDefaultNumberingScheme::node().
const std::vector< DDGeoHistory > & DDFilteredView::history | ( | ) | const |
Definition at line 271 of file DDFilteredView.cc.
References parents_.
Referenced by CmsTrackerLevelBuilder::build().
const DDLogicalPart & DDFilteredView::logicalPart | ( | ) | const |
The logical-part of the current node in the filtered-view.
Definition at line 14 of file DDFilteredView.cc.
References epv_, and DDExpandedView::logicalPart().
Referenced by ListIds::analyze(), CSCGeometryParsFromDD::build(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::extractParameters(), DTGeometryParsFromDD::extractParameters(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), HcalGeomParameters::loadGeometry(), HGCalDDDConstants::loadGeometry(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), CocoaAnalyzer::ReadXMLFile(), PrintGeomMatInfo::update(), and PrintGeomInfoAction::update().
DDsvalues_type DDFilteredView::mergedSpecifics | ( | ) | const |
Definition at line 56 of file DDFilteredView.cc.
References epv_, and DDExpandedView::mergedSpecificsV().
Referenced by HcalParametersFromDD::build(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), CaloTrkProcessing::CaloTrkProcessing(), ECalSD::ECalSD(), MaterialBudgetHcalHistos::fillBeginJob(), HCalSD::HCalSD(), HFFibre::HFFibre(), HFShowerFibreBundle::HFShowerFibreBundle(), HFShowerPMT::HFShowerPMT(), FastTimeDDDConstants::loadSpecPars(), HGCalDDDConstants::loadSpecPars(), MuonDDDConstants::MuonDDDConstants(), and CocoaAnalyzer::ReadXMLFile().
void DDFilteredView::mergedSpecificsV | ( | DDsvalues_type & | merged | ) | const |
Definition at line 51 of file DDFilteredView.cc.
References epv_, and DDExpandedView::mergedSpecificsV().
DDFilteredView::nav_type DDFilteredView::navPos | ( | ) | const |
return the stack of sibling numbers
Definition at line 243 of file DDFilteredView.cc.
References epv_, and DDExpandedView::navPos().
Referenced by DDDefaultNumberingScheme::DDDefaultNumberingScheme(), GeometricDet::GeometricDet(), and DDDefaultNumberingScheme::id().
bool DDFilteredView::next | ( | void | ) |
set current node to the next node in the filtered tree
Definition at line 90 of file DDFilteredView.cc.
References epv_, filter(), i, DDExpandedView::next(), and query::result.
Referenced by BeautifulSoup.PageElement::_invert(), ListIds::analyze(), ListGroups::analyze(), CSCGeometryParsFromDD::build(), DDDefaultNumberingScheme::DDDefaultNumberingScheme(), firstChild(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), DreamSD::initMap(), HcalTB02SD::initMap(), ECalSD::initMap(), HcalGeomParameters::loadGeometry(), HGCalDDDConstants::loadGeometry(), MaterialAccountingGroup::MaterialAccountingGroup(), CocoaAnalyzer::ReadXMLFile(), PrintGeomMatInfo::update(), and PrintGeomInfoAction::update().
bool DDFilteredView::nextSibling | ( | ) |
set the current node to the next sibling ...
Algorithm:
Definition at line 150 of file DDFilteredView.cc.
References epv_, filter(), firstChild(), DDExpandedView::geoHistory(), DDExpandedView::goToHistory(), DDExpandedView::nextSibling(), DDExpandedView::parent(), parents_, and query::result.
Referenced by BeautifulSoup.Tag::__str__(), BeautifulSoup.PageElement::_invert(), CmsTrackerLevelBuilder::build(), CmsDetConstruction::buildComponent(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParsFromDD::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 189 of file DDFilteredView.cc.
References epv_, DDExpandedView::goToHistory(), parents_, and query::result.
Referenced by BeautifulSoup.PageElement::_invert(), 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(), CmsDetConstruction::buildComponent(), DTGeometryBuilderFromDDD::buildGeometry(), DTGeometryParsFromDD::buildGeometry(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), DDDCmsTrackerContruction::construct(), 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(), 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 261 of file DDFilteredView.cc.
References epv_, i, parents_, and DDExpandedView::scope_.
void DDFilteredView::reset | ( | void | ) |
clears the scope and sets the filtered view to its root-node
Definition at line 213 of file DDFilteredView.cc.
References epv_, DDExpandedView::geoHistory(), parents_, and DDExpandedView::reset().
Referenced by DDDefaultNumberingScheme::DDDefaultNumberingScheme().
const DDRotationMatrix & DDFilteredView::rotation | ( | void | ) | const |
The absolute rotation of the current node.
Definition at line 30 of file DDFilteredView.cc.
References epv_, and DDExpandedView::rotation().
Referenced by CSCGeometryParsFromDD::build(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), HGCalDDDConstants::loadGeometry(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), DTGeometryBuilderFromDDD::plane(), DTGeometryParsFromDD::plane(), and CocoaAnalyzer::ReadXMLFile().
const DDGeoHistory & DDFilteredView::scope | ( | ) | const |
The scope of the expanded-view.
Definition at line 68 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 73 of file DDFilteredView.cc.
References epv_, parents_, query::result, and DDExpandedView::setScope().
std::vector< const DDsvalues_type * > DDFilteredView::specifics | ( | ) | const |
Definition at line 40 of file DDFilteredView.cc.
References epv_, query::result, and DDExpandedView::specificsV().
Referenced by CSCGeometryParsFromDD::build(), GEMGeometryParsFromDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), and CocoaAnalyzer::ReadXMLFile().
void DDFilteredView::specificsV | ( | std::vector< const DDsvalues_type * > & | result | ) | const |
User specific data attached to the current node.
Definition at line 46 of file DDFilteredView.cc.
References epv_, and DDExpandedView::specificsV().
Referenced by dddGetStringRaw(), and ExtractStringFromDDD::getString().
const DDTranslation & DDFilteredView::translation | ( | void | ) | const |
The absolute translation of the current node.
Definition at line 25 of file DDFilteredView.cc.
References epv_, and DDExpandedView::translation().
Referenced by ListIds::analyze(), ListGroups::analyze(), CSCGeometryParsFromDD::build(), ME0GeometryBuilderFromDDD::buildGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMGeometryParsFromDD::buildGeometry(), RPCGeometryBuilderFromDDD::buildGeometry(), RPCGeometryParsFromDD::buildGeometry(), TouchableToHistory::getNavStory(), HcalGeomParameters::loadGeometry(), HGCalDDDConstants::loadGeometry(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), MaterialAccountingGroup::MaterialAccountingGroup(), DTGeometryBuilderFromDDD::plane(), DTGeometryParsFromDD::plane(), CocoaAnalyzer::ReadXMLFile(), PrintGeomInfoAction::update(), and PrintGeomMatInfo::update().
|
private |
Definition at line 84 of file DDFilteredView.h.
Referenced by addFilter(), and filter().
|
private |
Definition at line 83 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 85 of file DDFilteredView.h.
Referenced by addFilter(), and filter().
|
private |
Definition at line 86 of file DDFilteredView.h.
Referenced by clearScope(), DDFilteredView(), firstChild(), history(), nextSibling(), parent(), print(), reset(), and setScope().