VTK  9.3.20240425
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 "vtkImageReslice.h"
127#include "vtkImagingCoreModule.h" // For export macro
128
129VTK_ABI_NAMESPACE_BEGIN
130class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
131{
132public:
133 static vtkImageFlip* New();
134
136 void PrintSelf(ostream& os, vtkIndent indent) override;
137
139
143 vtkSetMacro(FilteredAxis, int);
144 vtkGetMacro(FilteredAxis, int);
146
148
164 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
165 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
166 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
168
173 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
174 int GetFilteredAxes() { return this->GetFilteredAxis(); }
175
177
182 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
183 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
184 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
186
187protected:
189 ~vtkImageFlip() override = default;
190
192
196
197private:
198 vtkImageFlip(const vtkImageFlip&) = delete;
199 void operator=(const vtkImageFlip&) = delete;
200};
201
202VTK_ABI_NAMESPACE_END
203#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