Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkCurveGenerator Class Reference

Filter that generates curves between points of an input polydata. More...

#include <Modules/Loadable/Markups/MRML/vtkCurveGenerator.h>

Inheritance diagram for vtkCurveGenerator:
Inheritance graph
[legend]
Collaboration diagram for vtkCurveGenerator:
Collaboration graph
[legend]

Public Types

enum  {
  CURVE_TYPE_LINEAR_SPLINE = 0, CURVE_TYPE_CARDINAL_SPLINE, CURVE_TYPE_KOCHANEK_SPLINE, CURVE_TYPE_POLYNOMIAL,
  CURVE_TYPE_SHORTEST_DISTANCE_ON_SURFACE, CURVE_TYPE_LAST
}
 Type of curve to generate. More...
 
enum  { SORTING_METHOD_INDEX = 0, SORTING_METHOD_MINIMUM_SPANNING_TREE_POSITION, SORTING_METHOD_LAST }
 Set the sorting method for points in a polynomial. More...
 
enum  { POLYNOMIAL_FIT_METHOD_GLOBAL_LEAST_SQUARES = 0, POLYNOMIAL_FIT_METHOD_MOVING_LEAST_SQUARES, POLYNOMIAL_FIT_METHOD_LAST }
 
enum  {
  POLYNOMIAL_WEIGHT_FUNCTION_RECTANGULAR = 0, POLYNOMIAL_WEIGHT_FUNCTION_TRIANGULAR, POLYNOMIAL_WEIGHT_FUNCTION_COSINE, POLYNOMIAL_WEIGHT_FUNCTION_GAUSSIAN,
  POLYNOMIAL_WEIGHT_FUNCTION_LAST
}
 
typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual void CurveIsClosedOff ()
 
virtual void CurveIsClosedOn ()
 
virtual const char * GetClassName ()
 
vtkIdType GetControlPointIdFromInterpolatedPointId (vtkIdType interpolatedPointId)
 
virtual bool GetCurveIsClosed ()
 
virtual int GetCurveType ()
 
virtual double GetKochanekBias ()
 Bias of derivative toward previous point (negative value) or next point. Range -1 to 1. Default 0. More...
 
virtual double GetKochanekContinuity ()
 Make the curve sharper( negative value) or smoother (positive value). Range -1 to 1. Default 0. More...
 
virtual bool GetKochanekEndsCopyNearestDerivatives ()
 Make the ends of the curve 'straighter' by copying derivative of the nearest point. Default false. More...
 
virtual double GetKochanekTension ()
 How quickly the curve turns, higher values like tightening an elastic. Range -1 to 1. Default 0. More...
 
virtual int GetNumberOfPointsPerInterpolatingSegment ()
 
double GetOutputCurveLength ()
 Get the length of the curve. More...
 
vtkPoints * GetOutputPoints ()
 Get the output sampled points. More...
 
vtkParametricFunction * GetParametricFunction ()
 The internal instance of the current parametric function use of the curve for other computations. More...
 
virtual double GetPolynomialFitMethod ()
 
virtual int GetPolynomialOrder ()
 Set the order of the polynomials for fitting. Range 1 to 9 (equation becomes unstable from 9 upward). Default 1. More...
 
virtual int GetPolynomialPointSortingMethod ()
 
virtual double GetPolynomialSampleWidth ()
 Set the sampling distance (in parameter space) for moving least squares sampling. More...
 
virtual double GetPolynomialWeightFunction ()
 
int GetSurfaceCostFunctionType ()
 If the surface scalars should be used to weight the distances in the pathfinding algorithm. More...
 
vtkIdList * GetSurfacePointIds ()
 Get the list of curve point ids on the surface mesh. More...
 
virtual int IsA (const char *type)
 
virtual bool IsInterpolatingCurve ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetCurveIsClosed (bool)
 
virtual void SetCurveType (int)
 
void SetCurveTypeToCardinalSpline ()
 
void SetCurveTypeToKochanekSpline ()
 
void SetCurveTypeToLinearSpline ()
 
void SetCurveTypeToPolynomial ()
 
void SetCurveTypeToShortestDistanceOnSurface ()
 
void SetInputPoints (vtkPoints *points)
 Set the input control points. More...
 
virtual void SetKochanekBias (double)
 
virtual void SetKochanekContinuity (double)
 
virtual void SetKochanekEndsCopyNearestDerivatives (bool)
 
virtual void SetKochanekTension (double)
 
virtual void SetNumberOfPointsPerInterpolatingSegment (int)
 Sample an interpolating curve this many times per segment (pair of points in sequence). Range 1 and up. Default 5. More...
 
virtual void SetPolynomialFitMethod (double)
 
void SetPolynomialFitMethodToGlobalLeastSquares ()
 
void SetPolynomialFitMethodToMovingLeastSquares ()
 
virtual void SetPolynomialOrder (int)
 
virtual void SetPolynomialPointSortingMethod (int)
 
void SetPolynomialPointSortingMethodToIndex ()
 
void SetPolynomialPointSortingMethodToMinimumSpanningTreePosition ()
 
virtual void SetPolynomialSampleWidth (double)
 
virtual void SetPolynomialWeightFunction (double)
 
void SetPolynomialWeightFunctionToCosine ()
 
void SetPolynomialWeightFunctionToGaussian ()
 
void SetPolynomialWeightFunctionToRectangular ()
 
void SetPolynomialWeightFunctionToTriangular ()
 
void SetSurfaceCostFunctionType (int surfaceCostFunctionType)
 
void SetCurveIsLoop (bool loop)
 
void CurveIsLoopOn ()
 
void CurveIsLoopOff ()
 
bool GetCurveIsLoop ()
 

Static Public Member Functions

static const char * GetCurveTypeAsString (int id)
 
static int GetCurveTypeFromString (const char *name)
 
static const char * GetPolynomialFitMethodAsString (int id)
 
static int GetPolynomialFitMethodFromString (const char *name)
 
static const char * GetPolynomialPointSortingMethodAsString (int id)
 
static int GetPolynomialPointSortingMethodFromString (const char *name)
 
static const char * GetPolynomialWeightFunctionAsString (int id)
 
static int GetPolynomialWeightFunctionFromString (const char *name)
 
static int IsTypeOf (const char *type)
 
static vtkCurveGeneratorNew ()
 
static vtkCurveGeneratorSafeDownCast (vtkObject *o)
 
static void SortByIndex (vtkPoints *inputPoints, vtkDoubleArray *outputParameters)
 
static void SortByMinimumSpanningTreePosition (vtkPoints *inputPoints, vtkDoubleArray *outputParameters)
 

Protected Member Functions

int FillInputPortInformation (int port, vtkInformation *info) override
 
int GenerateLines (vtkPolyData *polyData)
 
int GeneratePoints (vtkPoints *inputPoints, vtkPolyData *inputSurface, vtkPolyData *outputPolyData)
 
int GeneratePointsFromFunction (vtkPoints *inputPoints, vtkPoints *outputPoints, vtkDoubleArray *outputPedigreeIdArray)
 
int GeneratePointsFromSurface (vtkPoints *inputPoints, vtkPolyData *inputSurface, vtkPoints *outputPoints, vtkDoubleArray *outputPedigreeIdArray)
 
void operator= (const vtkCurveGenerator &)=delete
 
int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 
void SetParametricFunctionToCardinalSpline (vtkPoints *inputPoints)
 
void SetParametricFunctionToKochanekSpline (vtkPoints *inputPoints)
 
void SetParametricFunctionToLinearSpline (vtkPoints *inputPoints)
 
void SetParametricFunctionToPolynomial (vtkPoints *inputPoints)
 
void SetParametricFunctionToSpline (vtkPoints *inputPoints, vtkSpline *xSpline, vtkSpline *ySpline, vtkSpline *zSpline)
 
 vtkCurveGenerator ()
 
 vtkCurveGenerator (const vtkCurveGenerator &)=delete
 
 ~vtkCurveGenerator () override
 

Protected Attributes

bool CurveIsClosed
 
int CurveType
 
vtkSmartPointer< vtkDoubleArray > InputParameters
 
std::vector< vtkIdType > InterpolatedPointIdsForControlPoints
 
double KochanekBias
 
double KochanekContinuity
 
bool KochanekEndsCopyNearestDerivatives
 
double KochanekTension
 
int NumberOfPointsPerInterpolatingSegment
 
double OutputCurveLength
 
vtkSmartPointer< vtkParametricFunction > ParametricFunction
 
int PolynomialFitMethod
 
int PolynomialOrder
 
int PolynomialPointSortingMethod
 
double PolynomialSampleWidth
 
int PolynomialWeightFunction
 
vtkSmartPointer< vtkSlicerDijkstraGraphGeodesicPathSurfacePathFilter
 
vtkSmartPointer< vtkPointLocator > SurfacePointLocator
 

Detailed Description

Filter that generates curves between points of an input polydata.

Definition at line 40 of file vtkCurveGenerator.h.

Member Typedef Documentation

◆ Superclass

typedef vtkPolyDataAlgorithm vtkCurveGenerator::Superclass

Definition at line 43 of file vtkCurveGenerator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Type of curve to generate.

Enumerator
CURVE_TYPE_LINEAR_SPLINE 
CURVE_TYPE_CARDINAL_SPLINE 
CURVE_TYPE_KOCHANEK_SPLINE 
CURVE_TYPE_POLYNOMIAL 
CURVE_TYPE_SHORTEST_DISTANCE_ON_SURFACE 
CURVE_TYPE_LAST 

Definition at line 64 of file vtkCurveGenerator.h.

◆ anonymous enum

anonymous enum

Set the sorting method for points in a polynomial.

Enumerator
SORTING_METHOD_INDEX 
SORTING_METHOD_MINIMUM_SPANNING_TREE_POSITION 
SORTING_METHOD_LAST 

Definition at line 120 of file vtkCurveGenerator.h.

◆ anonymous enum

anonymous enum

Set the type of fit for polynomials see corresponding entries in vtkParametricPolynomialApproximation.h for more information

Enumerator
POLYNOMIAL_FIT_METHOD_GLOBAL_LEAST_SQUARES 
POLYNOMIAL_FIT_METHOD_MOVING_LEAST_SQUARES 
POLYNOMIAL_FIT_METHOD_LAST 

Definition at line 138 of file vtkCurveGenerator.h.

◆ anonymous enum

anonymous enum

Set the weight function for moving least squares polynomial fits see corresponding entries in vtkParametricPolynomialApproximation.h for more information

Enumerator
POLYNOMIAL_WEIGHT_FUNCTION_RECTANGULAR 
POLYNOMIAL_WEIGHT_FUNCTION_TRIANGULAR 
POLYNOMIAL_WEIGHT_FUNCTION_COSINE 
POLYNOMIAL_WEIGHT_FUNCTION_GAUSSIAN 
POLYNOMIAL_WEIGHT_FUNCTION_LAST 

Definition at line 157 of file vtkCurveGenerator.h.

Constructor & Destructor Documentation

◆ vtkCurveGenerator() [1/2]

vtkCurveGenerator::vtkCurveGenerator ( )
protected

◆ ~vtkCurveGenerator()

vtkCurveGenerator::~vtkCurveGenerator ( )
overrideprotected

◆ vtkCurveGenerator() [2/2]

vtkCurveGenerator::vtkCurveGenerator ( const vtkCurveGenerator )
protecteddelete

Member Function Documentation

◆ CurveIsClosedOff()

virtual void vtkCurveGenerator::CurveIsClosedOff ( )
virtual

◆ CurveIsClosedOn()

virtual void vtkCurveGenerator::CurveIsClosedOn ( )
virtual

◆ CurveIsLoopOff()

void vtkCurveGenerator::CurveIsLoopOff ( )
inline

Definition at line 59 of file vtkCurveGenerator.h.

◆ CurveIsLoopOn()

void vtkCurveGenerator::CurveIsLoopOn ( )
inline

Definition at line 58 of file vtkCurveGenerator.h.

◆ FillInputPortInformation()

int vtkCurveGenerator::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
overrideprotected

◆ GenerateLines()

int vtkCurveGenerator::GenerateLines ( vtkPolyData *  polyData)
protected

◆ GeneratePoints()

int vtkCurveGenerator::GeneratePoints ( vtkPoints *  inputPoints,
vtkPolyData *  inputSurface,
vtkPolyData *  outputPolyData 
)
protected

◆ GeneratePointsFromFunction()

int vtkCurveGenerator::GeneratePointsFromFunction ( vtkPoints *  inputPoints,
vtkPoints *  outputPoints,
vtkDoubleArray *  outputPedigreeIdArray 
)
protected

◆ GeneratePointsFromSurface()

int vtkCurveGenerator::GeneratePointsFromSurface ( vtkPoints *  inputPoints,
vtkPolyData *  inputSurface,
vtkPoints *  outputPoints,
vtkDoubleArray *  outputPedigreeIdArray 
)
protected

◆ GetClassName()

virtual const char* vtkCurveGenerator::GetClassName ( )
virtual

◆ GetControlPointIdFromInterpolatedPointId()

vtkIdType vtkCurveGenerator::GetControlPointIdFromInterpolatedPointId ( vtkIdType  interpolatedPointId)

Get the control point id from the interpolated point id Currently only works for shortest surface distance

◆ GetCurveIsClosed()

virtual bool vtkCurveGenerator::GetCurveIsClosed ( )
virtual

◆ GetCurveIsLoop()

bool vtkCurveGenerator::GetCurveIsLoop ( )
inline

Definition at line 60 of file vtkCurveGenerator.h.

◆ GetCurveType()

virtual int vtkCurveGenerator::GetCurveType ( )
virtual

◆ GetCurveTypeAsString()

static const char* vtkCurveGenerator::GetCurveTypeAsString ( int  id)
static

◆ GetCurveTypeFromString()

static int vtkCurveGenerator::GetCurveTypeFromString ( const char *  name)
static

◆ GetKochanekBias()

virtual double vtkCurveGenerator::GetKochanekBias ( )
virtual

Bias of derivative toward previous point (negative value) or next point. Range -1 to 1. Default 0.

◆ GetKochanekContinuity()

virtual double vtkCurveGenerator::GetKochanekContinuity ( )
virtual

Make the curve sharper( negative value) or smoother (positive value). Range -1 to 1. Default 0.

◆ GetKochanekEndsCopyNearestDerivatives()

virtual bool vtkCurveGenerator::GetKochanekEndsCopyNearestDerivatives ( )
virtual

Make the ends of the curve 'straighter' by copying derivative of the nearest point. Default false.

◆ GetKochanekTension()

virtual double vtkCurveGenerator::GetKochanekTension ( )
virtual

How quickly the curve turns, higher values like tightening an elastic. Range -1 to 1. Default 0.

◆ GetNumberOfPointsPerInterpolatingSegment()

virtual int vtkCurveGenerator::GetNumberOfPointsPerInterpolatingSegment ( )
virtual

◆ GetOutputCurveLength()

double vtkCurveGenerator::GetOutputCurveLength ( )

Get the length of the curve.

◆ GetOutputPoints()

vtkPoints* vtkCurveGenerator::GetOutputPoints ( )

Get the output sampled points.

◆ GetParametricFunction()

vtkParametricFunction* vtkCurveGenerator::GetParametricFunction ( )
inline

The internal instance of the current parametric function use of the curve for other computations.

Definition at line 189 of file vtkCurveGenerator.h.

◆ GetPolynomialFitMethod()

virtual double vtkCurveGenerator::GetPolynomialFitMethod ( )
virtual

◆ GetPolynomialFitMethodAsString()

static const char* vtkCurveGenerator::GetPolynomialFitMethodAsString ( int  id)
static

◆ GetPolynomialFitMethodFromString()

static int vtkCurveGenerator::GetPolynomialFitMethodFromString ( const char *  name)
static

◆ GetPolynomialOrder()

virtual int vtkCurveGenerator::GetPolynomialOrder ( )
virtual

Set the order of the polynomials for fitting. Range 1 to 9 (equation becomes unstable from 9 upward). Default 1.

◆ GetPolynomialPointSortingMethod()

virtual int vtkCurveGenerator::GetPolynomialPointSortingMethod ( )
virtual

◆ GetPolynomialPointSortingMethodAsString()

static const char* vtkCurveGenerator::GetPolynomialPointSortingMethodAsString ( int  id)
static

◆ GetPolynomialPointSortingMethodFromString()

static int vtkCurveGenerator::GetPolynomialPointSortingMethodFromString ( const char *  name)
static

◆ GetPolynomialSampleWidth()

virtual double vtkCurveGenerator::GetPolynomialSampleWidth ( )
virtual

Set the sampling distance (in parameter space) for moving least squares sampling.

◆ GetPolynomialWeightFunction()

virtual double vtkCurveGenerator::GetPolynomialWeightFunction ( )
virtual

◆ GetPolynomialWeightFunctionAsString()

static const char* vtkCurveGenerator::GetPolynomialWeightFunctionAsString ( int  id)
static

◆ GetPolynomialWeightFunctionFromString()

static int vtkCurveGenerator::GetPolynomialWeightFunctionFromString ( const char *  name)
static

◆ GetSurfaceCostFunctionType()

int vtkCurveGenerator::GetSurfaceCostFunctionType ( )

If the surface scalars should be used to weight the distances in the pathfinding algorithm.

◆ GetSurfacePointIds()

vtkIdList* vtkCurveGenerator::GetSurfacePointIds ( )

Get the list of curve point ids on the surface mesh.

◆ IsA()

virtual int vtkCurveGenerator::IsA ( const char *  type)
virtual

◆ IsInterpolatingCurve()

virtual bool vtkCurveGenerator::IsInterpolatingCurve ( )
virtual

◆ IsTypeOf()

static int vtkCurveGenerator::IsTypeOf ( const char *  type)
static

◆ New()

static vtkCurveGenerator* vtkCurveGenerator::New ( )
static

◆ operator=()

void vtkCurveGenerator::operator= ( const vtkCurveGenerator )
protecteddelete

◆ PrintSelf()

void vtkCurveGenerator::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ RequestData()

int vtkCurveGenerator::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
overrideprotected

◆ SafeDownCast()

static vtkCurveGenerator* vtkCurveGenerator::SafeDownCast ( vtkObject *  o)
static

◆ SetCurveIsClosed()

virtual void vtkCurveGenerator::SetCurveIsClosed ( bool  )
virtual

This indicates whether the curve should loop back in on itself, connecting the last point back to the first point (disabled by default).

◆ SetCurveIsLoop()

void vtkCurveGenerator::SetCurveIsLoop ( bool  loop)
inline

These methods are deprecated and will be removed in the future. Use SetCurveIsClosed, GetCurveIsClosed, CurveIsCloseOn, CurveIsCloseOff methods instead.

Definition at line 57 of file vtkCurveGenerator.h.

◆ SetCurveType()

virtual void vtkCurveGenerator::SetCurveType ( int  )
virtual

◆ SetCurveTypeToCardinalSpline()

void vtkCurveGenerator::SetCurveTypeToCardinalSpline ( )
inline

Definition at line 78 of file vtkCurveGenerator.h.

◆ SetCurveTypeToKochanekSpline()

void vtkCurveGenerator::SetCurveTypeToKochanekSpline ( )
inline

Definition at line 79 of file vtkCurveGenerator.h.

◆ SetCurveTypeToLinearSpline()

void vtkCurveGenerator::SetCurveTypeToLinearSpline ( )
inline

Definition at line 77 of file vtkCurveGenerator.h.

◆ SetCurveTypeToPolynomial()

void vtkCurveGenerator::SetCurveTypeToPolynomial ( )
inline

Definition at line 80 of file vtkCurveGenerator.h.

◆ SetCurveTypeToShortestDistanceOnSurface()

void vtkCurveGenerator::SetCurveTypeToShortestDistanceOnSurface ( )
inline

Definition at line 81 of file vtkCurveGenerator.h.

◆ SetInputPoints()

void vtkCurveGenerator::SetInputPoints ( vtkPoints *  points)

Set the input control points.

◆ SetKochanekBias()

virtual void vtkCurveGenerator::SetKochanekBias ( double  )
virtual

◆ SetKochanekContinuity()

virtual void vtkCurveGenerator::SetKochanekContinuity ( double  )
virtual

◆ SetKochanekEndsCopyNearestDerivatives()

virtual void vtkCurveGenerator::SetKochanekEndsCopyNearestDerivatives ( bool  )
virtual

◆ SetKochanekTension()

virtual void vtkCurveGenerator::SetKochanekTension ( double  )
virtual

◆ SetNumberOfPointsPerInterpolatingSegment()

virtual void vtkCurveGenerator::SetNumberOfPointsPerInterpolatingSegment ( int  )
virtual

Sample an interpolating curve this many times per segment (pair of points in sequence). Range 1 and up. Default 5.

◆ SetParametricFunctionToCardinalSpline()

void vtkCurveGenerator::SetParametricFunctionToCardinalSpline ( vtkPoints *  inputPoints)
protected

◆ SetParametricFunctionToKochanekSpline()

void vtkCurveGenerator::SetParametricFunctionToKochanekSpline ( vtkPoints *  inputPoints)
protected

◆ SetParametricFunctionToLinearSpline()

void vtkCurveGenerator::SetParametricFunctionToLinearSpline ( vtkPoints *  inputPoints)
protected

◆ SetParametricFunctionToPolynomial()

void vtkCurveGenerator::SetParametricFunctionToPolynomial ( vtkPoints *  inputPoints)
protected

◆ SetParametricFunctionToSpline()

void vtkCurveGenerator::SetParametricFunctionToSpline ( vtkPoints *  inputPoints,
vtkSpline *  xSpline,
vtkSpline *  ySpline,
vtkSpline *  zSpline 
)
protected

◆ SetPolynomialFitMethod()

virtual void vtkCurveGenerator::SetPolynomialFitMethod ( double  )
virtual

◆ SetPolynomialFitMethodToGlobalLeastSquares()

void vtkCurveGenerator::SetPolynomialFitMethodToGlobalLeastSquares ( )
inline

Definition at line 148 of file vtkCurveGenerator.h.

◆ SetPolynomialFitMethodToMovingLeastSquares()

void vtkCurveGenerator::SetPolynomialFitMethodToMovingLeastSquares ( )
inline

Definition at line 149 of file vtkCurveGenerator.h.

◆ SetPolynomialOrder()

virtual void vtkCurveGenerator::SetPolynomialOrder ( int  )
virtual

◆ SetPolynomialPointSortingMethod()

virtual void vtkCurveGenerator::SetPolynomialPointSortingMethod ( int  )
virtual

◆ SetPolynomialPointSortingMethodToIndex()

void vtkCurveGenerator::SetPolynomialPointSortingMethodToIndex ( )
inline

Definition at line 130 of file vtkCurveGenerator.h.

◆ SetPolynomialPointSortingMethodToMinimumSpanningTreePosition()

void vtkCurveGenerator::SetPolynomialPointSortingMethodToMinimumSpanningTreePosition ( )
inline

Definition at line 131 of file vtkCurveGenerator.h.

◆ SetPolynomialSampleWidth()

virtual void vtkCurveGenerator::SetPolynomialSampleWidth ( double  )
virtual

◆ SetPolynomialWeightFunction()

virtual void vtkCurveGenerator::SetPolynomialWeightFunction ( double  )
virtual

◆ SetPolynomialWeightFunctionToCosine()

void vtkCurveGenerator::SetPolynomialWeightFunctionToCosine ( )
inline

Definition at line 171 of file vtkCurveGenerator.h.

◆ SetPolynomialWeightFunctionToGaussian()

void vtkCurveGenerator::SetPolynomialWeightFunctionToGaussian ( )
inline

Definition at line 172 of file vtkCurveGenerator.h.

◆ SetPolynomialWeightFunctionToRectangular()

void vtkCurveGenerator::SetPolynomialWeightFunctionToRectangular ( )
inline

Definition at line 169 of file vtkCurveGenerator.h.

◆ SetPolynomialWeightFunctionToTriangular()

void vtkCurveGenerator::SetPolynomialWeightFunctionToTriangular ( )
inline

Definition at line 170 of file vtkCurveGenerator.h.

◆ SetSurfaceCostFunctionType()

void vtkCurveGenerator::SetSurfaceCostFunctionType ( int  surfaceCostFunctionType)

◆ SortByIndex()

static void vtkCurveGenerator::SortByIndex ( vtkPoints *  inputPoints,
vtkDoubleArray *  outputParameters 
)
static

Calculates point parameters for use in vtkParametricPolynomialApproximation The parameter values are based on the point index and range from 0.0 at the start to 1.0 at the end of the line.

See also
SortByMinimumSpanningTreePosition
Parameters
inputPointsInput list of points. The points form a continuous line from the first to last point.
outputParametersParameters used by vtkParametricPolynomialApproximation to approximate a polynomial from the input points.

◆ SortByMinimumSpanningTreePosition()

static void vtkCurveGenerator::SortByMinimumSpanningTreePosition ( vtkPoints *  inputPoints,
vtkDoubleArray *  outputParameters 
)
static

Calculates point parameters for use in vtkParametricPolynomialApproximation The parameter values are calculated using the following algorithm:

  1. Construct an undirected graph as a 2D array
  2. Find the two vertices that are the farthest apart
  3. Run prim's algorithm on the graph
  4. Extract the "trunk" path from the last vertex to the first
  5. Based on the distance along that path, assign each vertex a polynomial parameter value
    See also
    SortByIndex
    Parameters
    inputPointsInput point cloud that should be sorted to form a continuous line.
    outputParametersParameters used by vtkParametricPolynomialApproximation to approximate a polynomial from the input points.

Member Data Documentation

◆ CurveIsClosed

bool vtkCurveGenerator::CurveIsClosed
protected

Definition at line 220 of file vtkCurveGenerator.h.

◆ CurveType

int vtkCurveGenerator::CurveType
protected

Definition at line 219 of file vtkCurveGenerator.h.

◆ InputParameters

vtkSmartPointer<vtkDoubleArray> vtkCurveGenerator::InputParameters
protected

Definition at line 235 of file vtkCurveGenerator.h.

◆ InterpolatedPointIdsForControlPoints

std::vector<vtkIdType> vtkCurveGenerator::InterpolatedPointIdsForControlPoints
protected

Definition at line 230 of file vtkCurveGenerator.h.

◆ KochanekBias

double vtkCurveGenerator::KochanekBias
protected

Definition at line 221 of file vtkCurveGenerator.h.

◆ KochanekContinuity

double vtkCurveGenerator::KochanekContinuity
protected

Definition at line 222 of file vtkCurveGenerator.h.

◆ KochanekEndsCopyNearestDerivatives

bool vtkCurveGenerator::KochanekEndsCopyNearestDerivatives
protected

Definition at line 224 of file vtkCurveGenerator.h.

◆ KochanekTension

double vtkCurveGenerator::KochanekTension
protected

Definition at line 223 of file vtkCurveGenerator.h.

◆ NumberOfPointsPerInterpolatingSegment

int vtkCurveGenerator::NumberOfPointsPerInterpolatingSegment
protected

Definition at line 218 of file vtkCurveGenerator.h.

◆ OutputCurveLength

double vtkCurveGenerator::OutputCurveLength
protected

Definition at line 239 of file vtkCurveGenerator.h.

◆ ParametricFunction

vtkSmartPointer<vtkParametricFunction> vtkCurveGenerator::ParametricFunction
protected

Definition at line 236 of file vtkCurveGenerator.h.

◆ PolynomialFitMethod

int vtkCurveGenerator::PolynomialFitMethod
protected

Definition at line 227 of file vtkCurveGenerator.h.

◆ PolynomialOrder

int vtkCurveGenerator::PolynomialOrder
protected

Definition at line 225 of file vtkCurveGenerator.h.

◆ PolynomialPointSortingMethod

int vtkCurveGenerator::PolynomialPointSortingMethod
protected

Definition at line 226 of file vtkCurveGenerator.h.

◆ PolynomialSampleWidth

double vtkCurveGenerator::PolynomialSampleWidth
protected

Definition at line 228 of file vtkCurveGenerator.h.

◆ PolynomialWeightFunction

int vtkCurveGenerator::PolynomialWeightFunction
protected

Definition at line 229 of file vtkCurveGenerator.h.

◆ SurfacePathFilter

vtkSmartPointer<vtkSlicerDijkstraGraphGeodesicPath> vtkCurveGenerator::SurfacePathFilter
protected

Definition at line 234 of file vtkCurveGenerator.h.

◆ SurfacePointLocator

vtkSmartPointer<vtkPointLocator> vtkCurveGenerator::SurfacePointLocator
protected

Definition at line 233 of file vtkCurveGenerator.h.


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