VTK  9.3.20240328
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 
129 VTK_ABI_NAMESPACE_BEGIN
130 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
131 {
132 public:
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 
187 protected:
189  ~vtkImageFlip() override = default;
190 
192 
196 
197 private:
198  vtkImageFlip(const vtkImageFlip&) = delete;
199  void operator=(const vtkImageFlip&) = delete;
200 };
201 
202 VTK_ABI_NAMESPACE_END
203 #endif
This flips an axis of an image.
Definition: vtkImageFlip.h:131
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:195
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:194
int GetFilteredAxes()
Definition: vtkImageFlip.h:174
~vtkImageFlip() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
Definition: vtkImageFlip.h:173
static vtkImageFlip * New()
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