32 #ifndef __vtkvmtkActiveTubeFilter_h 33 #define __vtkvmtkActiveTubeFilter_h 35 #include "vtkPolyDataAlgorithm.h" 36 #include "vtkvmtkWin32Header.h" 45 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 virtual void SetPotentialImage(vtkImageData *);
50 vtkGetObjectMacro(PotentialImage, vtkImageData);
52 vtkSetStringMacro(RadiusArrayName);
53 vtkGetStringMacro(RadiusArrayName);
55 vtkSetMacro(NumberOfIterations,
int);
56 vtkGetMacro(NumberOfIterations,
int);
58 vtkSetMacro(PotentialWeight,
double);
59 vtkGetMacro(PotentialWeight,
double);
61 vtkSetMacro(StiffnessWeight,
double);
62 vtkGetMacro(StiffnessWeight,
double);
64 vtkSetMacro(Convergence,
double);
65 vtkGetMacro(Convergence,
double);
67 vtkSetMacro(CFLCoefficient,
double);
68 vtkGetMacro(CFLCoefficient,
double);
70 vtkSetMacro(MinimumRadius,
double);
71 vtkGetMacro(MinimumRadius,
double);
73 vtkSetMacro(FixedEndpointCoordinates,
int);
74 vtkGetMacro(FixedEndpointCoordinates,
int);
75 vtkBooleanMacro(FixedEndpointCoordinates,
int);
77 vtkSetMacro(FixedEndpointRadius,
int);
78 vtkGetMacro(FixedEndpointRadius,
int);
79 vtkBooleanMacro(FixedEndpointRadius,
int);
81 vtkSetMacro(NumberOfAngularEvaluations,
int);
82 vtkGetMacro(NumberOfAngularEvaluations,
int);
84 vtkSetMacro(SplineResamplingWhileIterating,
int);
85 vtkGetMacro(SplineResamplingWhileIterating,
int);
86 vtkBooleanMacro(SplineResamplingWhileIterating,
int);
88 vtkSetMacro(NegativeNormWarnings,
int);
89 vtkGetMacro(NegativeNormWarnings,
int);
90 vtkBooleanMacro(NegativeNormWarnings,
int);
96 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
98 void EvaluateForce(
double point[3],
double force[3],
bool normalize);
99 double EvaluatePotential(
double point[3]);
101 static bool IsInExtent(vtkIdType extent[6],
int ijk[3], vtkIdType border)
103 return (ijk[0]>=extent[0]+border && ijk[0]<=extent[1]-border) && (ijk[1]>=extent[2]+border && ijk[1]<=extent[3]-border) && (ijk[2]>=extent[4]+border && ijk[2]<=extent[5]-border) ? true :
false;
108 return (ijk[0]>=extent[0]+border && ijk[0]<extent[1]-border) && (ijk[1]>=extent[2]+border && ijk[1]<extent[3]-border) && (ijk[2]>=extent[4]+border && ijk[2]<extent[5]-border) ? true :
false;
111 void EvolveCellSpline(vtkPolyData* lines, vtkIdType cellId);
bool NegativeNormWarnings
int SplineResamplingWhileIterating
Experimental method for generating centerlines from an image.
static bool IsCellInExtent(int extent[6], int ijk[3], vtkIdType border)
int NumberOfAngularEvaluations
static bool IsInExtent(vtkIdType extent[6], int ijk[3], vtkIdType border)
int FixedEndpointCoordinates
vtkImageData * PotentialGradientImage
vtkImageData * PotentialImage