Public Member Functions | Protected Member Functions | List of all members
mirtk::ImplicitSurfaceUtils::DistanceMeasurement Class Referenceabstract

Base class of distance measurement functors. More...

#include <ImplicitSurfaceUtils.h>

Inheritance diagram for mirtk::ImplicitSurfaceUtils::DistanceMeasurement:
Inheritance graph
Collaboration diagram for mirtk::ImplicitSurfaceUtils::DistanceMeasurement:
Collaboration graph

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.
 

Detailed Description

Base class of distance measurement functors.

Definition at line 436 of file ImplicitSurfaceUtils.h.

Member Function Documentation

§ Evaluate() [1/2]

virtual void mirtk::ImplicitSurfaceUtils::DistanceMeasurement::Evaluate ( const double  p[3],
const PointSamples dirs,
double  mind,
double  minh,
double  maxd,
const DistanceFunction distance,
double  offset = .0,
double  tol = 1e-3 
)
pure virtual

Determine distance value(s) in given directions

Parameters
[in]pCenter point at which to evaluate width of gap.
[in]dirsPoint samples on unit sphere centered at the origin.
[in]mindMinimum implicit surface distance at point p.
[in]minhMinimum step length for bracketing of intersections.
[in]maxdMaximum distance considered for ray casting.
[in]distanceImplicit surface distance function.
[in]offsetIsovalue of implicit surface.
[in]tolTolerance 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.

§ Evaluate() [2/2]

virtual void mirtk::ImplicitSurfaceUtils::DistanceMeasurement::Evaluate ( const double  p[3],
const PointSamples dirs,
double  minh,
double  maxd,
const DistanceFunction distance,
double  offset = .0,
double  tol = 1e-3 
)
inlinevirtual

Determine distance value(s) in given directions

Parameters
[in]pCenter point at which to evaluate width of gap.
[in]dirsPoint samples on unit sphere centered at the origin.
[in]minhMinimum step length for bracketing of intersections.
[in]maxdMaximum distance considered for ray casting.
[in]distanceImplicit surface distance function.
[in]offsetIsovalue of implicit surface.
[in]tolTolerance by which distance value may differ from offset.

Definition at line 504 of file ImplicitSurfaceUtils.h.


The documentation for this class was generated from the following file: