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
36class vtkImageData;
37
38class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44
46
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
131protected:
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
150 vtkInformationVector *) VTK_OVERRIDE;
153 vtkInformationVector *) VTK_OVERRIDE;
154
157 vtkInformationVector *) VTK_OVERRIDE;
158
159 virtual int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
160
161private:
162 vtkImageChangeInformation(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
163 void operator=(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
164};
165
166
167
168#endif
169
170
171
Generic algorithm superclass for image algs.
modify spacing, origin and extent.
static vtkImageChangeInformation * New()
virtual vtkImageData * GetInformationInput()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
virtual int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual void SetInformationInputData(vtkImageData *)
Copy the information from another data set.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.