VTK  9.5.20251126
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
122
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
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.")
185 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
187 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
189 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
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
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
void PreserveImageExtentOff()
PreserveImageExtentOff wasn't covered by test scripts and its implementation was broken.
int GetFilteredAxes()
~vtkImageFlip() override=default
virtual void SetFilteredAxis(int)
Specify which axis will be flipped.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageFlip * New()
virtual int GetFilteredAxis()
Specify which axis will be flipped.
void PreserveImageExtentOn()
PreserveImageExtentOff wasn't covered by test scripts and its implementation was broken.
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
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)