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=========================================================================*/
53#ifndef vtkImageChangeInformation_h
54#define vtkImageChangeInformation_h
55
56#include "vtkImageAlgorithm.h"
57#include "vtkImagingCoreModule.h" // For export macro
58
59class vtkImageData;
60
61class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
62{
63public:
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
76
78
85 vtkSetVector3Macro(OutputExtentStart, int);
86 vtkGetVector3Macro(OutputExtentStart, int);
88
90
95 vtkSetVector3Macro(OutputSpacing, double);
96 vtkGetVector3Macro(OutputSpacing, double);
98
100
105 vtkSetVector3Macro(OutputOrigin, double);
106 vtkGetVector3Macro(OutputOrigin, double);
108
110
116 vtkSetMacro(CenterImage, vtkTypeBool);
117 vtkBooleanMacro(CenterImage, vtkTypeBool);
118 vtkGetMacro(CenterImage, vtkTypeBool);
120
122
125 vtkSetVector3Macro(ExtentTranslation, int);
126 vtkGetVector3Macro(ExtentTranslation, int);
128
130
133 vtkSetVector3Macro(SpacingScale, double);
134 vtkGetVector3Macro(SpacingScale, double);
136
138
141 vtkSetVector3Macro(OriginTranslation, double);
142 vtkGetVector3Macro(OriginTranslation, double);
144
146
150 vtkSetVector3Macro(OriginScale, double);
151 vtkGetVector3Macro(OriginScale, double);
153
154protected:
157
159
160 int OutputExtentStart[3];
161 int ExtentTranslation[3];
162 int FinalExtentTranslation[3];
163
164 double OutputSpacing[3];
165 double SpacingScale[3];
166
167 double OutputOrigin[3];
168 double OriginScale[3];
169 double OriginTranslation[3];
170
173
175
176 int FillInputPortInformation(int port, vtkInformation* info) override;
177
178private:
180 void operator=(const vtkImageChangeInformation&) = delete;
181};
182
183#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:157
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