VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageChangeInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageChangeInformation.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 =========================================================================*/
26 #ifndef __vtkImageChangeInformation_h
27 #define __vtkImageChangeInformation_h
28 
29 #include "vtkImagingCoreModule.h" // For export macro
30 #include "vtkImageAlgorithm.h"
31 
32 class vtkImageData;
33 
34 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
35 {
36 public:
37  static vtkImageChangeInformation *New();
38  vtkTypeMacro(vtkImageChangeInformation, vtkImageAlgorithm);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
44  virtual void SetInformationInputData(vtkImageData*);
45  virtual vtkImageData *GetInformationInput();
47 
49 
53  vtkSetVector3Macro(OutputExtentStart, int);
54  vtkGetVector3Macro(OutputExtentStart, int);
56 
58 
61  vtkSetVector3Macro(OutputSpacing, double);
62  vtkGetVector3Macro(OutputSpacing, double);
64 
66 
69  vtkSetVector3Macro(OutputOrigin, double);
70  vtkGetVector3Macro(OutputOrigin, double);
72 
74 
78  vtkSetMacro(CenterImage, int);
79  vtkBooleanMacro(CenterImage, int);
80  vtkGetMacro(CenterImage, int);
82 
84 
85  vtkSetVector3Macro(ExtentTranslation, int);
86  vtkGetVector3Macro(ExtentTranslation, int);
88 
90 
91  vtkSetVector3Macro(SpacingScale, double);
92  vtkGetVector3Macro(SpacingScale, double);
94 
96 
97  vtkSetVector3Macro(OriginTranslation, double);
98  vtkGetVector3Macro(OriginTranslation, double);
100 
102 
104  vtkSetVector3Macro(OriginScale, double);
105  vtkGetVector3Macro(OriginScale, double);
107 
108 protected:
111 
113 
114  int OutputExtentStart[3];
115  int ExtentTranslation[3];
116  int FinalExtentTranslation[3];
117 
118  double OutputSpacing[3];
119  double SpacingScale[3];
120 
121  double OutputOrigin[3];
122  double OriginScale[3];
123  double OriginTranslation[3];
124 
125  virtual int RequestUpdateExtent (vtkInformation *,
126  vtkInformationVector **,
127  vtkInformationVector *);
128  virtual int RequestInformation (vtkInformation *,
129  vtkInformationVector **,
130  vtkInformationVector *);
131 
132  virtual int RequestData(vtkInformation *,
133  vtkInformationVector **,
134  vtkInformationVector *);
135 
136  virtual int FillInputPortInformation(int port, vtkInformation *info);
137 
138 private:
139  vtkImageChangeInformation(const vtkImageChangeInformation&); // Not implemented.
140  void operator=(const vtkImageChangeInformation&); // Not implemented.
141 };
142 
143 
144 
145 #endif
146 
147 
148 
modify spacing, origin and extent.