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=========================================================================*/
135#ifndef vtkImageFlip_h
136#define vtkImageFlip_h
137
138#include "vtkImageReslice.h"
139#include "vtkImagingCoreModule.h" // For export macro
140
141class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
142{
143public:
144 static vtkImageFlip* New();
145
147 void PrintSelf(ostream& os, vtkIndent indent) override;
148
150
154 vtkSetMacro(FilteredAxis, int);
155 vtkGetMacro(FilteredAxis, int);
157
159
175 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
176 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
177 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
179
184 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
185 int GetFilteredAxes() { return this->GetFilteredAxis(); }
186
188
193 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
194 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
195 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
197
198protected:
200 ~vtkImageFlip() override = default;
201
203
207
208private:
209 vtkImageFlip(const vtkImageFlip&) = delete;
210 void operator=(const vtkImageFlip&) = delete;
211};
212
213#endif
This flips an axis of an image.
Definition: vtkImageFlip.h:142
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:206
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:205
int GetFilteredAxes()
Definition: vtkImageFlip.h:185
~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:184
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69