#include <FourPointPlaneBounds.h>
Public Types | |
typedef LocalPoint::ScalarType | Scalar |
Public Member Functions | |
Bounds * | clone () const override |
FourPointPlaneBounds (const LocalPoint &a, const LocalPoint &b, const LocalPoint &c, const LocalPoint &d) | |
bool | inside (const Local3DPoint &lp) const override |
Determine if the point is inside the bounds. More... | |
bool | inside (const Local3DPoint &lp, const LocalError &e, float scale) const override |
Determine if a point is inside the bounds, taking error into account. More... | |
float | length () const override |
float | thickness () const override |
float | width () const override |
~FourPointPlaneBounds () override | |
Public Member Functions inherited from Bounds | |
void | computeSpan (Surface const &plane) |
virtual bool | inside (const Local2DPoint &p) const |
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 Local2DPoint &p, const LocalError &err, float scale=1.f) const |
Determine if a 2D point is inside the bounds, taking error into account. More... | |
std::pair< float, float > const & | phiSpan () const |
std::pair< float, float > const & | rSpan () const |
virtual float | significanceInside (const Local3DPoint &, const LocalError &) 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 Member Functions | |
double | checkSide (int i, const Local2DPoint &lp) const |
double | checkSide (int i, Scalar x, Scalar y) const |
const Local2DPoint & | corner (int i) const |
Private Attributes | |
Local2DPoint | corners_ [4] |
Definition at line 10 of file FourPointPlaneBounds.h.
Definition at line 13 of file FourPointPlaneBounds.h.
FourPointPlaneBounds::FourPointPlaneBounds | ( | const LocalPoint & | a, |
const LocalPoint & | b, | ||
const LocalPoint & | c, | ||
const LocalPoint & | d | ||
) |
The corners are ASSUMED to come in cyclic order
Definition at line 8 of file FourPointPlaneBounds.cc.
References checkSide(), corner(), corners_, gather_cfg::cout, mps_fire::i, std::swap(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by clone().
|
inlineoverride |
Definition at line 19 of file FourPointPlaneBounds.h.
References inside(), length(), thickness(), and width().
|
private |
Definition at line 29 of file FourPointPlaneBounds.cc.
References PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
Referenced by corner(), FourPointPlaneBounds(), and inside().
Definition at line 41 of file FourPointPlaneBounds.h.
References corner(), findQualityFiles::v, PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().
|
inlineoverridevirtual |
Implements Bounds.
Definition at line 32 of file FourPointPlaneBounds.h.
References FourPointPlaneBounds().
|
inlineprivate |
Definition at line 38 of file FourPointPlaneBounds.h.
References checkSide(), and mps_fire::i.
Referenced by checkSide(), and FourPointPlaneBounds().
|
overridevirtual |
Determine if the point is inside the bounds.
Implements Bounds.
Definition at line 33 of file FourPointPlaneBounds.cc.
References checkSide(), mps_fire::i, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by inside(), and ~FourPointPlaneBounds().
|
inlineoverridevirtual |
Determine if a point is inside the bounds, taking error into account.
Implements Bounds.
Definition at line 28 of file FourPointPlaneBounds.h.
References inside().
|
overridevirtual |
"Lenght" of the bounded volume; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 41 of file FourPointPlaneBounds.cc.
Referenced by ~FourPointPlaneBounds().
|
overridevirtual |
"Thickness" of the bound around the surface; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 43 of file FourPointPlaneBounds.cc.
Referenced by ~FourPointPlaneBounds().
|
overridevirtual |
"width" of the bounds; refer to the concrete class documentation for the specific definition.
Implements Bounds.
Definition at line 42 of file FourPointPlaneBounds.cc.
Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Views.PropertyView.PropertyView::resizeEvent(), Vispa.Views.PropertyView.PropertyView::sectionResized(), Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry(), and ~FourPointPlaneBounds().
|
private |
Definition at line 36 of file FourPointPlaneBounds.h.
Referenced by FourPointPlaneBounds().