VTK  9.3.0
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
23#ifndef vtkImageFlip_h
24#define vtkImageFlip_h
25
26#include "vtkImageReslice.h"
27#include "vtkImagingCoreModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
31{
32public:
33 static vtkImageFlip* New();
34
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkSetMacro(FilteredAxis, int);
44 vtkGetMacro(FilteredAxis, int);
46
48
64 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
65 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
66 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
68
73 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
74 int GetFilteredAxes() { return this->GetFilteredAxis(); }
75
77
82 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
83 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
84 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
86
87protected:
89 ~vtkImageFlip() override = default;
90
92
96
97private:
98 vtkImageFlip(const vtkImageFlip&) = delete;
99 void operator=(const vtkImageFlip&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64