VTK  9.3.20240423
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
47#ifndef vtkImageChangeInformation_h
48#define vtkImageChangeInformation_h
49
50#include "vtkImageAlgorithm.h"
51#include "vtkImagingCoreModule.h" // For export macro
52
53VTK_ABI_NAMESPACE_BEGIN
54class vtkImageData;
55
56class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
57{
58public:
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64
71
73
80 vtkSetVector3Macro(OutputExtentStart, int);
81 vtkGetVector3Macro(OutputExtentStart, int);
83
85
90 vtkSetVector3Macro(OutputSpacing, double);
91 vtkGetVector3Macro(OutputSpacing, double);
93
95
100 vtkSetVectorMacro(OutputDirection, double, 9);
101 vtkGetVectorMacro(OutputDirection, double, 9);
103
105
110 vtkSetVector3Macro(OutputOrigin, double);
111 vtkGetVector3Macro(OutputOrigin, double);
113
115
121 vtkSetMacro(CenterImage, vtkTypeBool);
122 vtkBooleanMacro(CenterImage, vtkTypeBool);
123 vtkGetMacro(CenterImage, vtkTypeBool);
125
127
130 vtkSetVector3Macro(ExtentTranslation, int);
131 vtkGetVector3Macro(ExtentTranslation, int);
133
135
138 vtkSetVector3Macro(SpacingScale, double);
139 vtkGetVector3Macro(SpacingScale, double);
141
143
146 vtkSetVector3Macro(OriginTranslation, double);
147 vtkGetVector3Macro(OriginTranslation, double);
149
151
155 vtkSetVector3Macro(OriginScale, double);
156 vtkGetVector3Macro(OriginScale, double);
158
159protected:
162
164
165 int OutputExtentStart[3];
166 int ExtentTranslation[3];
167 int FinalExtentTranslation[3];
168
169 double OutputSpacing[3];
170 double SpacingScale[3];
171
172 double OutputDirection[9];
173
174 double OutputOrigin[3];
175 double OriginScale[3];
176 double OriginTranslation[3];
177
180
182
183 int FillInputPortInformation(int port, vtkInformation* info) override;
184
185private:
187 void operator=(const vtkImageChangeInformation&) = delete;
188};
189
190VTK_ABI_NAMESPACE_END
191#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...
virtual vtkImageData * GetInformationInput()
Copy the information from another data set.
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
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
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64