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 =========================================================================*/
24 #ifndef vtkImageChangeInformation_h
25 #define vtkImageChangeInformation_h
26 
27 #include "vtkImageAlgorithm.h"
28 #include "vtkImagingCoreModule.h" // For export macro
29 
30 class vtkImageData;
31 
32 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
47 
49 
56  vtkSetVector3Macro(OutputExtentStart, int);
57  vtkGetVector3Macro(OutputExtentStart, int);
59 
61 
66  vtkSetVector3Macro(OutputSpacing, double);
67  vtkGetVector3Macro(OutputSpacing, double);
69 
71 
76  vtkSetVector3Macro(OutputOrigin, double);
77  vtkGetVector3Macro(OutputOrigin, double);
79 
81 
87  vtkSetMacro(CenterImage, vtkTypeBool);
88  vtkBooleanMacro(CenterImage, vtkTypeBool);
89  vtkGetMacro(CenterImage, vtkTypeBool);
91 
93 
96  vtkSetVector3Macro(ExtentTranslation, int);
97  vtkGetVector3Macro(ExtentTranslation, int);
99 
101 
104  vtkSetVector3Macro(SpacingScale, double);
105  vtkGetVector3Macro(SpacingScale, double);
107 
109 
112  vtkSetVector3Macro(OriginTranslation, double);
113  vtkGetVector3Macro(OriginTranslation, double);
115 
117 
121  vtkSetVector3Macro(OriginScale, double);
122  vtkGetVector3Macro(OriginScale, double);
124 
125 protected:
128 
130 
131  int OutputExtentStart[3];
132  int ExtentTranslation[3];
133  int FinalExtentTranslation[3];
134 
135  double OutputSpacing[3];
136  double SpacingScale[3];
137 
138  double OutputOrigin[3];
139  double OriginScale[3];
140  double OriginTranslation[3];
141 
144 
146 
148 
149 private:
151  void operator=(const vtkImageChangeInformation&) = delete;
152 };
153 
154 #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...
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
virtual vtkImageData * GetInformationInput()
Copy the information from another data set.
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:48
a simple class to control print indentation
Definition: vtkIndent.h:34
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