|
VMTK
|
Compute, for each point of a surface, the minimum distance to the surface of a set of spheres. More...
#include <vtkvmtkPolyDataDistanceToSpheres.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataDistanceToSpheres * | NewInstance () const |
| virtual void | SetSpheres (vtkPolyData *) |
| virtual vtkPolyData * | GetSpheres () |
| virtual void | SetDistanceOffset (double) |
| virtual double | GetDistanceOffset () |
| virtual void | SetDistanceScale (double) |
| virtual double | GetDistanceScale () |
| virtual void | SetMinDistance (double) |
| virtual double | GetMinDistance () |
| virtual void | SetMaxDistance (double) |
| virtual double | GetMaxDistance () |
| virtual void | SetDistanceToSpheresArrayName (const char *) |
| virtual char * | GetDistanceToSpheresArrayName () |
Static Public Member Functions | |
| static vtkvmtkPolyDataDistanceToSpheres * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataDistanceToSpheres * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataDistanceToSpheres () | |
| ~vtkvmtkPolyDataDistanceToSpheres () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Protected Attributes | |
| char * | DistanceToSpheresArrayName |
| vtkPolyData * | Spheres |
| double | DistanceOffset |
| double | DistanceScale |
| double | MinDistance |
| double | MaxDistance |
Compute, for each point of a surface, the minimum distance to the surface of a set of spheres.
Spheres is a poly data whose points define sphere centers and whose point scalars (if present) define the corresponding sphere radii (radius 0 if no scalars are present, reducing spheres to points). For each input point, vtkvmtkPolyDataDistanceToSpheres computes the distance to the nearest sphere surface (Euclidean distance to the center minus the radius, clamped to be non-negative), transforms it as (DistanceOffset + DistanceScale * rawDistance) clamped between MinDistance and MaxDistance (a non-positive MaxDistance, the default, means unbounded), and writes the minimum such value over all spheres to a point data array named DistanceToSpheresArrayName. If that array already exists on the input, its values are combined with the newly computed ones by taking the minimum, so the filter can be chained to progressively refine a distance field from several sphere sets.
Definition at line 51 of file vtkvmtkPolyDataDistanceToSpheres.h.
| typedef vtkPolyDataAlgorithm vtkvmtkPolyDataDistanceToSpheres::Superclass |
Definition at line 55 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 41 of file vtkvmtkPolyDataDistanceToSpheres.cxx.
|
protected |
Definition at line 53 of file vtkvmtkPolyDataDistanceToSpheres.cxx.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataDistanceToSpheres * vtkvmtkPolyDataDistanceToSpheres::NewInstance | ( | ) | const |
|
virtual |
Set/get the poly data whose points and (optional) point scalars define the sphere centers and radii to compute the distance to.
|
virtual |
Set/get the poly data whose points and (optional) point scalars define the sphere centers and radii to compute the distance to.
|
virtual |
Set/get the constant added to the raw distance-to-sphere-surface value before scaling and clamping. Default: 0.
|
virtual |
Set/get the constant added to the raw distance-to-sphere-surface value before scaling and clamping. Default: 0.
|
virtual |
Set/get the factor the raw distance-to-sphere-surface value is multiplied by (after adding DistanceOffset). Default: 1.
|
virtual |
Set/get the factor the raw distance-to-sphere-surface value is multiplied by (after adding DistanceOffset). Default: 1.
|
virtual |
Set/get the lower bound the (offset and scaled) distance is clamped to. Default: 0.
|
virtual |
Set/get the lower bound the (offset and scaled) distance is clamped to. Default: 0.
|
virtual |
Set/get the upper bound the (offset and scaled) distance is clamped to. A non-positive value (the default, -1) means unbounded.
|
virtual |
Set/get the upper bound the (offset and scaled) distance is clamped to. A non-positive value (the default, -1) means unbounded.
|
virtual |
Set/get the name of the output point data array holding the computed distance values. If an array by this name already exists on the input, its values are combined with the newly computed ones by taking the minimum. Commonly named "DistanceToSpheres".
|
virtual |
Set/get the name of the output point data array holding the computed distance values. If an array by this name already exists on the input, its values are combined with the newly computed ones by taking the minimum. Commonly named "DistanceToSpheres".
|
overrideprotectedvirtual |
Definition at line 68 of file vtkvmtkPolyDataDistanceToSpheres.cxx.
|
protected |
Definition at line 120 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 122 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 124 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 125 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 126 of file vtkvmtkPolyDataDistanceToSpheres.h.
|
protected |
Definition at line 127 of file vtkvmtkPolyDataDistanceToSpheres.h.