|
VMTK
|
Extends vtkCardinalSpline with methods to evaluate the spline's first derivative, second derivative, and value-plus-derivatives at a parametric coordinate. More...
#include <vtkvmtkCardinalSpline.h>
Public Types | |
| typedef vtkCardinalSpline | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkCardinalSpline * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual double | EvaluateDerivative (double t) |
| virtual double | EvaluateSecondDerivative (double t) |
| virtual void | EvaluateValueAndDerivatives (double t, double valueAndDerivatives[3]) |
Static Public Member Functions | |
| static vtkvmtkCardinalSpline * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCardinalSpline * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkCardinalSpline () | |
| ~vtkvmtkCardinalSpline () | |
Extends vtkCardinalSpline with methods to evaluate the spline's first derivative, second derivative, and value-plus-derivatives at a parametric coordinate.
vtkvmtkCardinalSpline extends vtkCardinalSpline, which only evaluates the spline's value at a parametric coordinate, with methods to also evaluate its first and second derivatives (and all three at once) at a given parametric coordinate t, using the same cubic piecewise coefficients computed by the base class's Compute(). This is used, for instance, by vtkvmtkActiveTubeFilter to obtain tangent and curvature-like information (needed for internal stiffness forces) along a spline fit through a centerline's points and radii.
Definition at line 43 of file vtkvmtkCardinalSpline.h.
| typedef vtkCardinalSpline vtkvmtkCardinalSpline::Superclass |
Definition at line 48 of file vtkvmtkCardinalSpline.h.
|
protected |
Definition at line 35 of file vtkvmtkCardinalSpline.cxx.
|
inlineprotected |
Definition at line 75 of file vtkvmtkCardinalSpline.h.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkCardinalSpline * vtkvmtkCardinalSpline::NewInstance | ( | ) | const |
|
override |
Definition at line 178 of file vtkvmtkCardinalSpline.cxx.
|
virtual |
Evaluate the first derivative of the spline at parametric coordinate t. Recomputes the spline coefficients first if the spline's control points have changed since the last computation. t is clamped to the spline's parametric range; returns 0.0 if fewer than 2 points have been added.
Definition at line 39 of file vtkvmtkCardinalSpline.cxx.
|
virtual |
Evaluate the second derivative of the spline at parametric coordinate t. Recomputes the spline coefficients first if the spline's control points have changed since the last computation. t is clamped to the spline's parametric range; returns 0.0 if fewer than 2 points have been added.
Definition at line 82 of file vtkvmtkCardinalSpline.cxx.
|
virtual |
Evaluate the spline's value, first derivative, and second derivative at parametric coordinate t in a single call, storing them respectively in valueAndDerivatives[0], [1], and [2]. Equivalent to (but more efficient than) calling Evaluate(), EvaluateDerivative(), and EvaluateSecondDerivative() separately.
Definition at line 124 of file vtkvmtkCardinalSpline.cxx.