Base class of distance measurement functors. More...
#include <ImplicitSurfaceUtils.h>
Public Member Functions | |
virtual void | Evaluate (const double p[3], const PointSamples &dirs, double mind, double minh, double maxd, const DistanceFunction &distance, double offset=.0, double tol=1e-3)=0 |
virtual void | Evaluate (const double p[3], const PointSamples &dirs, double minh, double maxd, const DistanceFunction &distance, double offset=.0, double tol=1e-3) |
double | Get (int i=0) const |
Get i-th distance measurement. | |
int | NumberOfValues () const |
Get number of distance measurements. | |
void | Set (double v) |
Set distance value(s) | |
void | Set (int i, double v) |
Set distance value(s) | |
Protected Member Functions | |
DistanceMeasurement (int nvalues=1) | |
Construct distance measurement for given number of values. | |
virtual | ~DistanceMeasurement () |
Destructor. | |
Base class of distance measurement functors.
Definition at line 436 of file ImplicitSurfaceUtils.h.
|
pure virtual |
Determine distance value(s) in given directions
[in] | p | Center point at which to evaluate width of gap. |
[in] | dirs | Point samples on unit sphere centered at the origin. |
[in] | mind | Minimum implicit surface distance at point p . |
[in] | minh | Minimum step length for bracketing of intersections. |
[in] | maxd | Maximum distance considered for ray casting. |
[in] | distance | Implicit surface distance function. |
[in] | offset | Isovalue of implicit surface. |
[in] | tol | Tolerance by which distance value may differ from offset . |
Implemented in mirtk::ImplicitSurfaceUtils::MedianWidth, mirtk::ImplicitSurfaceUtils::MeanWidth, mirtk::ImplicitSurfaceUtils::WidthExtrema, mirtk::ImplicitSurfaceUtils::MaxWidth, and mirtk::ImplicitSurfaceUtils::MinWidth.
|
inlinevirtual |
Determine distance value(s) in given directions
[in] | p | Center point at which to evaluate width of gap. |
[in] | dirs | Point samples on unit sphere centered at the origin. |
[in] | minh | Minimum step length for bracketing of intersections. |
[in] | maxd | Maximum distance considered for ray casting. |
[in] | distance | Implicit surface distance function. |
[in] | offset | Isovalue of implicit surface. |
[in] | tol | Tolerance by which distance value may differ from offset . |
Definition at line 504 of file ImplicitSurfaceUtils.h.