VTK
vtkImageBSplineCoefficients.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageBSplineCoefficients.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
51#ifndef vtkImageBSplineCoefficients_h
52#define vtkImageBSplineCoefficients_h
53
54
55#include "vtkImagingCoreModule.h" // For export macro
57#include "vtkImageBSplineInterpolator.h" // for constants
58
59class VTKIMAGINGCORE_EXPORT vtkImageBSplineCoefficients :
61{
62public:
65
66 void PrintSelf(ostream& os, vtkIndent indent);
67
69
73 vtkSetClampMacro(SplineDegree, int, 0, VTK_IMAGE_BSPLINE_DEGREE_MAX);
74 vtkGetMacro(SplineDegree, int);
76
78
87 vtkSetClampMacro(BorderMode, int,
90 this->SetBorderMode(VTK_IMAGE_BORDER_CLAMP); }
92 this->SetBorderMode(VTK_IMAGE_BORDER_REPEAT); }
94 this->SetBorderMode(VTK_IMAGE_BORDER_MIRROR); }
95 vtkGetMacro(BorderMode, int);
96 const char *GetBorderModeAsString();
98
100
105 vtkSetClampMacro(OutputScalarType, int, VTK_FLOAT, VTK_DOUBLE);
106 vtkGetMacro(OutputScalarType, int);
108 this->SetOutputScalarType(VTK_FLOAT); }
110 this->SetOutputScalarType(VTK_DOUBLE); }
113
115
122 vtkSetMacro(Bypass, int);
123 vtkBooleanMacro(Bypass, int);
124 vtkGetMacro(Bypass, int);
126
133 int CheckBounds(const double point[3]);
134
136
142 void Evaluate(const double point[3], double *value);
143 double Evaluate(double x, double y, double z);
144 double Evaluate(const double point[3]) {
145 return this->Evaluate(point[0], point[1], point[2]); }
147
148protected:
151
152 virtual void AllocateOutputData(
153 vtkImageData *out, vtkInformation *outInfo, int *uExtent);
155 vtkDataObject *out, vtkInformation* outInfo);
156
157 virtual int RequestData(
163
164 virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
165 int outExt[6], int threadId);
166
173
174private:
176 void operator=(const vtkImageBSplineCoefficients&) VTK_DELETE_FUNCTION;
177};
178
179#endif
general representation of visualization data
Definition: vtkDataObject.h:65
convert image to b-spline knots
void Evaluate(const double point[3], double *value)
Interpolate a value from the image.
const char * GetOutputScalarTypeAsString()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
const char * GetBorderModeAsString()
static vtkImageBSplineCoefficients * New()
double Evaluate(const double point[3])
int CheckBounds(const double point[3])
Check a point against the image bounds.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int outExt[6], int threadId)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void AllocateOutputData(vtkImageData *out, vtkInformation *outInfo, int *uExtent)
Allocate the output data.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
double Evaluate(double x, double y, double z)
virtual vtkImageData * AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo)
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
@ point
Definition: vtkX3D.h:236
@ value
Definition: vtkX3D.h:220
#define VTK_IMAGE_BORDER_REPEAT
#define VTK_IMAGE_BORDER_MIRROR
#define VTK_IMAGE_BORDER_CLAMP
#define VTK_IMAGE_BSPLINE_DEGREE_MAX
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_DOUBLE
Definition: vtkType.h:59
#define VTK_FLOAT
Definition: vtkType.h:58