VTK  9.7.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
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 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
23 {
24 public:
25  static vtkImageFlip* New();
26 
27  vtkTypeMacro(vtkImageFlip, vtkImageReslice);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
35  vtkSetMacro(FilteredAxis, int);
36  vtkGetMacro(FilteredAxis, int);
38 
40 
56  vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
57  vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
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.")
75  vtkSetMacro(PreserveImageExtent, vtkTypeBool);
76  VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
77  vtkGetMacro(PreserveImageExtent, vtkTypeBool);
78  VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
79  void PreserveImageExtentOn() {}
80  VTK_DEPRECATED_IN_9_6_0("This is no a no-op, Image extent is always preserved.")
81  void PreserveImageExtentOff() {}
83 
84 protected:
85  vtkImageFlip();
86  ~vtkImageFlip() override = default;
87 
89 
93 
94 private:
95  vtkImageFlip(const vtkImageFlip&) = delete;
96  void operator=(const vtkImageFlip&) = delete;
97 };
98 
99 VTK_ABI_NAMESPACE_END
100 #endif
Store vtkAlgorithm input/output information.
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:91
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkTypeBool PreserveImageExtent
Definition: vtkImageFlip.h:92
static vtkImageReslice * New()
This flips an axis of an image.
Definition: vtkImageFlip.h:22
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_DEPRECATED_IN_9_6_0(reason)
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Reslices a volume along a new set of axes.
int GetFilteredAxes()
Definition: vtkImageFlip.h:66
Store zero or more vtkInformation instances.
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
Definition: vtkImageFlip.h:65