VTK  9.3.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 "vtkImageReslice.h"
18 #include "vtkImagingCoreModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
22 {
23 public:
24  static vtkImageFlip* New();
25 
26  vtkTypeMacro(vtkImageFlip, vtkImageReslice);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  vtkSetMacro(FilteredAxis, int);
35  vtkGetMacro(FilteredAxis, int);
37 
39 
55  vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
56  vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
57  vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
59 
64  void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
65  int GetFilteredAxes() { return this->GetFilteredAxis(); }
66 
68 
73  vtkSetMacro(PreserveImageExtent, vtkTypeBool);
74  vtkGetMacro(PreserveImageExtent, vtkTypeBool);
75  vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
77 
78 protected:
79  vtkImageFlip();
80  ~vtkImageFlip() override = default;
81 
83 
87 
88 private:
89  vtkImageFlip(const vtkImageFlip&) = delete;
90  void operator=(const vtkImageFlip&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
Store vtkAlgorithm input/output information.
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:85
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:86
static vtkImageReslice * New()
This flips an axis of an image.
Definition: vtkImageFlip.h:21
int vtkTypeBool
Definition: vtkABI.h:64
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:65
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:64