VMTK
Loading...
Searching...
No Matches
vtkvmtkCurvedMPRImageFilter.h
Go to the documentation of this file.
1// Note: this class was contributed by
2// Hugo Gratama van Andel
3// Academic Medical Centre - University of Amsterdam
4// Dept. Biomedical Engineering & Physics
30
31#ifndef __vtkvmtkCurvedMPRImageFilter_h
32#define __vtkvmtkCurvedMPRImageFilter_h
33
34#include "vtkImageAlgorithm.h"
35#include "vtkvmtkWin32Header.h"
36
37#include "vtkImageData.h"
38#include "vtkImageChangeInformation.h"
39#include "vtkInformation.h"
40#include "vtkInformationVector.h"
41#include "vtkStreamingDemandDrivenPipeline.h"
42#include "vtkTransform.h"
43#include "vtkImageReslice.h"
44#include "vtkPointData.h"
45#include "vtkPolyData.h"
46#include "vtkCell.h"
47#include "vtkMath.h"
48
49class VTK_VMTK_MISC_EXPORT vtkvmtkCurvedMPRImageFilter : public vtkImageAlgorithm
50{
51public:
53
54 vtkTypeMacro(vtkvmtkCurvedMPRImageFilter,vtkImageAlgorithm);
55
56 void PrintSelf(std::ostream& os, vtkIndent indent) override;
57
59
62 vtkSetObjectMacro(Centerline,vtkPolyData);
63 vtkGetObjectMacro(Centerline,vtkPolyData);
65
67
70 vtkSetVector2Macro(InplaneOutputSpacing,double);
71 vtkGetVector2Macro(InplaneOutputSpacing,double);
73
75
78 vtkSetVector2Macro(InplaneOutputSize,int);
79 vtkGetVector2Macro(InplaneOutputSize,int);
81
83
86 vtkSetMacro(ReslicingBackgroundLevel,double);
87 vtkGetMacro(ReslicingBackgroundLevel,double);
89
91
95 vtkSetStringMacro(FrenetTangentArrayName);
96 vtkGetStringMacro(FrenetTangentArrayName);
98
100
107
109
113 vtkGetVectorMacro(OutputExtent,int,6);
115
117
122 vtkGetVectorMacro(OutputOrigin,double,3);
124
126
130 vtkGetVectorMacro(OutputSpacing,double,3);
132
133 protected:
136//BTX
137 template<class T>
138 void FillSlice(T* outReslicePtr, T* outputImagePtr, int* resliceUpdateExtent, int* outExtent, vtkIdType* outputInc, int slice);
139//ETX
141
145 virtual int RequestUpdateExtent (vtkInformation *,
146 vtkInformationVector **,
147 vtkInformationVector *) override;
148 // Description:
149 // This method is called by the superclass and performs the actual computation of the MPR image
150 virtual int RequestData(vtkInformation *,
151 vtkInformationVector **,
152 vtkInformationVector *) override;
153 // Description:
154 // This method is called by the superclass and compute the output extent, origin and spacing
155 virtual int RequestInformation (vtkInformation * vtkNotUsed(request),
156 vtkInformationVector **inputVector,
157 vtkInformationVector *outputVector) override;
159
160 vtkPolyData * Centerline;
165 double OutputOrigin[3];
166 double OutputSpacing[3];
169
170private:
172 void operator=(const vtkvmtkCurvedMPRImageFilter&); // Not implemented.
173};
174#endif
void FillSlice(T *outReslicePtr, T *outputImagePtr, int *resliceUpdateExtent, int *outExtent, vtkIdType *outputInc, int slice)
static vtkvmtkCurvedMPRImageFilter * New()
virtual int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override