VTK  9.0.1
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 
44  virtual void SetInformationInputData(vtkImageData*);
45  virtual vtkImageData* GetInformationInput();
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:
127  ~vtkImageChangeInformation() override;
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 
147  int FillInputPortInformation(int port, vtkInformation* info) override;
148 
149 private:
151  void operator=(const vtkImageChangeInformation&) = delete;
152 };
153 
154 #endif
Store vtkAlgorithm input/output information.
modify spacing, origin and extent.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.