#include <RectangularPlaneBounds.h>
Public Member Functions | |
Bounds * | clone () const override |
std::pair< bool, bool > | inout (const Local3DPoint &p, const LocalError &err, float scale=1.f) const |
bool | inside (const Local2DPoint &p) const override |
bool | inside (const Local3DPoint &p) const override |
Determine if the point is inside the bounds. More... | |
bool | inside (const Local2DPoint &p, float tollerance) const override |
Determine if a point is inside the bounds, taking a tollerance into account. More... | |
bool | inside (const Local3DPoint &p, const LocalError &err, float scale=1.f) const override |
Determine if a point is inside the bounds, taking error into account. More... | |
bool | inside (const Local2DPoint &p, const LocalError &err, float scale=1.f) const override |
Determine if a 2D point is inside the bounds, taking error into account. More... | |
float | length () const override |
Lenght along local Y. More... | |
RectangularPlaneBounds (float w, float h, float t) | |
float | significanceInside (const Local3DPoint &, const LocalError &) const override |
float | thickness () const override |
Thickness of the volume in local Z. More... | |
float | width () const override |
Width along local X. More... | |
~RectangularPlaneBounds () override | |
Public Member Functions inherited from Bounds | |
void | computeSpan (Surface const &plane) |
std::pair< float, float > const & | phiSpan () const |
std::pair< float, float > const & | rSpan () const |
virtual float | widthAtHalfLength () const |
Width at half length. Useful for e.g. pitch definition. More... | |
std::pair< float, float > const & | zSpan () const |
virtual | ~Bounds () |
Private Attributes | |
float | halfLength |
float | halfThickness |
float | halfWidth |
Rectangular plane bounds. Local Coordinate system coincides with center of the box with X axis along the width and Y axis along the lenght.
Definition at line 14 of file RectangularPlaneBounds.h.
RectangularPlaneBounds::RectangularPlaneBounds | ( | float | w, |
float | h, | ||
float | t | ||
) |
Construct from half width (extension in local X), half length (Y) and half thickness (Z)
Definition at line 5 of file RectangularPlaneBounds.cc.
Referenced by clone().
|
override |
Definition at line 9 of file RectangularPlaneBounds.cc.
|
overridevirtual |
Implements Bounds.
Definition at line 50 of file RectangularPlaneBounds.cc.
References RectangularPlaneBounds().
Referenced by inside().
std::pair< bool, bool > RectangularPlaneBounds::inout | ( | const Local3DPoint & | p, |
const LocalError & | err, | ||
float | scale = 1.f |
||
) | const |
Definition at line 35 of file RectangularPlaneBounds.cc.
References funct::abs(), halfLength, halfWidth, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by inside().
|
inlineoverridevirtual |
Reimplemented from Bounds.
Definition at line 32 of file RectangularPlaneBounds.h.
References funct::abs(), halfLength, halfWidth, PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
Referenced by TrackerValidationVariables::fillHitQuantities(), and inside().
|
inlineoverridevirtual |
Determine if the point is inside the bounds.
Implements Bounds.
Definition at line 38 of file RectangularPlaneBounds.h.
References funct::abs(), halfLength, halfThickness, halfWidth, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlineoverridevirtual |
Determine if a point is inside the bounds, taking a tollerance into account.
Reimplemented from Bounds.
Definition at line 47 of file RectangularPlaneBounds.h.
References funct::abs(), clone(), f, halfLength, halfWidth, inout(), inside(), AlCaHLTBitMon_ParallelJobs::p, Scenarios_cff::scale, significanceInside(), PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
|
overridevirtual |
Determine if a point is inside the bounds, taking error into account.
Implements Bounds.
Definition at line 11 of file RectangularPlaneBounds.cc.
References funct::abs(), halfLength, halfThickness, halfWidth, inside(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
|
overridevirtual |
Determine if a 2D point is inside the bounds, taking error into account.
Reimplemented from Bounds.
Definition at line 20 of file RectangularPlaneBounds.cc.
References funct::abs(), halfLength, halfWidth, inside(), mathSSE::sqrt(), PV2DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV2DBase< T, PVType, FrameType >::y(), and LocalError::yy().
|
inlineoverridevirtual |
Lenght along local Y.
Implements Bounds.
Definition at line 23 of file RectangularPlaneBounds.h.
References halfLength.
Referenced by Vispa.Views.LineDecayView.DecayLine::arrowBoundingRect(), TrackerValidationVariables::fillHitQuantities(), Vispa.Views.LineDecayView.DecayLine::labelBoundingRect(), and Vispa.Views.LineDecayView.DecayLine::paint().
|
overridevirtual |
Reimplemented from Bounds.
Definition at line 28 of file RectangularPlaneBounds.cc.
References funct::abs(), halfLength, halfWidth, SiStripPI::max, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by inside().
|
inlineoverridevirtual |
Thickness of the volume in local Z.
Implements Bounds.
Definition at line 27 of file RectangularPlaneBounds.h.
References halfThickness, and Bounds::inside().
|
inlineoverridevirtual |
Width along local X.
Implements Bounds.
Definition at line 25 of file RectangularPlaneBounds.h.
References halfWidth.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), TrackerValidationVariables::fillHitQuantities(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView::resizeEvent(), Vispa.Views.PropertyView.PropertyView::sectionResized(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
private |
Definition at line 69 of file RectangularPlaneBounds.h.
Referenced by inout(), inside(), length(), and significanceInside().
|
private |
Definition at line 70 of file RectangularPlaneBounds.h.
Referenced by inside(), and thickness().
|
private |
Definition at line 68 of file RectangularPlaneBounds.h.
Referenced by inout(), inside(), significanceInside(), and width().