VTK
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 =========================================================================*/
30 #ifndef vtkImageChangeInformation_h
31 #define vtkImageChangeInformation_h
32 
33 #include "vtkImagingCoreModule.h" // For export macro
34 #include "vtkImageAlgorithm.h"
35 
36 class vtkImageData;
37 
38 class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
50  virtual void SetInformationInputData(vtkImageData*);
51  virtual vtkImageData *GetInformationInput();
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, int);
94  vtkBooleanMacro(CenterImage, int);
95  vtkGetMacro(CenterImage, int);
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 
131 protected:
133  ~vtkImageChangeInformation() override;
134 
136 
137  int OutputExtentStart[3];
138  int ExtentTranslation[3];
139  int FinalExtentTranslation[3];
140 
141  double OutputSpacing[3];
142  double SpacingScale[3];
143 
144  double OutputOrigin[3];
145  double OriginScale[3];
146  double OriginTranslation[3];
147 
150  vtkInformationVector *) override;
153  vtkInformationVector *) override;
154 
157  vtkInformationVector *) override;
158 
159  int FillInputPortInformation(int port, vtkInformation *info) override;
160 
161 private:
163  void operator=(const vtkImageChangeInformation&) = delete;
164 };
165 
166 
167 
168 #endif
169 
170 
171 
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 ...
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.