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 
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 
131 
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 
vtkImageChangeInformation::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageChangeInformation::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkImageChangeInformation::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageChangeInformation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkImageChangeInformation::vtkImageChangeInformation
vtkImageChangeInformation()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkImageChangeInformation::~vtkImageChangeInformation
~vtkImageChangeInformation()
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageChangeInformation::GetInformationInput
virtual vtkImageData * GetInformationInput()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageChangeInformation::SetInformationInputData
virtual void SetInformationInputData(vtkImageData *)
vtkImageChangeInformation::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageChangeInformation
modify spacing, origin and extent.
Definition: vtkImageChangeInformation.h:35
vtkImagingCoreModule.h
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkImageChangeInformation::CenterImage
int CenterImage
Definition: vtkImageChangeInformation.h:112
vtkImageChangeInformation::New
static vtkImageChangeInformation * New()