VTK  9.2.6
vtkImageFlip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageFlip.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkImageFlip_h
36 #define vtkImageFlip_h
37 
38 #include "vtkImageReslice.h"
39 #include "vtkImagingCoreModule.h" // For export macro
40 
41 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
42 {
43 public:
44  static vtkImageFlip* New();
45 
46  vtkTypeMacro(vtkImageFlip, vtkImageReslice);
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
54  vtkSetMacro(FilteredAxis, int);
55  vtkGetMacro(FilteredAxis, int);
57 
59 
75  vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
76  vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
77  vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
79 
84  void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
85  int GetFilteredAxes() { return this->GetFilteredAxis(); }
86 
88 
93  vtkSetMacro(PreserveImageExtent, vtkTypeBool);
94  vtkGetMacro(PreserveImageExtent, vtkTypeBool);
95  vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
97 
98 protected:
100  ~vtkImageFlip() override = default;
101 
103 
107 
108 private:
109  vtkImageFlip(const vtkImageFlip&) = delete;
110  void operator=(const vtkImageFlip&) = delete;
111 };
112 
113 #endif
This flips an axis of an image.
Definition: vtkImageFlip.h:42
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:106
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:105
int GetFilteredAxes()
Definition: vtkImageFlip.h:85
~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:84
static vtkImageFlip * New()
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69