VTK  9.1.0
vtkImageChangeInformation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageChangeInformation.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=========================================================================*/
33#ifndef vtkImageChangeInformation_h
34#define vtkImageChangeInformation_h
35
36#include "vtkImageAlgorithm.h"
37#include "vtkImagingCoreModule.h" // For export macro
38
39class vtkImageData;
40
41class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
56
58
65 vtkSetVector3Macro(OutputExtentStart, int);
66 vtkGetVector3Macro(OutputExtentStart, int);
68
70
75 vtkSetVector3Macro(OutputSpacing, double);
76 vtkGetVector3Macro(OutputSpacing, double);
78
80
85 vtkSetVector3Macro(OutputOrigin, double);
86 vtkGetVector3Macro(OutputOrigin, double);
88
90
96 vtkSetMacro(CenterImage, vtkTypeBool);
97 vtkBooleanMacro(CenterImage, vtkTypeBool);
98 vtkGetMacro(CenterImage, vtkTypeBool);
100
102
105 vtkSetVector3Macro(ExtentTranslation, int);
106 vtkGetVector3Macro(ExtentTranslation, int);
108
110
113 vtkSetVector3Macro(SpacingScale, double);
114 vtkGetVector3Macro(SpacingScale, double);
116
118
121 vtkSetVector3Macro(OriginTranslation, double);
122 vtkGetVector3Macro(OriginTranslation, double);
124
126
130 vtkSetVector3Macro(OriginScale, double);
131 vtkGetVector3Macro(OriginScale, double);
133
134protected:
137
139
140 int OutputExtentStart[3];
141 int ExtentTranslation[3];
142 int FinalExtentTranslation[3];
143
144 double OutputSpacing[3];
145 double SpacingScale[3];
146
147 double OutputOrigin[3];
148 double OriginScale[3];
149 double OriginTranslation[3];
150
153
155
157
158private:
160 void operator=(const vtkImageChangeInformation&) = delete;
161};
162
163#endif
Generic algorithm superclass for image algs.
modify spacing, origin and extent.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageChangeInformation * New()
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
virtual vtkImageData * GetInformationInput()
Copy the information from another data set.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetInformationInputData(vtkImageData *)
Copy the information from another data set.
~vtkImageChangeInformation() override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
topologically and geometrically regular array of data
Definition: vtkImageData.h:57
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69