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 =========================================================================*/
47 #ifndef vtkImageBSplineCoefficients_h
48 #define vtkImageBSplineCoefficients_h
49 
50 
51 #include "vtkImagingCoreModule.h" // For export macro
53 #include "vtkImageBSplineInterpolator.h" // for constants
54 
57 {
58 public:
61 
62  void PrintSelf(ostream& os, vtkIndent indent);
63 
65 
68  vtkGetMacro(SplineDegree, int);
70 
72 
79  vtkSetClampMacro(BorderMode, int,
82  this->SetBorderMode(VTK_IMAGE_BORDER_CLAMP); }
84  this->SetBorderMode(VTK_IMAGE_BORDER_REPEAT); }
86  this->SetBorderMode(VTK_IMAGE_BORDER_MIRROR); }
87  vtkGetMacro(BorderMode, int);
88  const char *GetBorderModeAsString();
90 
92 
95  vtkSetClampMacro(OutputScalarType, int, VTK_FLOAT, VTK_DOUBLE);
96  vtkGetMacro(OutputScalarType, int);
98  this->SetOutputScalarType(VTK_FLOAT); }
100  this->SetOutputScalarType(VTK_DOUBLE); }
103 
105 
110  vtkSetMacro(Bypass, int);
111  vtkBooleanMacro(Bypass, int);
112  vtkGetMacro(Bypass, int);
114 
119  int CheckBounds(const double point[3]);
120 
122 
126  void Evaluate(const double point[3], double *value);
127  double Evaluate(double x, double y, double z);
128  double Evaluate(const double point[3]) {
129  return this->Evaluate(point[0], point[1], point[2]); }
131 
134  int SplitExtent(int splitExt[6], int startExt[6], int num, int total);
135 
136 protected:
139 
140  virtual void AllocateOutputData(
141  vtkImageData *out, vtkInformation *outInfo, int *uExtent);
143  vtkDataObject *out, vtkInformation* outInfo);
144 
145  virtual int RequestData(
147  virtual int RequestInformation(
149  virtual int RequestUpdateExtent(
151 
152  virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
153  int outExt[6], int threadId);
154 
158  int Bypass;
161 
162 private:
163  vtkImageBSplineCoefficients(const vtkImageBSplineCoefficients&); // Not implemented.
164  void operator=(const vtkImageBSplineCoefficients&); // Not implemented.
165 };
166 
167 #endif
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkImageBSplineCoefficients::SetBorderModeToMirror
void SetBorderModeToMirror()
Definition: vtkImageBSplineCoefficients.h:85
vtkImageBSplineCoefficients::CheckBounds
int CheckBounds(const double point[3])
vtkImageBSplineCoefficients::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageBSplineCoefficients.h:99
vtkImageBSplineCoefficients::BorderMode
int BorderMode
Definition: vtkImageBSplineCoefficients.h:156
vtkImageBSplineCoefficients::ThreadedExecute
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int outExt[6], int threadId)
vtkImageBSplineCoefficients::GetOutputScalarTypeAsString
const char * GetOutputScalarTypeAsString()
VTK_IMAGE_BSPLINE_DEGREE_MAX
#define VTK_IMAGE_BSPLINE_DEGREE_MAX
Definition: vtkImageBSplineInterpolator.h:45
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThreadedImageAlgorithm
Generic filter that has one input..
Definition: vtkThreadedImageAlgorithm.h:37
vtkImageBSplineCoefficients::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTK_IMAGE_BORDER_MIRROR
#define VTK_IMAGE_BORDER_MIRROR
Definition: vtkAbstractImageInterpolator.h:37
vtkImageBSplineCoefficients::Evaluate
void Evaluate(const double point[3], double *value)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkImageBSplineCoefficients::OutputScalarType
int OutputScalarType
Definition: vtkImageBSplineCoefficients.h:157
vtkImageBSplineCoefficients::AllocateOutputData
virtual void AllocateOutputData(vtkImageData *out, vtkInformation *outInfo, int *uExtent)
vtkImageBSplineCoefficients
convert image to b-spline knots
Definition: vtkImageBSplineCoefficients.h:57
vtkImageBSplineCoefficients::DataWasPassed
int DataWasPassed
Definition: vtkImageBSplineCoefficients.h:159
vtkThreadedImageAlgorithm.h
vtkImageBSplineCoefficients::New
static vtkImageBSplineCoefficients * New()
vtkImageBSplineInterpolator.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkImageBSplineCoefficients::SplitExtent
int SplitExtent(int splitExt[6], int startExt[6], int num, int total)
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkImageBSplineCoefficients::~vtkImageBSplineCoefficients
~vtkImageBSplineCoefficients()
vtkImageBSplineCoefficients::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageBSplineCoefficients::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageBSplineCoefficients.h:97
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
VTK_IMAGE_BORDER_CLAMP
#define VTK_IMAGE_BORDER_CLAMP
Definition: vtkAbstractImageInterpolator.h:35
vtkImageBSplineCoefficients::vtkImageBSplineCoefficients
vtkImageBSplineCoefficients()
vtkgl::num
GLuint GLuint num
Definition: vtkgl.h:16907
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:35
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:36
vtkImageBSplineCoefficients::SplineDegree
int SplineDegree
Definition: vtkImageBSplineCoefficients.h:155
vtkImageBSplineCoefficients::Iteration
int Iteration
Definition: vtkImageBSplineCoefficients.h:160
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageBSplineCoefficients::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_IMAGE_BORDER_REPEAT
#define VTK_IMAGE_BORDER_REPEAT
Definition: vtkAbstractImageInterpolator.h:36
vtkImageBSplineCoefficients::Evaluate
double Evaluate(const double point[3])
Definition: vtkImageBSplineCoefficients.h:128
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImageBSplineCoefficients::SetBorderModeToRepeat
void SetBorderModeToRepeat()
Definition: vtkImageBSplineCoefficients.h:83
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkImageBSplineCoefficients::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImagingCoreModule.h
vtkImageBSplineCoefficients::SetBorderModeToClamp
void SetBorderModeToClamp()
Definition: vtkImageBSplineCoefficients.h:81
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkImageBSplineCoefficients::GetBorderModeAsString
const char * GetBorderModeAsString()
vtkImageBSplineCoefficients::Evaluate
double Evaluate(double x, double y, double z)
vtkImageBSplineCoefficients::Bypass
int Bypass
Definition: vtkImageBSplineCoefficients.h:158
vtkImageBSplineCoefficients::AllocateOutputData
virtual vtkImageData * AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo)