VTK  9.3.0
vtkImageChangeInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkImageChangeInformation_h
19 #define vtkImageChangeInformation_h
20 
21 #include "vtkImageAlgorithm.h"
22 #include "vtkImagingCoreModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkImageData;
26 
27 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
42 
44 
51  vtkSetVector3Macro(OutputExtentStart, int);
52  vtkGetVector3Macro(OutputExtentStart, int);
54 
56 
61  vtkSetVector3Macro(OutputSpacing, double);
62  vtkGetVector3Macro(OutputSpacing, double);
64 
66 
71  vtkSetVectorMacro(OutputDirection, double, 9);
72  vtkGetVectorMacro(OutputDirection, double, 9);
74 
76 
81  vtkSetVector3Macro(OutputOrigin, double);
82  vtkGetVector3Macro(OutputOrigin, double);
84 
86 
92  vtkSetMacro(CenterImage, vtkTypeBool);
93  vtkBooleanMacro(CenterImage, vtkTypeBool);
94  vtkGetMacro(CenterImage, vtkTypeBool);
96 
98 
101  vtkSetVector3Macro(ExtentTranslation, int);
102  vtkGetVector3Macro(ExtentTranslation, int);
104 
106 
109  vtkSetVector3Macro(SpacingScale, double);
110  vtkGetVector3Macro(SpacingScale, double);
112 
114 
117  vtkSetVector3Macro(OriginTranslation, double);
118  vtkGetVector3Macro(OriginTranslation, double);
120 
122 
126  vtkSetVector3Macro(OriginScale, double);
127  vtkGetVector3Macro(OriginScale, double);
129 
130 protected:
133 
135 
136  int OutputExtentStart[3];
137  int ExtentTranslation[3];
138  int FinalExtentTranslation[3];
139 
140  double OutputSpacing[3];
141  double SpacingScale[3];
142 
143  double OutputDirection[9];
144 
145  double OutputOrigin[3];
146  double OriginScale[3];
147  double OriginTranslation[3];
148 
151 
153 
155 
156 private:
158  void operator=(const vtkImageChangeInformation&) = delete;
159 };
160 
161 VTK_ABI_NAMESPACE_END
162 #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:43
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64