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 =========================================================================*/
24 #ifndef vtkImageChangeInformation_h
25 #define vtkImageChangeInformation_h
26 
27 #include "vtkImagingCoreModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
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  vtkInformationVector *) override;
147  vtkInformationVector *) override;
148 
151  vtkInformationVector *) override;
152 
153  int FillInputPortInformation(int port, vtkInformation *info) override;
154 
155 private:
157  void operator=(const vtkImageChangeInformation&) = delete;
158 };
159 
160 
161 
162 #endif
163 
164 
165 
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm.h
vtkImageChangeInformation::CenterImage
vtkTypeBool CenterImage
Definition: vtkImageChangeInformation.h:129
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkX3D::port
Definition: vtkX3D.h:447
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageChangeInformation
modify spacing, origin and extent.
Definition: vtkImageChangeInformation.h:32
vtkImageAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69