VTK  9.5.20250908
vtkImageFlip.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
123#ifndef vtkImageFlip_h
124#define vtkImageFlip_h
125
126#include "vtkDeprecation.h" // for Deprecation macro
127#include "vtkImageReslice.h"
128#include "vtkImagingCoreModule.h" // For export macro
129
130VTK_ABI_NAMESPACE_BEGIN
131class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
132{
133public:
134 static vtkImageFlip* New();
135
137 void PrintSelf(ostream& os, vtkIndent indent) override;
138
140
144 vtkSetMacro(FilteredAxis, int);
145 vtkGetMacro(FilteredAxis, int);
147
149
165 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
166 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
167 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
169
174 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
175 int GetFilteredAxes() { return this->GetFilteredAxis(); }
176
178
183 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
184 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
185 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
186 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
187 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
188 void PreserveImageExtentOn() {}
189 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
190 void PreserveImageExtentOff() {}
192
193protected:
195 ~vtkImageFlip() override = default;
196
198
202
203private:
204 vtkImageFlip(const vtkImageFlip&) = delete;
205 void operator=(const vtkImageFlip&) = delete;
206};
207
208VTK_ABI_NAMESPACE_END
209#endif
This flips an axis of an image.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkTypeBool PreserveImageExtent
vtkTypeBool FlipAboutOrigin
int GetFilteredAxes()
~vtkImageFlip() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageFlip * New()
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
Reslices a volume along a new set of axes.
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
#define VTK_DEPRECATED_IN_9_6_0(reason)