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 "vtkImageAlgorithm.h"
30 
31 class vtkImageData;
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
43  virtual void SetInformationInput(vtkImageData*);
44  virtual vtkImageData *GetInformationInput();
46 
48 
52  vtkSetVector3Macro(OutputExtentStart, int);
53  vtkGetVector3Macro(OutputExtentStart, int);
55 
57 
60  vtkSetVector3Macro(OutputSpacing, double);
61  vtkGetVector3Macro(OutputSpacing, double);
63 
65 
68  vtkSetVector3Macro(OutputOrigin, double);
69  vtkGetVector3Macro(OutputOrigin, double);
71 
73 
77  vtkSetMacro(CenterImage, int);
78  vtkBooleanMacro(CenterImage, int);
79  vtkGetMacro(CenterImage, int);
81 
83 
84  vtkSetVector3Macro(ExtentTranslation, int);
85  vtkGetVector3Macro(ExtentTranslation, int);
87 
89 
90  vtkSetVector3Macro(SpacingScale, double);
91  vtkGetVector3Macro(SpacingScale, double);
93 
95 
96  vtkSetVector3Macro(OriginTranslation, double);
97  vtkGetVector3Macro(OriginTranslation, double);
99 
101 
103  vtkSetVector3Macro(OriginScale, double);
104  vtkGetVector3Macro(OriginScale, double);
106 
107 protected:
110 
112 
113  int OutputExtentStart[3];
114  int ExtentTranslation[3];
115  int FinalExtentTranslation[3];
116 
117  double OutputSpacing[3];
118  double SpacingScale[3];
119 
120  double OutputOrigin[3];
121  double OriginScale[3];
122  double OriginTranslation[3];
123 
124  virtual int RequestUpdateExtent (vtkInformation *,
127  virtual int RequestInformation (vtkInformation *,
130 
131  virtual int RequestData(vtkInformation *,
134 
136 
137 private:
138  vtkImageChangeInformation(const vtkImageChangeInformation&); // Not implemented.
139  void operator=(const vtkImageChangeInformation&); // Not implemented.
140 };
141 
142 
143 
144 #endif
145 
146 
147 
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:37
#define VTK_IMAGING_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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)