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
27 #ifndef vtkImageChangeInformation_h
28 #define vtkImageChangeInformation_h
29 
30 #include "vtkImageAlgorithm.h"
31 #include "vtkImagingCoreModule.h" // For export macro
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class vtkImageData;
35 
36 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
51 
53 
60  vtkSetVector3Macro(OutputExtentStart, int);
61  vtkGetVector3Macro(OutputExtentStart, int);
63 
65 
70  vtkSetVector3Macro(OutputSpacing, double);
71  vtkGetVector3Macro(OutputSpacing, double);
73 
75 
80  vtkSetVectorMacro(OutputDirection, double, 9);
81  vtkGetVectorMacro(OutputDirection, double, 9);
83 
85 
90  vtkSetVector3Macro(OutputOrigin, double);
91  vtkGetVector3Macro(OutputOrigin, double);
93 
95 
101  vtkSetMacro(CenterImage, vtkTypeBool);
102  vtkBooleanMacro(CenterImage, vtkTypeBool);
103  vtkGetMacro(CenterImage, vtkTypeBool);
105 
107 
110  vtkSetVector3Macro(ExtentTranslation, int);
111  vtkGetVector3Macro(ExtentTranslation, int);
113 
115 
118  vtkSetVector3Macro(SpacingScale, double);
119  vtkGetVector3Macro(SpacingScale, double);
121 
123 
126  vtkSetVector3Macro(OriginTranslation, double);
127  vtkGetVector3Macro(OriginTranslation, double);
129 
131 
135  vtkSetVector3Macro(OriginScale, double);
136  vtkGetVector3Macro(OriginScale, double);
138 
139 protected:
142 
144 
145  int OutputExtentStart[3];
146  int ExtentTranslation[3];
147  int FinalExtentTranslation[3];
148 
149  double OutputSpacing[3];
150  double SpacingScale[3];
151 
152  double OutputDirection[9];
153 
154  double OutputOrigin[3];
155  double OriginScale[3];
156  double OriginTranslation[3];
157 
160 
162 
164 
165 private:
167  void operator=(const vtkImageChangeInformation&) = delete;
168 };
169 
170 VTK_ABI_NAMESPACE_END
171 #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:52
a simple class to control print indentation
Definition: vtkIndent.h:38
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