#include <DDFilteredView.h>
Public Member Functions | |
bool | checkChild () |
count the number of children matching selection More... | |
DDFilteredView (const DDDetector *, const Volume) | |
DDFilteredView ()=delete | |
void | down () |
set current node to the child node in the filtered tree More... | |
std::vector< double > | extractParameters () const |
extract shape parameters More... | |
bool | firstChild () |
set the current node to the first child More... | |
bool | firstSibling () |
set the current node to the first sibling More... | |
const ExpandedNodes & | history () const |
The numbering history of the current node. More... | |
void | mergedSpecifics (DDSpecParRefs const &) |
User specific data. More... | |
bool | next (int) |
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... | |
const Double_t * | rot () const |
The absolute rotation of the current node. More... | |
bool | sibling () |
set the current node to the next sub sibling More... | |
bool | siblingNoCheck () |
const Double_t * | trans () const |
The absolute translation of the current node. More... | |
void | unCheckNode () |
pop current node More... | |
void | up () |
set current node to the parent node in the filtered tree More... | |
const PlacedVolume | volume () const |
The physical volume of the current node. More... | |
Private Member Functions | |
bool | accept (std::string_view) |
bool | addNode (Node *const) |
bool | addPath (Node *const) |
Private Attributes | |
Filter * | currentFilter_ = nullptr |
std::vector< std::unique_ptr< Filter > > | filters_ |
std::vector< Iterator > | it_ |
Node * | node_ = nullptr |
ExpandedNodes | nodes_ |
const DDSpecParRegistry * | registry_ |
Definition at line 39 of file DDFilteredView.h.
DDFilteredView::DDFilteredView | ( | const DDDetector * | det, |
const Volume | volume | ||
) |
Definition at line 12 of file DDFilteredView.cc.
References it_.
|
delete |
|
private |
Definition at line 186 of file DDFilteredView.cc.
References cms::dd::accepted(), currentFilter_, filters_, cms::Filter::keys, and mps_fire::result.
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), firstChild(), esMonitoring.FDJsonServer::handle_accept(), and history().
|
private |
Definition at line 245 of file DDFilteredView.cc.
References begin, cms::ExpandedNodes::copyNos, end, mps_fire::i, gen::k, node_, nodes_, cms::ExpandedNodes::offsets, registry_, mps_fire::result, cms::DDSpecParRegistry::specpars, and cms::ExpandedNodes::tags.
Referenced by firstSibling(), history(), nextSibling(), and sibling().
|
private |
Definition at line 217 of file DDFilteredView.cc.
References begin, cms::ExpandedNodes::copyNos, end, mps_fire::i, it_, gen::k, hcalDigis_cfi::level, node_, nodes_, cms::ExpandedNodes::offsets, registry_, mps_fire::result, cms::DDSpecParRegistry::specpars, and cms::ExpandedNodes::tags.
Referenced by firstChild(), and history().
bool DDFilteredView::checkChild | ( | ) |
count the number of children matching selection
Definition at line 138 of file DDFilteredView.cc.
References cms::dd::accepted(), currentFilter_, it_, and cms::Filter::keys.
Referenced by cms::DTGeometryBuilder::buildLayer(), and history().
void DDFilteredView::down | ( | ) |
set current node to the child node in the filtered tree
Definition at line 171 of file DDFilteredView.cc.
References currentFilter_, it_, cms::Filter::next, and next().
Referenced by cms::DTGeometryBuilder::buildGeometry(), cms::DTGeometryBuilder::buildLayer(), and history().
vector< double > DDFilteredView::extractParameters | ( | ) | const |
extract shape parameters
Definition at line 198 of file DDFilteredView.cc.
References fftjetcommon_cfi::Class, node_, and volume().
Referenced by cms::DTGeometryBuilder::buildChamber(), cms::DTGeometryBuilder::buildLayer(), cms::DTGeometryBuilder::buildSuperLayer(), and history().
bool DDFilteredView::firstChild | ( | ) |
set the current node to the first child
Definition at line 66 of file DDFilteredView.cc.
References accept(), addPath(), and it_.
Referenced by cms::DTGeometryBuilder::buildGeometry(), DDDCmsTrackerContruction::construct(), DDDCmsMTDConstruction::construct(), and history().
bool DDFilteredView::firstSibling | ( | ) |
set the current node to the first sibling
Definition at line 79 of file DDFilteredView.cc.
References cms::dd::accepted(), addNode(), currentFilter_, it_, cms::Filter::keys, cms::Filter::next, next(), and node_.
Referenced by cms::DTGeometryBuilder::buildGeometry(), and history().
|
inline |
The numbering history of the current node.
Definition at line 47 of file DDFilteredView.h.
References accept(), addNode(), addPath(), checkChild(), down(), extractParameters(), firstChild(), firstSibling(), mergedSpecifics(), next(), nextSibling(), nodes_, parent(), rot(), sibling(), siblingNoCheck(), trans(), unCheckNode(), up(), and volume().
Referenced by cms::DTGeometryBuilder::buildChamber(), cms::DTGeometryBuilder::buildLayer(), and cms::DTGeometryBuilder::buildSuperLayer().
void DDFilteredView::mergedSpecifics | ( | DDSpecParRefs const & | specs | ) |
User specific data.
Definition at line 33 of file DDFilteredView.cc.
References begin, currentFilter_, end, f, ALCARECOTkAlBeamHalo_cff::filter, filters_, spr::find(), mps_fire::i, gen::k, cms::Filter::keys, checklumidiff::l, cms::Filter::next, and split.
Referenced by cms::DTGeometryBuilder::build(), and history().
bool DDFilteredView::next | ( | int | type | ) |
set current node to the next node in the filtered tree
Definition at line 159 of file DDFilteredView.cc.
Referenced by down(), firstSibling(), and history().
bool DDFilteredView::nextSibling | ( | ) |
set the current node to the next sibling
Definition at line 98 of file DDFilteredView.cc.
References cms::dd::accepted(), addNode(), currentFilter_, it_, cms::Filter::keys, node_, and unCheckNode().
Referenced by cms::DTGeometryBuilder::buildGeometry(), and history().
bool DDFilteredView::parent | ( | ) |
set the current node to the parent node ...
Definition at line 150 of file DDFilteredView.cc.
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(), cms::DTGeometryBuilder::buildGeometry(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), DDDCmsMTDConstruction::construct(), 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(), history(), 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(), 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(), 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().
const Double_t * DDFilteredView::rot | ( | ) | const |
The absolute rotation of the current node.
Definition at line 28 of file DDFilteredView.cc.
References it_.
Referenced by history(), and cms::DTGeometryBuilder::plane().
bool DDFilteredView::sibling | ( | ) |
set the current node to the next sub sibling
Definition at line 112 of file DDFilteredView.cc.
References cms::dd::accepted(), addNode(), currentFilter_, it_, and cms::Filter::keys.
Referenced by cms::DTGeometryBuilder::buildGeometry(), and history().
bool DDFilteredView::siblingNoCheck | ( | ) |
Definition at line 125 of file DDFilteredView.cc.
References cms::dd::accepted(), currentFilter_, it_, cms::Filter::keys, and node_.
Referenced by cms::DTGeometryBuilder::buildLayer(), and history().
const Double_t * DDFilteredView::trans | ( | ) | const |
The absolute translation of the current node.
Definition at line 23 of file DDFilteredView.cc.
References it_.
Referenced by history(), and cms::DTGeometryBuilder::plane().
void DDFilteredView::unCheckNode | ( | ) |
pop current node
Definition at line 266 of file DDFilteredView.cc.
References cms::ExpandedNodes::copyNos, nodes_, cms::ExpandedNodes::offsets, and cms::ExpandedNodes::tags.
Referenced by cms::DTGeometryBuilder::buildGeometry(), history(), and nextSibling().
void DDFilteredView::up | ( | ) |
set current node to the parent node in the filtered tree
Definition at line 179 of file DDFilteredView.cc.
References currentFilter_, it_, and cms::Filter::up.
Referenced by cms::DTGeometryBuilder::buildGeometry(), cms::DTGeometryBuilder::buildLayer(), history(), and parent().
const PlacedVolume DDFilteredView::volume | ( | void | ) | const |
The physical volume of the current node.
Definition at line 18 of file DDFilteredView.cc.
References node_.
Referenced by cms::DTGeometryBuilder::buildLayer(), extractParameters(), and history().
Definition at line 106 of file DDFilteredView.h.
Referenced by accept(), checkChild(), down(), firstSibling(), mergedSpecifics(), nextSibling(), sibling(), siblingNoCheck(), and up().
|
private |
Definition at line 105 of file DDFilteredView.h.
Referenced by accept(), Config.Process::dumpConfig(), Config.Process::dumpPython(), Config.Process::filterNames(), mergedSpecifics(), and Config.Process::prune().
|
private |
Definition at line 104 of file DDFilteredView.h.
Referenced by addPath(), checkChild(), DDFilteredView(), down(), firstChild(), firstSibling(), next(), nextSibling(), parent(), rot(), sibling(), siblingNoCheck(), trans(), and up().
Definition at line 107 of file DDFilteredView.h.
Referenced by addNode(), addPath(), extractParameters(), firstSibling(), next(), nextSibling(), siblingNoCheck(), and volume().
|
private |
Definition at line 103 of file DDFilteredView.h.
Referenced by addNode(), addPath(), history(), and unCheckNode().
|
private |
Definition at line 108 of file DDFilteredView.h.