29 #ifndef __vtkTransformToGrid_h
30 #define __vtkTransformToGrid_h
32 #include "vtkFiltersHybridModule.h"
33 #include "vtkAlgorithm.h"
34 #include "vtkImageData.h"
36 class vtkAbstractTransform;
43 void PrintSelf(ostream& os, vtkIndent indent);
47 virtual void SetInput(vtkAbstractTransform*);
48 vtkGetObjectMacro(Input,vtkAbstractTransform);
53 vtkSetVector6Macro(GridExtent,
int);
54 vtkGetVector6Macro(GridExtent,
int);
59 vtkSetVector3Macro(GridOrigin,
double);
60 vtkGetVector3Macro(GridOrigin,
double);
65 vtkSetVector3Macro(GridSpacing,
double);
66 vtkGetVector3Macro(GridSpacing,
double);
71 vtkSetMacro(GridScalarType,
int);
72 vtkGetMacro(GridScalarType,
int);
77 {this->SetGridScalarType(VTK_UNSIGNED_SHORT);};
79 {this->SetGridScalarType(VTK_UNSIGNED_CHAR);};
81 {this->SetGridScalarType(VTK_CHAR);};
89 this->UpdateShiftScale();
return this->DisplacementScale; };
91 this->UpdateShiftScale();
return this->DisplacementShift; };
95 vtkImageData* GetOutput();
99 virtual int ProcessRequest(vtkInformation*,
100 vtkInformationVector**,
101 vtkInformationVector*);
108 void RequestInformation (vtkInformation *,
109 vtkInformationVector **, vtkInformationVector *);
111 void RequestData(vtkInformation *,
112 vtkInformationVector **, vtkInformationVector *);
116 void UpdateShiftScale();
118 unsigned long GetMTime();
124 double GridOrigin[3];
125 double GridSpacing[3];
132 virtual int FillOutputPortInformation(
int port, vtkInformation* info);