VTK
vtkImageResample.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageResample.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 =========================================================================*/
30 #ifndef vtkImageResample_h
31 #define vtkImageResample_h
32 
33 
34 #include "vtkImagingCoreModule.h" // For export macro
35 #include "vtkImageReslice.h"
36 
38 {
39 public:
40  static vtkImageResample *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  void SetAxisOutputSpacing(int axis, double spacing);
47 
49 
51  void SetAxisMagnificationFactor(int axis, double factor);
52  double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0);
54 
56 
60  vtkSetMacro(Dimensionality,int);
61  vtkGetMacro(Dimensionality,int);
63 
64 protected:
67 
68  double MagnificationFactors[3];
69  double OutputSpacing[3];
71 
73 
74 private:
75  vtkImageResample(const vtkImageResample&); // Not implemented.
76  void operator=(const vtkImageResample&); // Not implemented.
77 };
78 
79 #endif
Store vtkAlgorithm input/output information.
Resamples an image to be larger or smaller.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkImageReslice * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIMAGINGCORE_EXPORT
Reslices a volume along a new set of axes.
Store zero or more vtkInformation instances.
virtual void PrintSelf(ostream &os, vtkIndent indent)