#include <GeneralTrapezoidalPlaneBounds.h>
Public Member Functions | |
virtual Bounds * | clone () const |
GeneralTrapezoidalPlaneBounds (float be, float te, float ang, float a, float t) | |
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 Local3DPoint &p, const LocalError &err, float scale) 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) const |
Determine if a 2D point is inside the bounds, taking error into account. More... | |
virtual float | length () const |
virtual const std::vector< float > | parameters () const |
virtual float | thickness () const |
virtual float | width () const |
virtual float | widthAtHalfLength () const |
Width at half length. Useful for e.g. pitch definition. More... | |
Public Member Functions inherited from Bounds | |
virtual | ~Bounds () |
Private Attributes | |
float | hapothem |
float | hbotedge |
float | hthickness |
float | htopedge |
float | offsetn |
float | offsetp |
float | tan_an |
float | tan_ap |
float | tg_tilt |
float | tilt_angle |
float | xoff |
GeneralTrapezoidal detector bounds. Local Coordinate system coincides with center of the box with y axis being the symmetry axis along the height and pointing in the direction of top_edge.
Definition at line 16 of file GeneralTrapezoidalPlaneBounds.h.
GeneralTrapezoidalPlaneBounds::GeneralTrapezoidalPlaneBounds | ( | float | be, |
float | te, | ||
float | ang, | ||
float | a, | ||
float | t | ||
) |
Definition at line 6 of file GeneralTrapezoidalPlaneBounds.cc.
References M_PI, offsetn, offsetp, funct::tan(), tan_an, tan_ap, tg_tilt, and xoff.
Referenced by clone().
|
inlinevirtual |
Implements Bounds.
Definition at line 40 of file GeneralTrapezoidalPlaneBounds.h.
References GeneralTrapezoidalPlaneBounds().
|
virtual |
Reimplemented from Bounds.
Definition at line 21 of file GeneralTrapezoidalPlaneBounds.cc.
References abs, hapothem, offsetn, offsetp, tan_an, tan_ap, PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
Referenced by inside().
|
virtual |
Determine if the point is inside the bounds.
Implements Bounds.
Definition at line 27 of file GeneralTrapezoidalPlaneBounds.cc.
References abs, hapothem, hthickness, offsetn, offsetp, tan_an, tan_ap, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
virtual |
Determine if a point is inside the bounds, taking error into account.
Implements Bounds.
Definition at line 34 of file GeneralTrapezoidalPlaneBounds.cc.
References hapothem, hbotedge, hthickness, htopedge, inside(), mathSSE::sqrt(), tilt_angle, tmp, LocalError::xx(), and LocalError::yy().
|
inlinevirtual |
Determine if a 2D point is inside the bounds, taking error into account.
Reimplemented from Bounds.
Definition at line 34 of file GeneralTrapezoidalPlaneBounds.h.
References Bounds::inside().
|
inlinevirtual |
"Lenght" of the bounded volume; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 22 of file GeneralTrapezoidalPlaneBounds.h.
References hapothem.
Referenced by python.Vispa.Views.LineDecayView.DecayLine::arrowBoundingRect(), python.Vispa.Views.LineDecayView.DecayLine::labelBoundingRect(), and python.Vispa.Views.LineDecayView.DecayLine::paint().
|
virtual |
Definition at line 45 of file GeneralTrapezoidalPlaneBounds.cc.
References hapothem, hbotedge, hthickness, htopedge, and tilt_angle.
Referenced by python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().
|
inlinevirtual |
"Thickness" of the bound around the surface; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 24 of file GeneralTrapezoidalPlaneBounds.h.
References hthickness.
|
inlinevirtual |
"width" of the bounds; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 23 of file GeneralTrapezoidalPlaneBounds.h.
References hbotedge, htopedge, and max().
Referenced by python.Vispa.Main.MainWindow.MainWindow::_saveIni(), python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), python.Vispa.Gui.VispaWidget.VispaWidget::contentRect(), python.Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), python.Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), python.Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), python.Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), python.Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), python.Vispa.Views.PropertyView.PropertyView::resizeEvent(), python.Vispa.Views.PropertyView.PropertyView::sectionResized(), python.Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and python.Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().
|
inlinevirtual |
Width at half length. Useful for e.g. pitch definition.
Reimplemented from Bounds.
Definition at line 26 of file GeneralTrapezoidalPlaneBounds.h.
References hbotedge, and htopedge.
|
private |
Definition at line 49 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by inside(), length(), and parameters().
|
private |
Definition at line 46 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by inside(), parameters(), width(), and widthAtHalfLength().
|
private |
Definition at line 50 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by inside(), parameters(), and thickness().
|
private |
Definition at line 47 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by inside(), parameters(), width(), and widthAtHalfLength().
|
private |
Definition at line 55 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds(), and inside().
|
private |
Definition at line 55 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds(), and inside().
|
private |
Definition at line 56 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds(), and inside().
|
private |
Definition at line 56 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds(), and inside().
|
private |
Definition at line 54 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds().
|
private |
Definition at line 48 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by inside(), and parameters().
|
private |
Definition at line 53 of file GeneralTrapezoidalPlaneBounds.h.
Referenced by GeneralTrapezoidalPlaneBounds().