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) VTK_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:
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 
148  virtual int RequestUpdateExtent (vtkInformation *,
150  vtkInformationVector *) VTK_OVERRIDE;
151  virtual int RequestInformation (vtkInformation *,
153  vtkInformationVector *) VTK_OVERRIDE;
154 
155  virtual int RequestData(vtkInformation *,
156  vtkInformationVector **,
157  vtkInformationVector *) VTK_OVERRIDE;
158 
159  virtual int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
160 
161 private:
162  vtkImageChangeInformation(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
163  void operator=(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.