Commit 0d74f60d authored by Ben Boeckel's avatar Ben Boeckel

IO/Image: use VTK_SIZEHINT

parent a43af30a
......@@ -99,7 +99,7 @@ class VTKIOIMAGE_EXPORT vtkDICOMImageReader : public vtkImageReader2
* thickness. If there is more than one slice, it is set to the distance
* between the first two slices.
*/
double* GetPixelSpacing();
double* GetPixelSpacing() VTK_SIZEHINT(3);
/**
* Returns the image width.
......@@ -116,14 +116,14 @@ class VTKIOIMAGE_EXPORT vtkDICOMImageReader : public vtkImageReader2
* image (upper left hand corner) of the last image processed by the
* DICOMParser
*/
float* GetImagePositionPatient();
float* GetImagePositionPatient() VTK_SIZEHINT(3);
/**
* Get the (DICOM) directions cosines. It consist of the components
* of the first two vectors. The third vector needs to be computed
* to form an orthonormal basis.
*/
float* GetImageOrientationPatient();
float* GetImageOrientationPatient() VTK_SIZEHINT(6);
/**
* Get the number of bits allocated for each pixel in the file.
......
......@@ -53,7 +53,7 @@ public:
* that C arrays are indexed in decreasing order, i.e. array[z][y][x].
*/
void GetDataDimensions(int *ptr);
int *GetDataDimensions() {
int *GetDataDimensions() VTK_SIZEHINT(3) {
this->GetDataDimensions(this->DataDimensions);
return this->DataDimensions; }
//@}
......@@ -77,11 +77,11 @@ public:
/**
* Get miscellaneous additional information about the data.
*/
int *GetDataExtent();
int *GetDataExtent() VTK_SIZEHINT(6);
void GetDataExtent(int *ptr);
double *GetDataSpacing();
double *GetDataSpacing() VTK_SIZEHINT(3);
void GetDataSpacing(double *ptr);
double *GetDataOrigin();
double *GetDataOrigin() VTK_SIZEHINT(3);
void GetDataOrigin(double *ptr);
//@}
......
......@@ -441,7 +441,7 @@ public:
virtual int HasWindowLevelPreset(double w, double l);
virtual int GetWindowLevelPresetIndex(double w, double l);
virtual int GetNthWindowLevelPreset(int idx, double *w, double *l);
virtual double* GetNthWindowLevelPreset(int idx);
virtual double* GetNthWindowLevelPreset(int idx) VTK_SIZEHINT(2);
virtual void SetNthWindowLevelPresetComment(int idx, const char *comment);
virtual const char* GetNthWindowLevelPresetComment(int idx);
//@}
......
vtkDataObject GetUpdateExtent 304 6
vtkDataObject GetWholeExtent 304 6
vtkDICOMImageReader GetImageOrientationPatient 301 6
vtkDICOMImageReader GetImagePositionPatient 301 3
vtkDICOMImageReader GetPixelSpacing 307 3
vtkDirectionEncoder GetDecodedGradient 301 3
vtkExodusIIReader GetModeShapesRange 304 2
vtkGridSynchronizedTemplates3D GetExecuteExtent 304 6
......@@ -14,10 +11,6 @@ vtkImageConvolve GetKernel3x3 301 9
vtkImageConvolve GetKernel3x3x3 301 27
vtkImageConvolve GetKernel5x5 301 25
vtkImageEllipsoidSource GetWholeExtent 304 6
vtkImageExport GetDataDimensions 304 3
vtkImageExport GetDataExtent 304 6
vtkImageExport GetDataOrigin 307 3
vtkImageExport GetDataSpacing 307 3
vtkImageMandelbrotSource GetSizeCX 307 4
vtkImagePadFilter GetOutputWholeExtent 304 6
vtkImagePointDataIterator GetIndex 304 3
......@@ -33,8 +26,6 @@ vtkImageSpatialFilter GetKernelSize 304 3
vtkImageVectorConvolve GetKernel 301 3
vtkImageViewer GetPosition 304 2
vtkImageViewer GetSize 304 2
vtkMedicalImageProperties GetNthWindowLevelPreset 307 2
vtkMedicalImageProperties GetWindowLevelPreset 307 2
vtkMINCImageReader GetDataRange 307 2
vtkPainterPolyDataMapper GetBounds 307 6
vtkPolyData GetUpdateExtent 304 6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment