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 =========================================================================*/
31 #ifndef vtkImageResample_h
32 #define vtkImageResample_h
33 
34 
35 #include "vtkImagingCoreModule.h" // For export macro
36 #include "vtkImageReslice.h"
37 
38 class VTKIMAGINGCORE_EXPORT vtkImageResample : public vtkImageReslice
39 {
40 public:
41  static vtkImageResample *New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
49  void SetAxisOutputSpacing(int axis, double spacing);
50 
52 
56  void SetAxisMagnificationFactor(int axis, double factor);
57  double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0);
59 
61 
67  vtkSetMacro(Dimensionality,int);
68  vtkGetMacro(Dimensionality,int);
70 
71 protected:
74 
75  double MagnificationFactors[3];
76  double OutputSpacing[3];
78 
79  virtual int RequestInformation(vtkInformation *,
81  vtkInformationVector *) VTK_OVERRIDE;
82 
83 private:
84  vtkImageResample(const vtkImageResample&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkImageResample&) VTK_DELETE_FUNCTION;
86 };
87 
88 #endif
Store vtkAlgorithm input/output information.
Resamples an image to be larger or smaller.
static vtkImageReslice * New()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Reslices a volume along a new set of axes.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.