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=========================================================================*/
32#ifndef vtkImageFlip_h
33#define vtkImageFlip_h
34
35#include "vtkImageReslice.h"
36#include "vtkImagingCoreModule.h" // For export macro
37
38class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
39{
40public:
41 static vtkImageFlip* New();
42
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
51 vtkSetMacro(FilteredAxis, int);
52 vtkGetMacro(FilteredAxis, int);
54
56
72 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
73 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
74 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
76
81 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
82 int GetFilteredAxes() { return this->GetFilteredAxis(); }
83
85
90 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
91 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
92 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
94
95protected:
97 ~vtkImageFlip() override = default;
98
100
104
105private:
106 vtkImageFlip(const vtkImageFlip&) = delete;
107 void operator=(const vtkImageFlip&) = delete;
108};
109
110#endif
This flips an axis of an image.
Definition: vtkImageFlip.h:39
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:103
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:102
int GetFilteredAxes()
Definition: vtkImageFlip.h:82
~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.
Definition: vtkImageFlip.h:81
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69