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
vtkImageReslice.h
vtkImageResample::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageResample::Dimensionality
int Dimensionality
Definition: vtkImageResample.h:70
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageResample::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageResample::New
static vtkImageResample * New()
vtkImageResample
Resamples an image to be larger or smaller.
Definition: vtkImageResample.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageReslice
Reslices a volume along a new set of axes.
Definition: vtkImageReslice.h:77
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageResample::vtkImageResample
vtkImageResample()
vtkX3D::spacing
@ spacing
Definition: vtkX3D.h:481
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImageResample::~vtkImageResample
~vtkImageResample()
Definition: vtkImageResample.h:66
vtkImagingCoreModule.h
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkImageResample::SetAxisOutputSpacing
void SetAxisOutputSpacing(int axis, double spacing)
vtkImageResample::SetAxisMagnificationFactor
void SetAxisMagnificationFactor(int axis, double factor)
vtkImageResample::GetAxisMagnificationFactor
double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0)