VTK  9.6.1
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
13
14#ifndef vtkImageFlip_h
15#define vtkImageFlip_h
16
17#include "vtkDeprecation.h" // for Deprecation macro
18#include "vtkImageReslice.h"
19#include "vtkImagingCoreModule.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
22class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
23{
24public:
25 static vtkImageFlip* New();
26
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
35 vtkSetMacro(FilteredAxis, int);
36 vtkGetMacro(FilteredAxis, int);
38
40
58 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
60
65 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
66 int GetFilteredAxes() { return this->GetFilteredAxis(); }
67
69
74 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
76 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
78 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
80 VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
83
84protected:
86 ~vtkImageFlip() override = default;
87
89
93
94private:
95 vtkImageFlip(const vtkImageFlip&) = delete;
96 void operator=(const vtkImageFlip&) = delete;
97};
98
99VTK_ABI_NAMESPACE_END
100#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:29
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)