#include <SimpleConeBounds.h>
Public Member Functions | |
virtual Bounds * | clone () 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) const |
virtual float | length () const |
Length along Z. More... | |
Geom::Theta< float > | openingAngle () const |
SimpleConeBounds (float zmin, float rmin_zmin, float rmax_zmin, float zmax, float rmin_zmax, float rmax_zmax) | |
Construct from inner/outer radius on the two Z faces. More... | |
virtual float | thickness () const |
GlobalPoint | vertex () const |
virtual float | width () const |
Maximum diameter. More... | |
Public Member Functions inherited from Bounds | |
virtual bool | inside (const Local2DPoint &p) const |
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 | widthAtHalfLength () const |
Width at half length. Useful for e.g. pitch definition. More... | |
virtual | ~Bounds () |
Private Attributes | |
float | theRmaxZmax |
float | theRmaxZmin |
float | theRminZmax |
float | theRminZmin |
float | theZmax |
float | theZmin |
Cone bounds. The cone axis coincides with the Z axis. The bounds limit the length at constant Z, and allow finite thickness.
Definition at line 26 of file SimpleConeBounds.h.
|
inline |
Construct from inner/outer radius on the two Z faces.
Definition at line 30 of file SimpleConeBounds.h.
References std::swap(), theRmaxZmax, theRmaxZmin, theRminZmax, theRminZmin, theZmax, and theZmin.
Referenced by clone().
|
inlinevirtual |
Implements Bounds.
Definition at line 72 of file SimpleConeBounds.h.
References SimpleConeBounds().
|
inlinevirtual |
Determine if the point is inside the bounds.
Implements Bounds.
Definition at line 51 of file SimpleConeBounds.h.
References PV3DBase< T, PVType, FrameType >::perp(), theRmaxZmax, theRmaxZmin, theRminZmax, theRminZmin, theZmax, theZmin, and PV3DBase< T, PVType, FrameType >::z().
Referenced by inside().
|
inlinevirtual |
Determine if a point is inside the bounds, taking error into account.
Implements Bounds.
Definition at line 58 of file SimpleConeBounds.h.
References inside(), mathSSE::sqrt(), theRmaxZmax, theRmaxZmin, theRminZmax, theRminZmin, theZmax, theZmin, tmp, and LocalError::yy().
|
inlinevirtual |
Definition at line 68 of file SimpleConeBounds.h.
References Bounds::inside().
|
inlinevirtual |
Length along Z.
Implements Bounds.
Definition at line 43 of file SimpleConeBounds.h.
References theZmax, and theZmin.
Referenced by python.Vispa.Views.LineDecayView.DecayLine::arrowBoundingRect(), python.Vispa.Views.LineDecayView.DecayLine::labelBoundingRect(), openingAngle(), and python.Vispa.Views.LineDecayView.DecayLine::paint().
|
inline |
Definition at line 77 of file SimpleConeBounds.h.
References length(), Geom::pi(), theRmaxZmax, theRmaxZmin, theRminZmax, theRminZmin, and theta().
|
inlinevirtual |
Thickness in the middle (Z center). Maybe it's useless, but it is pure abstract in Bounds...
Implements Bounds.
Definition at line 48 of file SimpleConeBounds.h.
References theRmaxZmax, theRmaxZmin, theRminZmax, and theRminZmin.
|
inline |
Definition at line 83 of file SimpleConeBounds.h.
References abs, max(), theRmaxZmax, theRmaxZmin, theRminZmax, theRminZmin, theZmax, and theZmin.
|
inlinevirtual |
Maximum diameter.
Implements Bounds.
Definition at line 45 of file SimpleConeBounds.h.
References max(), theRmaxZmax, and theRmaxZmin.
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().
|
private |
Definition at line 101 of file SimpleConeBounds.h.
Referenced by inside(), openingAngle(), SimpleConeBounds(), thickness(), vertex(), and width().
|
private |
Definition at line 98 of file SimpleConeBounds.h.
Referenced by inside(), openingAngle(), SimpleConeBounds(), thickness(), vertex(), and width().
|
private |
Definition at line 100 of file SimpleConeBounds.h.
Referenced by inside(), openingAngle(), SimpleConeBounds(), thickness(), and vertex().
|
private |
Definition at line 97 of file SimpleConeBounds.h.
Referenced by inside(), openingAngle(), SimpleConeBounds(), thickness(), and vertex().
|
private |
Definition at line 99 of file SimpleConeBounds.h.
Referenced by inside(), length(), SimpleConeBounds(), and vertex().
|
private |
Definition at line 96 of file SimpleConeBounds.h.
Referenced by inside(), length(), SimpleConeBounds(), and vertex().