#include <RectangularPlaneBounds.h>
Public Member Functions | |
virtual Bounds * | clone () const |
std::pair< bool, bool > | inout (const Local3DPoint &p, const LocalError &err, float scale=1.f) const |
virtual bool | inside (const Local2DPoint &p) const |
virtual bool | inside (const Local3DPoint &p) const |
Determine if the point is inside the bounds. More... | |
virtual bool | inside (const Local2DPoint &p, float tollerance) const |
Determine if a point is inside the bounds, taking a tollerance into account. More... | |
virtual bool | inside (const Local3DPoint &p, const LocalError &err, float scale=1.f) const |
Determine if a point is inside the bounds, taking error into account. More... | |
virtual bool | inside (const Local2DPoint &p, const LocalError &err, float scale=1.f) const |
Determine if a 2D point is inside the bounds, taking error into account. More... | |
virtual float | length () const |
Lenght along local Y. More... | |
RectangularPlaneBounds (float w, float h, float t) | |
virtual float | thickness () const |
Thickness of the volume in local Z. More... | |
virtual float | width () const |
Width along local X. More... | |
~RectangularPlaneBounds () | |
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().
RectangularPlaneBounds::~RectangularPlaneBounds | ( | ) |
Definition at line 9 of file RectangularPlaneBounds.cc.
|
virtual |
Implements Bounds.
Definition at line 44 of file RectangularPlaneBounds.cc.
References RectangularPlaneBounds().
std::pair< bool, bool > RectangularPlaneBounds::inout | ( | const Local3DPoint & | p, |
const LocalError & | err, | ||
float | scale = 1.f |
||
) | const |
Definition at line 29 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().
|
inlinevirtual |
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().
|
inlinevirtual |
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().
|
inlinevirtual |
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(), halfLength, halfWidth, PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
|
virtual |
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().
|
virtual |
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().
|
inlinevirtual |
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(), SiStripMonitorMuonHLT::Normalizer(), and Vispa.Views.LineDecayView.DecayLine::paint().
|
inlinevirtual |
Thickness of the volume in local Z.
Implements Bounds.
Definition at line 27 of file RectangularPlaneBounds.h.
References halfThickness.
|
inlinevirtual |
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(), SiStripMonitorMuonHLT::Normalizer(), 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 66 of file RectangularPlaneBounds.h.
|
private |
Definition at line 67 of file RectangularPlaneBounds.h.
Referenced by inside(), and thickness().
|
private |
Definition at line 65 of file RectangularPlaneBounds.h.