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=========================================================================*/
26#ifndef vtkImageFlip_h
27#define vtkImageFlip_h
28
29#include "vtkImageReslice.h"
30#include "vtkImagingCoreModule.h" // For export macro
31
32class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
33{
34public:
35 static vtkImageFlip* New();
36
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 vtkSetMacro(FilteredAxis, int);
46 vtkGetMacro(FilteredAxis, int);
48
50
66 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
67 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
68 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
70
75 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
76 int GetFilteredAxes() { return this->GetFilteredAxis(); }
77
79
84 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
85 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
86 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
88
89protected:
91 ~vtkImageFlip() override = default;
92
94
98
99private:
100 vtkImageFlip(const vtkImageFlip&) = delete;
101 void operator=(const vtkImageFlip&) = delete;
102};
103
104#endif
This flips an axis of an image.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkTypeBool PreserveImageExtent
vtkTypeBool FlipAboutOrigin
int GetFilteredAxes()
~vtkImageFlip() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageFlip * New()
void SetFilteredAxes(int axis)
Keep the mis-named Axes variations around for compatibility with old scripts.
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69