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 =========================================================================*/
26 #ifndef vtkImageChangeInformation_h
27 #define vtkImageChangeInformation_h
28 
29 #include "vtkImagingCoreModule.h" // For export macro
30 #include "vtkImageAlgorithm.h"
31 
32 class vtkImageData;
33 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
44  virtual void SetInformationInputData(vtkImageData*);
45  virtual vtkImageData *GetInformationInput();
47 
49 
53  vtkSetVector3Macro(OutputExtentStart, int);
54  vtkGetVector3Macro(OutputExtentStart, int);
56 
58 
61  vtkSetVector3Macro(OutputSpacing, double);
62  vtkGetVector3Macro(OutputSpacing, double);
64 
66 
69  vtkSetVector3Macro(OutputOrigin, double);
70  vtkGetVector3Macro(OutputOrigin, double);
72 
74 
78  vtkSetMacro(CenterImage, int);
79  vtkBooleanMacro(CenterImage, int);
80  vtkGetMacro(CenterImage, int);
82 
84 
85  vtkSetVector3Macro(ExtentTranslation, int);
86  vtkGetVector3Macro(ExtentTranslation, int);
88 
90 
91  vtkSetVector3Macro(SpacingScale, double);
92  vtkGetVector3Macro(SpacingScale, double);
94 
96 
97  vtkSetVector3Macro(OriginTranslation, double);
98  vtkGetVector3Macro(OriginTranslation, double);
100 
102 
104  vtkSetVector3Macro(OriginScale, double);
105  vtkGetVector3Macro(OriginScale, double);
107 
108 protected:
111 
113 
114  int OutputExtentStart[3];
115  int ExtentTranslation[3];
116  int FinalExtentTranslation[3];
117 
118  double OutputSpacing[3];
119  double SpacingScale[3];
120 
121  double OutputOrigin[3];
122  double OriginScale[3];
123  double OriginTranslation[3];
124 
125  virtual int RequestUpdateExtent (vtkInformation *,
128  virtual int RequestInformation (vtkInformation *,
131 
132  virtual int RequestData(vtkInformation *,
135 
137 
138 private:
139  vtkImageChangeInformation(const vtkImageChangeInformation&); // Not implemented.
140  void operator=(const vtkImageChangeInformation&); // Not implemented.
141 };
142 
143 
144 
145 #endif
146 
147 
148 
Store vtkAlgorithm input/output information.
modify spacing, origin and extent.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)