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=========================================================================*/
132#ifndef vtkImageFlip_h
133#define vtkImageFlip_h
134
135#include "vtkImageReslice.h"
136#include "vtkImagingCoreModule.h" // For export macro
137
138class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
139{
140public:
141 static vtkImageFlip* New();
142
144 void PrintSelf(ostream& os, vtkIndent indent) override;
145
147
151 vtkSetMacro(FilteredAxis, int);
152 vtkGetMacro(FilteredAxis, int);
154
156
172 vtkSetMacro(FlipAboutOrigin, vtkTypeBool);
173 vtkGetMacro(FlipAboutOrigin, vtkTypeBool);
174 vtkBooleanMacro(FlipAboutOrigin, vtkTypeBool);
176
181 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
182 int GetFilteredAxes() { return this->GetFilteredAxis(); }
183
185
190 vtkSetMacro(PreserveImageExtent, vtkTypeBool);
191 vtkGetMacro(PreserveImageExtent, vtkTypeBool);
192 vtkBooleanMacro(PreserveImageExtent, vtkTypeBool);
194
195protected:
197 ~vtkImageFlip() override = default;
198
200
204
205private:
206 vtkImageFlip(const vtkImageFlip&) = delete;
207 void operator=(const vtkImageFlip&) = delete;
208};
209
210#endif
This flips an axis of an image.
Definition: vtkImageFlip.h:139
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:203
vtkTypeBool FlipAboutOrigin
Definition: vtkImageFlip.h:202
int GetFilteredAxes()
Definition: vtkImageFlip.h:182
~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:181
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69