VTK
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 =========================================================================*/
24 #ifndef vtkImageChangeInformation_h
25 #define vtkImageChangeInformation_h
26 
27 #include "vtkImagingCoreModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
29 
30 class vtkImageData;
31 
32 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
40 
44  virtual void SetInformationInputData(vtkImageData*);
45  virtual vtkImageData *GetInformationInput();
47 
49 
56  vtkSetVector3Macro(OutputExtentStart, int);
57  vtkGetVector3Macro(OutputExtentStart, int);
59 
61 
66  vtkSetVector3Macro(OutputSpacing, double);
67  vtkGetVector3Macro(OutputSpacing, double);
69 
71 
76  vtkSetVector3Macro(OutputOrigin, double);
77  vtkGetVector3Macro(OutputOrigin, double);
79 
81 
87  vtkSetMacro(CenterImage, int);
88  vtkBooleanMacro(CenterImage, int);
89  vtkGetMacro(CenterImage, int);
91 
93 
96  vtkSetVector3Macro(ExtentTranslation, int);
97  vtkGetVector3Macro(ExtentTranslation, int);
99 
101 
104  vtkSetVector3Macro(SpacingScale, double);
105  vtkGetVector3Macro(SpacingScale, double);
107 
109 
112  vtkSetVector3Macro(OriginTranslation, double);
113  vtkGetVector3Macro(OriginTranslation, double);
115 
117 
121  vtkSetVector3Macro(OriginScale, double);
122  vtkGetVector3Macro(OriginScale, double);
124 
125 protected:
127  ~vtkImageChangeInformation() VTK_OVERRIDE;
128 
129  int CenterImage;
130 
131  int OutputExtentStart[3];
132  int ExtentTranslation[3];
133  int FinalExtentTranslation[3];
134 
135  double OutputSpacing[3];
136  double SpacingScale[3];
137 
138  double OutputOrigin[3];
139  double OriginScale[3];
140  double OriginTranslation[3];
141 
142  int RequestUpdateExtent (vtkInformation *,
144  vtkInformationVector *) VTK_OVERRIDE;
145  int RequestInformation (vtkInformation *,
147  vtkInformationVector *) VTK_OVERRIDE;
148 
149  int RequestData(vtkInformation *,
151  vtkInformationVector *) VTK_OVERRIDE;
152 
153  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
154 
155 private:
156  vtkImageChangeInformation(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
157  void operator=(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
158 };
159 
160 
161 
162 #endif
163 
164 
165 
Store vtkAlgorithm input/output information.
modify spacing, origin and extent.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.