VTK  9.2.6
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=========================================================================*/
29
30#ifndef vtkImageChangeInformation_h
31#define vtkImageChangeInformation_h
32
33#include "vtkImageAlgorithm.h"
34#include "vtkImagingCoreModule.h" // For export macro
35
36class vtkImageData;
37
38class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
53
55
62 vtkSetVector3Macro(OutputExtentStart, int);
63 vtkGetVector3Macro(OutputExtentStart, int);
65
67
72 vtkSetVector3Macro(OutputSpacing, double);
73 vtkGetVector3Macro(OutputSpacing, double);
75
77
82 vtkSetVector3Macro(OutputOrigin, double);
83 vtkGetVector3Macro(OutputOrigin, double);
85
87
93 vtkSetMacro(CenterImage, vtkTypeBool);
94 vtkBooleanMacro(CenterImage, vtkTypeBool);
95 vtkGetMacro(CenterImage, vtkTypeBool);
97
99
102 vtkSetVector3Macro(ExtentTranslation, int);
103 vtkGetVector3Macro(ExtentTranslation, int);
105
107
110 vtkSetVector3Macro(SpacingScale, double);
111 vtkGetVector3Macro(SpacingScale, double);
113
115
118 vtkSetVector3Macro(OriginTranslation, double);
119 vtkGetVector3Macro(OriginTranslation, double);
121
123
127 vtkSetVector3Macro(OriginScale, double);
128 vtkGetVector3Macro(OriginScale, double);
130
131protected:
134
136
140
141 double OutputSpacing[3];
142 double SpacingScale[3];
143
144 double OutputOrigin[3];
145 double OriginScale[3];
147
150
152
153 int FillInputPortInformation(int port, vtkInformation* info) override;
154
155private:
157 void operator=(const vtkImageChangeInformation&) = delete;
158};
159
160#endif
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
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69