VTK  9.1.0
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 =========================================================================*/
82 #ifndef vtkImageFlip_h
83 #define vtkImageFlip_h
84 
85 #include "vtkImageReslice.h"
86 #include "vtkImagingCoreModule.h" // For export macro
87 
88 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
89 {
90 public:
91  static vtkImageFlip* New();
92 
93  vtkTypeMacro(vtkImageFlip, vtkImageReslice);
94  void PrintSelf(ostream& os, vtkIndent indent) override;
95 
97 
101  vtkSetMacro(FilteredAxis, int);
102  vtkGetMacro(FilteredAxis, int);
104 
106 
122  vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
123  vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
124  vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
126 
131  void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
132  int GetFilteredAxes() { return this->GetFilteredAxis(); }
133 
135 
140  vtkSetMacro(PreserveImageExtent, vtkTypeBool);
141  vtkGetMacro(PreserveImageExtent, vtkTypeBool);
142  vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
144 
145 protected:
147  ~vtkImageFlip() override = default;
148 
150 
154 
155 private:
156  vtkImageFlip(const vtkImageFlip&) = delete;
157  void operator=(const vtkImageFlip&) = delete;
158 };
159 
160 #endif
vtkImageReslice.h
vtkImageFlip::~vtkImageFlip
~vtkImageFlip() override=default
vtkImageFlip::FilteredAxis
int FilteredAxis
Definition: vtkImageFlip.h:151
vtkImageFlip::PreserveImageExtent
vtkTypeBool PreserveImageExtent
Definition: vtkImageFlip.h:153
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageFlip
This flips an axis of an image.
Definition: vtkImageFlip.h:89
vtkImageFlip::SetFilteredAxes
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
Definition: vtkImageFlip.h:131
vtkImageFlip::vtkImageFlip
vtkImageFlip()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImageReslice
Reslices a volume along a new set of axes.
Definition: vtkImageReslice.h:110
vtkImageFlip::FlipAboutOrigin
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:152
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkImageFlip::New
static vtkImageFlip * New()
vtkImageFlip::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageFlip::GetFilteredAxes
int GetFilteredAxes()
Definition: vtkImageFlip.h:132
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkImageFlip::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.