VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageMagnify.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMagnify.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 __vtkImageMagnify_h
32 #define __vtkImageMagnify_h
33 
34 #include "vtkImagingCoreModule.h" // For export macro
35 #include "vtkThreadedImageAlgorithm.h"
36 
37 class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
38 {
39 public:
40  static vtkImageMagnify *New();
41  vtkTypeMacro(vtkImageMagnify,vtkThreadedImageAlgorithm);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  vtkSetVector3Macro(MagnificationFactors,int);
48  vtkGetVector3Macro(MagnificationFactors,int);
50 
52 
54  vtkSetMacro(Interpolate,int);
55  vtkGetMacro(Interpolate,int);
56  vtkBooleanMacro(Interpolate,int);
58 
59 protected:
62 
63  int MagnificationFactors[3];
65  virtual int RequestUpdateExtent(vtkInformation *,
66  vtkInformationVector **,
67  vtkInformationVector *);
68  virtual int RequestInformation(vtkInformation *,
69  vtkInformationVector **,
70  vtkInformationVector *);
71 
72  void ThreadedRequestData(vtkInformation *request,
73  vtkInformationVector **inputVector,
74  vtkInformationVector *outputVector,
75  vtkImageData ***inData,
76  vtkImageData **outData,
77  int outExt[6],
78  int id);
79 
80  void InternalRequestUpdateExtent(int *inExt, int *outExt);
81 
82 private:
83  vtkImageMagnify(const vtkImageMagnify&); // Not implemented.
84  void operator=(const vtkImageMagnify&); // Not implemented.
85 };
86 
87 #endif
88 
89 
90 
91 
magnify an image by an integer value