VTK  9.2.6
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 =========================================================================*/
39 #ifndef vtkImageChangeInformation_h
40 #define vtkImageChangeInformation_h
41 
42 #include "vtkImageAlgorithm.h"
43 #include "vtkImagingCoreModule.h" // For export macro
44 
45 class vtkImageData;
46 
47 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
62 
64 
71  vtkSetVector3Macro(OutputExtentStart, int);
72  vtkGetVector3Macro(OutputExtentStart, int);
74 
76 
81  vtkSetVector3Macro(OutputSpacing, double);
82  vtkGetVector3Macro(OutputSpacing, double);
84 
86 
91  vtkSetVector3Macro(OutputOrigin, double);
92  vtkGetVector3Macro(OutputOrigin, double);
94 
96 
102  vtkSetMacro(CenterImage, vtkTypeBool);
103  vtkBooleanMacro(CenterImage, vtkTypeBool);
104  vtkGetMacro(CenterImage, vtkTypeBool);
106 
108 
111  vtkSetVector3Macro(ExtentTranslation, int);
112  vtkGetVector3Macro(ExtentTranslation, int);
114 
116 
119  vtkSetVector3Macro(SpacingScale, double);
120  vtkGetVector3Macro(SpacingScale, double);
122 
124 
127  vtkSetVector3Macro(OriginTranslation, double);
128  vtkGetVector3Macro(OriginTranslation, double);
130 
132 
136  vtkSetVector3Macro(OriginScale, double);
137  vtkGetVector3Macro(OriginScale, double);
139 
140 protected:
143 
145 
146  int OutputExtentStart[3];
147  int ExtentTranslation[3];
148  int FinalExtentTranslation[3];
149 
150  double OutputSpacing[3];
151  double SpacingScale[3];
152 
153  double OutputOrigin[3];
154  double OriginScale[3];
155  double OriginTranslation[3];
156 
159 
161 
163 
164 private:
166  void operator=(const vtkImageChangeInformation&) = delete;
167 };
168 
169 #endif
Generic algorithm superclass for image algs.
modify spacing, origin and extent.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageChangeInformation * New()
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetInformationInputData(vtkImageData *)
Copy the information from another data set.
~vtkImageChangeInformation() override
virtual vtkImageData * GetInformationInput()
Copy the information from another data set.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
topologically and geometrically regular array of data
Definition: vtkImageData.h:63
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69